agent-capabilities
БесплатноБез исполняемых скриптовНе проверенComprehensive documentation of Claude's capabilities for visual regression testing, CI/CD integration, and quality assurance automation. Use when setting up…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
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:
Create directory structure:
tests/shared/imageTest.tsx scripts/visual-regression/ .github/workflows/visual-regression-*.yml __image_snapshots__/baseline/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" } }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" } }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:
Установить agent-capabilities в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-capabilities?
Comprehensive documentation of Claude's capabilities for visual regression testing, CI/CD integration, and quality assurance automation. Use when setting up testing infrastructure, implementing visual regression, or understanding agent testing capabilities. (project)
Как установить скилл agent-capabilities?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-capabilities запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub