Token导航 LogoToken导航

Agent Skill · 前端设计

agent-capabilities(Agent 能力)

agent-capabilities 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

agent-capabilities 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证为 MIT,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 3,500。

总安装 1,294周安装 55GitHub Stars 20下载 453核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-capabilities(Agent 能力)
来源仓库:https://github.com/jgtolentino/insightpulse-odoo
仓库路径:skills/agent-capabilities
安装命令:
npx skills add https://github.com/jgtolentino/insightpulse-odoo --skill agent-capabilities
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jgtolentino/insightpulse-odoo --skill agent-capabilities

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

记录 Agent 执行过程中的错误与经验积累。帮助持续优化能力缺口与修正策略。agent-capabilities 属于前端设计类 Skill,可作为该场景下的辅助能力补充。适用于 Codex、Claude 等主流宿主环境。使用前应确认其日志存储方式符合安全要求。建议结合人工复核机制防止误判累积。

来源仓库内路径:skills/agent-capabilities

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jgtolentino/insightpulse-odoo --skill agent-ca…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

agent-capabilities 怎么安装?

在终端执行 npx skills add https://github.com/jgtolentino/insightpulse-odoo --skill agent-capabilities。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

agent-capabilities 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

agent-capabilities 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

agent-capabilities 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

agent-capabilities 用的人多吗?

公开数据是累计安装 1,294 次,近一周安装 55 次,下载 453 次,GitHub 20 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

agent-capabilities 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
agent-capabilities

Agent 能力 · 本页

1,29420操作浏览器MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Agent Capabilities - Visual Regression Testing

This document outlines Claude's comprehensive capabilities for implementing and managing visual regression testing infrastructure in web applications.

Core Competencies

1. Visual Regression Testing Infrastructure

Claude can set up complete visual regression testing infrastructure following industry best practices from Ant Design, Argos CI, and other leading organizations.

Capabilities:

  • ✅ Configure Playwright for visual testing
  • ✅ Implement jest-image-snapshot for pixel-perfect comparison
  • ✅ Create baseline screenshot management system
  • ✅ Generate visual diff reports with HTML/Markdown output
  • ✅ Set up multi-viewport and multi-browser testing
  • ✅ Configure threshold-based comparison with anti-aliasing detection

Implementation Reference:

  • Skill: .claude/skills/visual-regression-testing/SKILL.md
  • Test utilities: tests/shared/imageTest.tsx
  • Scripts: scripts/visual-regression/

2. CI/CD Integration

Claude can integrate visual regression testing into GitHub Actions workflows with automated PR checks, baseline updates, and artifact management.

Capabilities:

  • ✅ Create PR check workflows that fail on visual regression
  • ✅ Automate baseline updates on main branch merges
  • ✅ Generate and upload visual diff artifacts
  • ✅ Post PR comments with visual comparison previews
  • ✅ Configure parallel test execution for performance
  • ✅ Set up report generation and distribution

Implementation Reference:

  • PR workflow: .github/workflows/visual-regression-pr.yml
  • Baseline workflow: .github/workflows/visual-regression-baseline.yml
  • Report workflow: .github/workflows/visual-regression-report.yml

3. Screenshot Management

Claude can implement sophisticated screenshot capture and management systems with support for dynamic content masking, animation freezing, and viewport control.

Capabilities:

  • ✅ Capture full-page and element-specific screenshots
  • ✅ Auto-hide timestamps, dates, and other dynamic content
  • ✅ Freeze animations and transitions for consistency
  • ✅ Handle responsive design across multiple viewports
  • ✅ Support theme variants (light/dark mode)
  • ✅ Organize screenshots with semantic naming

Implementation Reference:

  • Baseline capture: scripts/visual-regression/capture-baselines.ts
  • Test utilities: tests/shared/imageTest.tsx:45-100

4. Comparison and Reporting

Claude can implement pixel-perfect comparison with configurable thresholds and generate comprehensive visual diff reports.

Capabilities:

  • ✅ Pixel-by-pixel comparison using pixelmatch
  • ✅ Configurable difference thresholds (0.01% to 5%)
  • ✅ Anti-aliasing detection to reduce false positives
  • ✅ Generate HTML reports with side-by-side comparisons
  • ✅ Create Markdown reports for GitHub PR comments
  • ✅ Track regression history and trends

Implementation Reference:

  • Comparison: scripts/visual-regression/compare-screenshots.ts
  • HTML report: scripts/visual-regression/generate-report.js

5. Cloud Storage Integration

Claude can integrate visual regression artifacts with cloud storage providers for long-term archival and sharing.

Capabilities:

  • ✅ Upload to AWS S3, Azure Blob Storage, or Alibaba OSS
  • ✅ Generate public URLs for artifact sharing
  • ✅ Implement retention policies
  • ✅ Configure CDN distribution
  • ✅ Support local storage for development

Implementation Reference:

  • Upload utility: scripts/visual-regression/upload-to-storage.ts

Workflow Patterns

Pattern 1: Initial Setup

When a user requests visual regression testing setup, Claude will:

  1. Create directory structure: tests/shared/imageTest.tsx scripts/visual-regression/.github/workflows/visual-regression-*.yml __image_snapshots__/baseline/
  2. Install dependencies: {"devDependencies": {"@playwright/test": "^1.40.0", "playwright": "^1.40.0", "jest-image-snapshot": "^6.2.0", "pixelmatch": "^5.3.0", "pngjs": "^7.0.0"}}
  3. Add npm scripts: {"scripts": {"visual:test": "playwright test", "visual:baseline": "GENERATE_BASELINE=true playwright test --grep @baseline", "visual:update-baseline": "npm run visual:baseline", "visual:compare": "node scripts/visual-regression/compare-screenshots.ts", "visual:report": "node scripts/visual-regression/generate-report.js", "visual:upload": "node scripts/visual-regression/upload-to-storage.ts"}}
  4. Configure Playwright: // playwright.config.ts export default {testDir: './tests', use: {baseURL: 'http://localhost:5173', screenshot: 'only-on-failure', video: 'retain-on-failure',}, projects: [{name: 'chromium', use: {...devices['Desktop Chrome']}},],};

Pattern 2: Component Testing

When adding visual tests for a new component:

  1. Create test file: import {test} from '@playwright/test'; import {runVisualTest, VIEWPORTS} from '../shared/imageTest'; test('button component - all variants', async ({page}) => {await runVisualTest(page, {identifier: 'button-variants', url: '/components/button', viewport: VIEWPORTS.desktop, threshold: 0.05,});});
  2. Generate baseline: npm run visual:baseline
  3. Run in CI:

- Automatically runs on PR creation - Fails if visual differences detected - Posts diff images in PR comment

Pattern 3: Baseline Updates

When intentional visual changes are made:

  1. Review diff report:

- Check CI artifacts - Download visual-report.html - Verify changes are intentional

  1. Update baselines: npm run visual:update-baseline git add __image_snapshots__/baseline/ git commit -m "chore: update visual baselines for button redesign"
  2. Push and re-test:

- CI re-runs tests - Passes with updated baselines

Pattern 4: Troubleshooting

When visual tests fail unexpectedly:

  1. Check for environmental differences:

- Font rendering (use Docker) - Browser version (pin in CI) - OS differences (test on same platform as CI)

  1. Adjust thresholds if needed: threshold: 0.1, // Increase from 0.05 to 0.1
  2. Mask dynamic content: hideSelectors: ['[data-testid="timestamp"]', '.loading-spinner',],

Best Practices

1. What to Test

✅ Do test:

  • Critical user-facing components
  • Layout and responsive behavior
  • Theme variations (light/dark)
  • Multi-viewport rendering
  • Component state variants

❌ Don't test:

  • Frequently changing content (news feeds, timestamps)
  • Random/dynamic data displays
  • Third-party embedded content
  • Loading states with spinners

2. Threshold Configuration

// Critical UI - strict comparison
threshold: 0.01  // 0.01% = ~10 pixels in 100k

// Standard components
threshold: 0.1   // 0.1% = ~100 pixels in 100k

// Charts/graphs with anti-aliasing
threshold: 0.5   // 0.5% = ~500 pixels in 100k

3. Performance Optimization

  • Run tests in parallel across workers
  • Use headless mode in CI
  • Cache Playwright browsers
  • Selectively test affected components
  • Reuse unchanged baselines

4. False Positive Reduction

  • Freeze animations with CSS
  • Use consistent environment (Docker)
  • Pin browser versions
  • Mask timestamps and dynamic content
  • Enable anti-aliasing detection

Integration with Existing Tools

Visual regression testing integrates with:

