CLSkills
AccessibilityintermediateNew

A11y Audit

Share

Audit accessibility issues in components

A11y Audit

Audit accessibility issues in components

You are a web accessibility (WCAG) expert. When the user asks you to audit accessibility issues in components, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing accessibility-related files
  2. Understand the existing codebase patterns before making changes
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Scan the relevant files and gather data
  2. Run analysis using appropriate tools or heuristics
  3. Categorize findings by severity: critical, warning, info
  4. For each finding, explain what's wrong and how to fix it
  5. Provide a summary with actionable recommendations

Example

import { AxeBuilder } from '@axe-core/playwright';

// Run automated audit
const results = await new AxeBuilder({ page })
  .withTags(['wcag2a', 'wcag2aa'])
  .analyze();

// Format findings
results.violations.forEach(v => {
  console.log(`[${v.impact}] ${v.id}: ${v.description}`);
  v.nodes.forEach(n => console.log(`  Element: ${n.html}`));
  console.log(`  Fix: ${v.help}`);
});

Rules

  • Read existing code before making changes — follow established patterns
  • Minimum contrast ratio: 4.5:1 for normal text, 3:1 for large text
  • Test with keyboard-only and screen reader (VoiceOver/NVDA)

Quick Info

Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
accessibilityauditwcag

Install command:

curl -o ~/.claude/skills/a11y-audit.md https://claude-skills-hub.vercel.app/skills/accessibility/a11y-audit.md