agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/a11y-audit/SKILL.md

a11y-audit

Skill1 starsChanged 24 days agoMITView on GitHub

Audits accessibility against WCAG 2.2 AA (or project.yaml a11y.standard): automated axe scans via Playwright plus a manual keyboard and screen-reader checklist on critical journeys. Use before launch, after UI changes, or when asked whether the site is accessible.

39 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use i18n and deploy.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lbednerSkill

    i18n

    Use when a code or template change introduces a new translation message key, in either the framework CLI (aegis/i18n/locales/) or a generated project's CLI (the app/i18n/locales/ template tree). Covers adding the real English string, stubbing the same key into every other locale for parity, and the separate translation PR that later replaces placeholders with reviewed native text.

    Also in 3 projects that use this

  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If @axe-core/playwright is installed, run (or generate, after approval, under tests/e2e/a11y.spec.ts) a spec that visits each route in …

    line 34
  2. Very specific:

    If web-design-guidelines (vercel-labs/agent-skills) is installed, also run its interface audit over the changed UI files.

    line 40
  3. Very specific:

    Use the a11y-report template: summary, scope, method, findings ranked

    line 62

“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Accessibility Audit

Finds accessibility barriers and writes production/audits/a11y-YYYY-MM-DD.md. Automated tools catch roughly a third of issues, so this audit always pairs them with manual checks. It never fixes code without approval and never claims conformance that was not tested.

Inputs

  • project.yaml: a11y.standard, budgets.lighthouse.accessibility
  • docs/design/design-system.md: tokens (contrast) and component list
  • PRD critical journeys; docs/content/sitemap.md
  • Argument: target URL/routes, or local (production build, as in /perf-audit)

Phases

Phase 1: Scope

Agree the routes (3–10) and the journeys to walk by hand (signup, login, the core task, checkout, a form with errors). Ask the user if anything is out of scope (e.g. a third-party embed).

Phase 2: Automated scan

If @axe-core/playwright is installed, run (or generate, after approval, under tests/e2e/a11y.spec.ts) a spec that visits each route in light and dark mode and at 320 px and 1280 px widths, and calls new AxeBuilder({ page }).withTags(['wcag2a','wcag2aa','wcag21aa','wcag22aa']).analyze(). Otherwise use npx @axe-core/cli <url>. Capture violations with rule, impact, selector and the page.

If web-design-guidelines (vercel-labs/agent-skills) is installed, also run its interface audit over the changed UI files; if not, say so and continue.

Phase 3: Code review

Spawn accessibility-specialist to review components and pages (Grep for onClick on non-interactive elements, <img without alt, inputs without labels, tabIndex > 0, aria-hidden on focusable elements, outline: none without a replacement, autoplay, colour-only status).

Phase 4: Manual checklist

Walk each journey (via Playwright MCP if available, otherwise give the user the checklist to run and record their answers):

  • Keyboard only: everything reachable, logical order, visible focus, no traps, skip link works, Escape closes dialogs, focus returns.
  • Screen reader (VoiceOver or NVDA): page title, landmarks, heading outline, form labels and errors announced, live regions for async results, meaningful link text.
  • Zoom to 200% and 400% (reflow at 320 px): no loss of content or horizontal scroll.
  • prefers-reduced-motion: motion reduced; prefers-color-scheme: contrast holds in both themes.
  • Target size ≥ 24×24 px; error messages linked to fields; no time limits without extension.

Phase 5: Report

Use the a11y-report template: summary, scope, method, findings ranked Critical (blocks a journey for a user group) → Serious → Moderate → Minor, each mapped to a WCAG success criterion with evidence (route, selector, file:line) and a fix at the component level. Ask before writing.

Phase 6: Follow-up

Offer stories or bugs for Critical/Serious findings, and offer to draft an accessibility statement section with known limitations.

Output

production/audits/a11y-YYYY-MM-DD.md (template: .claude/docs/templates/a11y-report.md).

Rigor

  • minimal: automated scan of key routes.
  • standard: scan + code review + keyboard pass on critical journeys.
  • full: all of the above + screen-reader pass + zoom/reflow on every journey.

Next step

/create-stories for the fixes, then re-run /a11y-audit on the fixed routes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.