vanessamarely/ai-playbook-reposito/a11y-automation

Claude Code and agent skill by vanessamarely/ai-playbook-reposito

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Automates accessibility testing using eslint-plugin-jsx-a11y linting and Playwright-based axe-core checks. Use when the user wants to run, configure, or integrate automated accessibility tests into a React project. Do not use for manually reviewing component structure, building new components, or non-React/non-browser environments.

Install

npx vskill@latest install vanessamarely/ai-playbook-reposito/a11y-automation

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as vanessamarely/ai-playbook-reposito/a11y-automation.

Skill: Accessibility Automation

Purpose

Run automated accessibility checks using linters and browser-based testing tools to identify WCAG violations.

Inputs

  • targetPath: Path to files or directory to check
  • checkType: lint, browser, or both

Outputs

  • Violation summary with counts by severity
  • Exit code (0 for pass, non-zero for failures)
  • Actionable remediation steps with code fixes

Procedures

1. Validate Target Path

Ensure the path exists and contains testable files.

For lint: Look for .tsx, .jsx, .ts, .js files. For browser: Look for test files or running application.

2. Run Linting Checks

Execute: scripts/run-a11y-lint.sh <targetPath>

This script:

  1. Checks if eslint-plugin-jsx-a11y is configured.
  2. Runs eslint on the target path.
  3. Outputs violations grouped by rule.

If linter is not configured, output setup instructions.

3. Run Browser-Based Checks (Optional)

If checkType is browser or both:

Execute: node scripts/run-axe-playwright.mjs <targetPath>

This script:

  1. Checks if Playwright and @axe-core/playwright are available.
  2. Runs axe checks on rendered components or pages.
  3. Outputs violations by severity.

If not configured, provide setup guidance.

4. Parse Results

Extract:

  • Total violation count
  • Violations by severity (critical, serious, moderate, minor)
  • Violations by rule (grouped)
  • File and line number for each violation
5. Summarize Findings

Output to chat:

  • Summary statistics (total violations, by severity, by rule)
  • Per-file breakdown with line numbers
  • Brief descriptions of each violation type
6. Propose Fixes

For critical and serious violations:

  • Show code snippet with issue
  • Provide corrected version
  • Reference applicable WCAG guideline
  • Apply fixes using minimal diffs
7. Output Remediation Steps

For each violation type, provide:

  • WCAG guideline reference (e.g., 2.4.7 Focus Visible)
  • Explanation of why it matters
  • Code example of correct implementation

Refer to: ../react-components/references/a11y-wcag22.md

8. Suggest Integration

If checks are not part of CI/CD:

  • Provide npm script examples
  • Suggest pre-commit hook setup
  • Recommend automated PR checks

Error Handling

Linter not configured: Output installation and configuration steps for eslint-plugin-jsx-a11y.

Playwright not available: Provide installation instructions for Playwright and @axe-core/playwright.

No violations found: Output success message and confirm checks ran.

Critical violations found: Return non-zero exit code for CI/CD integration.

Quick Reference: ARIA Live Regions

ValueBehaviorUse For
aria-live="polite"Announced at next pauseStatus updates, saved confirmations
aria-live="assertive"Announced immediatelyErrors, time-sensitive alerts
role="status"Same as politeStatus messages
role="alert"Same as assertiveError messages

Common Anti-Patterns

Anti-PatternProblemFix
div as buttonNot focusable, no keyboard supportUse <button>
Missing alt textImages invisible to screen readersAdd descriptive alt
Color-only statesInvisible to color-blind usersAdd icons, text, or patterns
Autoplaying mediaDisorienting, can't be stoppedAdd controls, don't autoplay
Custom dropdown with no ARIAUnusable by keyboard/screen readerUse native <select> or proper ARIA listbox
Removing focus outlinesUsers can't see where they areStyle outlines, don't remove them
Empty links/buttons"Link" announced with no descriptionAdd text or aria-label
tabindex > 0Breaks natural tab orderUse tabindex="0" or -1 only

References

  • WCAG 2.2 Guidelines: ../react-components/references/a11y-wcag22.md

Scripts

Assets

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/vanessamarely/ai-playbook-reposito/a11y-automation/badge)](https://verified-skill.com/skills/vanessamarely/ai-playbook-reposito/a11y-automation)

Something wrong with this skill or its page? Tell us.