Webapp Testing Skill

  • Uses webapp-testing skill for Playwright setup
  • Leverages scripts/with_server.py for server management
  • Follows reconnaissance-then-action pattern

Reference: .claude/skills/webapp-testing/SKILL.md

CI/CD Pipelines

  • Runs after unit/component tests pass
  • Blocks merges on visual regression
  • Uploads artifacts to GitHub Actions
  • Posts results in PR comments

Reference: .github/workflows/visual-regression-pr.yml:1

Odoo Development

  • Can test Odoo web interface components
  • Supports multi-theme testing
  • Validates responsive layouts
  • Tests module-specific UI changes

Real-World Examples

Example 1: Homepage Visual Test

import { test } from '@playwright/test';
import { runVisualTest, VIEWPORTS } from '../shared/imageTest';

test('homepage - responsive design', async ({ page }) => {
  for (const [name, viewport] of Object.entries(VIEWPORTS)) {
    await runVisualTest(page, {
      identifier: `homepage-${name}`,
      url: '/',
      viewport,
      fullPage: true,
      threshold: 0.1,
    });
  }
});

Example 2: Component Library Test

test('design system - all components', async ({ page }) => {
  const components = ['button', 'input', 'select', 'modal', 'table'];

  for (const component of components) {
    await runVisualTest(page, {
      identifier: `component-${component}`,
      url: `/components/${component}`,
      selector: `[data-testid="${component}-showcase"]`,
      threshold: 0.05,
    });
  }
});

Example 3: Theme Switching Test

test('dark mode - all pages', async ({ page }) => {
  const pages = ['/', '/about', '/contact'];

  for (const pagePath of pages) {
    // Test light mode
    await runVisualTest(page, {
      identifier: `${pagePath.replace(/\//g, '-')}-light`,
      url: pagePath,
      fullPage: true,
    });

    // Switch to dark mode
    await page.evaluate(() => {
      document.documentElement.setAttribute('data-theme', 'dark');
    });

    // Test dark mode
    await runVisualTest(page, {
      identifier: `${pagePath.replace(/\//g, '-')}-dark`,
      url: pagePath,
      fullPage: true,
    });
  }
});

Learning Resources

Official Documentation

Industry Tools

Implementation References

All code is available in this repository:

  • .claude/skills/visual-regression-testing/SKILL.md - Full skill documentation
  • .github/workflows/visual-regression-*.yml - CI/CD workflows
  • tests/shared/imageTest.tsx - Test utilities
  • scripts/visual-regression/ - Implementation scripts

When to Use This Capability

Claude should proactively offer visual regression testing when:

  1. User mentions visual testing or regression

- "I need to test UI changes" - "How can I prevent visual bugs?" - "Set up screenshot testing"

  1. Component development context

- Building design systems - Creating component libraries - Implementing responsive layouts

  1. CI/CD enhancement requests

- "Improve our testing pipeline" - "Add automated UI checks" - "Prevent visual bugs in PRs"

  1. Debugging visual issues

- "Something looks different but I can't tell what" - "UI broke on mobile but works on desktop" - "Theme switching has issues"

Agent Decision Tree

User request → Contains visual/UI/screenshot keywords?
  ├─ Yes → Offer visual regression testing setup
  │   ├─ Already has visual tests? → Enhance/extend
  │   └─ No visual tests? → Full setup
  │
  └─ No → Monitor for component development
      └─ Creating UI components? → Suggest visual testing

Summary

Claude has comprehensive capabilities for implementing production-grade visual regression testing infrastructure. This includes:

  • ✅ Complete Playwright + jest-image-snapshot setup
  • ✅ GitHub Actions CI/CD integration
  • ✅ Automated baseline management
  • ✅ Visual diff reporting with HTML/Markdown
  • ✅ Multi-viewport and multi-browser support
  • ✅ Cloud storage integration for artifacts
  • ✅ Best practices from industry leaders (Ant Design, Argos)

All implementations follow proven patterns from leading design systems and are production-ready for immediate use.


Last Updated: 2025-11-13 Methodology Source: Ant Design Visual Regression Testing Implementation Status: ✅ Complete and production-ready

平台分布

Claude Code

28.95%
按下载量换算131

Codex

23.68%
按下载量换算107

Antigravity

19.28%
按下载量换算87

OpenCode

13.93%
按下载量换算63

windsurf

8.86%
按下载量换算40

Cursor

3.43%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills