OpenParable
Skip to content
← Back to skills

Percy Visual Testing

Testing & Quality

Percy Visual Testing is an Agent Skill for testing & quality published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Percy visual testing platform integration for visual regression detection

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/qa-testing-automation/skills/percy-visual/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/percy-visual-testing, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Percy Visual Testing Skill

Overview

This skill provides expert-level capabilities for Percy-based visual testing, enabling snapshot capture, visual diff analysis, and seamless CI/CD integration.

Capabilities

Snapshot Capture

  • Capture visual snapshots across viewports
  • Configure responsive testing breakpoints
  • Handle dynamic content masking
  • Full-page and element snapshots

Visual Diff Analysis

  • Analyze visual diffs between builds
  • Identify intentional vs unintentional changes
  • Configure diff sensitivity

Baseline Management

  • Manage Percy baseline approvals
  • Handle baseline branching
  • Configure auto-approval rules

CI/CD Integration

  • Configure Percy with CI/CD pipelines
  • GitHub/GitLab integration
  • Pull request visual reviews

Framework Integration

  • Integrate with Playwright
  • Integrate with Cypress
  • Integrate with Selenium
  • Storybook integration

Target Processes

  • visual-regression.js - Visual regression testing
  • e2e-test-suite.js - E2E with visual validation
  • cross-browser-testing.js - Cross-browser visual testing

Dependencies

  • @percy/cli - Percy CLI
  • @percy/playwright / @percy/cypress - Framework SDKs
  • Percy account and token

Usage Example

{
  kind: 'skill',
  skill: {
    name: 'percy-visual',
    context: {
      action: 'capture-snapshots',
      testSuite: 'e2e',
      widths: [375, 768, 1280],
      branch: 'feature/new-design'
    }
  }
}

Configuration

The skill requires a Percy token and can be configured to work with various testing frameworks.