agentleFS
gonimargonimar/claude-web-studio/skills/a11y-audit/SKILL.md

a11y-audit

Skill4 starsChanged 46 days agoMITView on GitHub

Audits accessibility against WCAG 2.2 AA — axe-core via Playwright, Lighthouse a11y, a manual keyboard/screen-reader checklist for key flows, game accessibility settings; findings with WCAG criteria and fixes. Required before release.

34 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use design-tokens, i18n and 2 more.

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.
  • ilikescienceSkill

    design-tokens

    Expert in design tokens using the DTCG specification. Use this skill when users ask about design tokens, DTCG format, token validation, formatting, transformation, color spaces (sRGB, Display P3, OKLCH), references and aliasing, resolvers, theming with modifiers/contexts, multi-platform design systems, accessibility, or working with tools like jq, jsonata, and terrazzo. Helps with token file creation, resolver configuration, structure, naming conventions, and best practices.

    Also in 4 projects that use this

  • 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

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 4 projects that use this

  • dillonluiSkill

    design-review

    Review a view or flow for UX and UI issues. Provides severity-ranked, actionable findings grounded in established design heuristics. Use when the user asks for design feedback, UX review, or UI critique.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    When HEAD is a story branch, name it and ask one AskUserQuestion: switch to the default branch and commit there (Recommended — a …

    line 36

“Common” is measured: kept by at least 6 in 10 of the 27 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

A11y Audit

Reply in the project conversation language (CLAUDE.md → Language); code, identifiers, paths and commit messages stay in English.

stack-reference/web-platform.md ("Accessibility"); template findings.md. In the commands below, <hooks> is .claude/hooks/ in copy mode and ${CLAUDE_PLUGIN_ROOT}/hooks/ in plugin mode.

One axe file, two moments. The axe spec is one Playwright file, <e2e dir>/a11y/axe.spec.ts (<e2e dir> is the Playwright testDir, resolved in this order: testDir in playwright.config.{ts,js,mjs} first; then the directory docs/architecture/test-strategy.md names for the e2e level, when it names one; else e2e/, with one line in the report saying the path was assumed). Phase 2 creates it to run the audit; Phase 4 keeps that same file as the regression test — never a second file for the same routes.

Phase 1: Scope

Routes/pages (from UX specs or the argument); is the dev server running? (offer to start it).

Phase 2: Automation

@axe-core/playwright over the routes in <e2e dir>/a11y/axe.spec.ts — created only after "May I write <e2e dir>/a11y/axe.spec.ts?" (one AskUserQuestion: write (Recommended) · show the draft first · skip automation; touch .claude/.write-consent after the "write" answer) — plus Lighthouse a11y; the output of both is in the report. Playwright MCP (optional). When the Playwright MCP tools are available (mcp__plugin_web-studio_playwright__*; copy mode with a user-added server: mcp__playwright__*), drive the live page through them for each route in scope — browser_navigate, browser_snapshot (the accessibility tree), browser_console_messages — and quote the tool output in the report next to the axe results; the accessibility tree is evidence for names, roles and focus order that axe does not report. Without the tools, the CLI path above is the audit; nothing depends on the MCP.

Phase 3: Manual checklist

Keyboard, focus (2.4.11/2.4.13), names, ARIA, contrast, target size (2.5.8), forms (3.3.7/3.3.8), motion; games — keyboard/gamepad menus, settings. Canvas menus: a menu, HUD or settings screen drawn on the canvas with no accessible DOM overlay mirroring it (web-platform.md "Accessibility": the canvas is mirrored by an accessible DOM overlay for menus) is a critical finding — the menu is invisible to keyboard and screen-reader users — never a note or a WARNING, whatever axe reports (axe sees no elements to fail).

Phase 4: Report

  1. Table "finding → WCAG criterion → severity → file → fix".
  2. "May I write docs/ops/a11y-audit-<date>.md and the axe regression test <e2e dir>/a11y/axe.spec.ts?" — one AskUserQuestion: write (Recommended) · show the draft/diff first · not now. The regression test is the Phase 2 spec in its final form (the routes in scope pinned; a rule disabled only for a finding recorded in production/findings.md, with its A11Y-NNN in a comment); when Phase 2 skipped automation, the file is created here. After the "write" answer: touch .claude/.write-consent (rule 7).
  3. For every critical finding, one AskUserQuestion: record it in production/findings.md (A11Y-NNN, template findings.md) (Recommended) · fix stories now · report only. Record the gate before asking — <hooks>session-state.sh set Gate "/a11y-audit Phase 4: record A11Y-NNN?" — and clear it after the answer (<hooks>session-state.sh set Gate "—"). After the "record" answer: touch .claude/.write-consent, then write the row.

Phase 5: Commit (documents lane)

Right after the write (and the findings rows, when any were recorded), one commit gate (rule 7 (4), .claude/docs/git-workflow.md § Documents): docs: a11y audit <date>, staging exactly the written documents — docs/ops/a11y-audit-<date>.md, production/findings.md when rows were added and .claude/agent-memory/ when the run changed it (git-workflow § Agent memory). Record the gate before asking — <hooks>session-state.sh set Gate "/a11y-audit Phase 5: commit?" — and clear it after the answer (<hooks>session-state.sh set Gate "—").

  • On the default branch when no story work is in progress: one AskUserQuestion — commit (Recommended) · leave uncommitted.
  • When HEAD is a story branch, name it and ask one AskUserQuestion: switch to the default branch and commit there (Recommended — a pipeline-wide document) · commit here (the document belongs to this story) · leave uncommitted.
  • <e2e dir>/a11y/axe.spec.ts is test code, not a document: it never rides the docs: commit — name it and offer the chore lane (git-workflow.md § Chore / infra, branch chore/a11y-axe-regression) or the fix story it belongs to.

Nothing is committed without the answer.

Verdict: PASS | FAIL (N critical). Next step — one AskUserQuestion: fix the critical findings via angular-engineer/vue-engineer/css-engineer (Recommended) · re-run /a11y-audit after fixes · /release-checklist.

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.