/fe:accessibility-audit [phase] [path]from Frontend Skills
Manually invoked. Red-team accessibility audit of an app or a diff against WCAG 2.2 AA, organised by POUR with each check citing its success criterion — structure and landmarks, contrast on the tokens in both themes, reflow and zoom, keyboard, focus and dialogs, pointer and target size, forms and errors that are seen, status messages, and the lint, Storybook and end-to-end gates. Verifies each finding and writes a prioritized report.
Ships in Frontend Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run this only when the user asks for it by name. It writes a report and changes no code; fixing a finding is a separate request.
A manually-invoked, red-team accessibility audit of an app or a specific diff/PR. It is self-contained — every check is spelled out inline, so it runs a full review with zero other skills installed — and each finding is verified against the real code before it lands in a phase-aware, scored report at _reports/accessibility-audit.md.
Self-contained — every check is spelled out below, so it runs with no other skill installed. It mirrors
accessibilityandsemantic-html, which are the fix targets when installed. Each check names its WCAG 2.2 success criterion; a check marked house rule goes beyond WCAG and is reported as LOW, never as a WCAG failure.
Before applying this skill, read the project's root AGENTS.md, the AGENTS.md closest to the files in question, and any doc they link for this skill's topic. Names, values and choices — budgets, tiers, tokens, voice, paths — come from those files, never from this skill.
[phase] — development | production; sets the action-item tiers. Omitted → the phase the project's AGENTS.md records, else production (assume the app is live until told otherwise — the safer default).[path] — a file, directory, or PR/diff to scope the audit to; omitted → the whole repo.Mindset — reviewer/attacker first. Don't assume code is fine because it looks careful; find the sequence that breaks it. Report only findings you can justify as real, each verified before it lands.
AGENTS.md records; else production, so a CRITICAL finding gets Fix-Now urgency instead of a pre-launch discount. Phase sets the action-item tiers._reports/accessibility-audit.md exists, read it, but still run every check against the source. Use it only to keep the ID of each finding still present (status UNRESOLVED), carry its WON'T FIX findings forward unchanged — never re-raised as new findings — drop its FIXED findings and any no longer present, continue ID numbering from its highest ID, and take its scores for the score-change row. First run → mark all NEW.file:line evidence.AGENTS.md or a doc it links._reports/accessibility-audit.md — overwriting the whole file, so no resolved history accumulates — and post the chat summary (see Output). Recommend fixes in the report; never modify code. Never commit or push without explicit approval.Findings are ordered worst-first in the report.
Write to _reports/accessibility-audit.md, with one Overall row in the score change:
# Accessibility audit — <app/scope>
**Date:** <YYYY-MM-DD> · **Phase:** <phase> · **Mode:** Report-only · **Branch:** `<branch>` · **Scope:** <what was audited> · **Overall:** <X>/10
## Score change (previous → current)
| Metric | Previous | Current | Δ | Trend |
| --- | --- | --- | --- | --- |
| Overall | <prev/10 or N/A> | <cur/10> | <+N / -N / 0> | <▲ / ▼ / ■ / N/A> |
## Findings
| ID | Severity | Category | Status | Issue | Location |
| --- | --- | --- | --- | --- | --- |
| 1 | HIGH | <category> | NEW | <one-line issue> | `file/path:line` |
**Status:** `NEW` — found this run for the first time · `UNRESOLVED` — still present from an earlier run · `FIXED` — fixed after the audit; the note names the commit · `WON'T FIX` — the owner ruled it not a defect, intended, or accepted as it is; the note gives their reason
### F1 — <title>
- **What:** <the defect, and the concrete evidence that proves it real>
- **Why it matters:** <who is blocked and how> <· the success criterion, e.g. WCAG 2.1.2 No Keyboard Trap, or "house rule">
- **Fix:** <the specific remediation>
- **Note:** <only once `FIXED` (the commit and what changed) or `WON'T FIX` (the owner's reason)>
## Scorecard
| Category | Score | Notes |
| --- | --- | --- |
| Perceivable | <X>/10 | <one-line justification> |
| Operable | <X>/10 | <one-line justification> |
| Understandable | <X>/10 | <one-line justification> |
| Robust | <X>/10 | <one-line justification> |
| Gates | <X>/10 | <one-line justification> |
## Action items
Tiers by phase — `development` → **Fix Now / Before Launch / Post-Launch**; `production` → **Fix Now / Next Release / Backlog**. Each task references a finding ID.
### <Tier>
| # | Priority | Task (finding ID) | Effort |
| --- | --- | --- | --- |
Every run produces two things:
_reports/accessibility-audit.md, in the format above, overwriting the prior run.<X>/10 (with Δ vs last run), a severity count (Critical / High / Medium / Low, i.e. C / H / M / L), the top findings worst-first (id · severity · one-line · file:line), and the report path. Note any "needs confirmation" items.Report-only — this audit recommends fixes in the report; it never modifies code.
Audit the rendered page where possible — the accessibility tree, a keyboard-only pass, contrast, 200% zoom and 320px reflow, a screen reader (VoiceOver, NVDA, TalkBack) — and the source. Automated checks (axe, jsx-a11y) catch only part of WCAG; the manual passes find the rest. accessibility and semantic-html are the fix targets if installed, with runnable browser snippets.
alt, decorative ones alt="" (never missing); icon-only controls have an accessible name; no "image" or "photo" alt; a chart or diagram has its data in text nearby.<video> has controls and a <track kind="captions">. Audio control (1.4.2) — sound that plays on its own for more than three seconds can be paused or muted apart from the system volume; house rule: nothing plays sound on its own.<main>, with everything visible inside a landmark; every <nav> labelled when there are several; lists as lists (a list styled without markers keeps role="list"); label–value pairs as <dl> with <dt> before its <dd> and at most one wrapping <div>; data tables with <th scope>, a sortable header holding a <button> with aria-sort; wide tables in a labelled, keyboard-reachable scroll region. House rules: one <h1> and no skipped levels; every <section> has a heading tied by aria-labelledby; a table caption.order or positioning never reorders anything focusable.autocomplete on fields about the person.user-scalable=no, or maximum-scale below 2); 200% zoom, 320px reflow (data tables and maps exempt) and increased text spacing lose nothing.<div> or <span>; no positive tabindex; composite widgets follow their APG pattern. Single-key shortcuts (2.1.4) can be turned off, remapped, or are active only when their component has focus.prefers-reduced-motion honoured (2.3.3 is AAA).outline-none is a finding (forced-colours mode loses the ring — use outline-hidden with the ring); a focused element is never entirely hidden behind a sticky header, cookie banner or panel, with scroll-padding matching a sticky header's height.<dialog> with showModal() (or an equivalent that moves focus in, keeps it there with the page inert, closes on Escape and returns focus to the trigger), named by its heading. A Popover API element used as a modal is a finding. Disclosure is <details>/<summary>, not a toggled <div>.<nav> of links.onPointerDown, onMouseDown or onTouchStart that submits, deletes, navigates or toggles is a finding (failure F101) unless moving off before release aborts it, release undoes it, or it's essential — a key on an on-screen keyboard or keypad counts as essential. A drag that starts on press is fine when dropping outside a target cancels it.aria-label that replaces the visible text ("Submit" shown, "Send form" named) is failure F96, and visible text with no name at all is F111. The label is the button's text, the text beside an input or next to a checkbox, or the text under an icon button; a symbolic glyph (a bold "B") is named for its job, and case and most punctuation don't count.<html lang>, a lang on phrases in another language; house rule: translate="no" on brand names and codes.<fieldset> and <legend>; required fields marked in text; the right type and inputmode (tel for phone, text with inputmode="numeric" for a code or card number); constraint attributes kept, with noValidate on the form; every <button> has a type; a form that changes data is a <form> with an action. Errors are in text, say how to fix them, are tied to the field with aria-describedby and aria-invalid, are announced, and are seen — a summary near the submit button, or focus moved to the first invalid field.aria-expanded and aria-controls on a disclosure, aria-pressed on a toggle, aria-selected in tabs and listboxes, aria-checked on a custom checkbox, aria-current (page for site navigation, location for in-page); no redundant or invalid ARIA; every <iframe> has a title; aria-hidden never on anything focusable.<output>; skeletons aria-hidden, loading regions with aria-busy, and the result announced.semantic-html: a <span> never contains a <span>; <search> around site search; <time dateTime> for dates.eslint-plugin-jsx-a11y's recommended set at error in the shared config — eslint-config-next turns on only a few of its rules, as warnings, so relying on it alone is a finding.test: "error" and a keyboard story per interactive component; any story that turns a rule off or marks it "todo" is a finding.@axe-core/playwright on each key route. @axe-core/react doesn't support React 18 or later — its presence is a finding.Fixing is a separate request, after the report is written, and covers only the findings the owner chose. Then update the report in place — never re-run the audit to update it: a re-run re-checks the whole codebase, costs a full audit and raises new findings mid-fix. Mark each fixed finding FIXED with its commit and a one-line note of what changed, mark a finding the owner rules out WON'T FIX with their reason, and leave everything else as it stands. Recompute the scorecard categories the fixes touched and the Overall, and rewrite the one score-change row (previous → current) — never add a second row.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub timonwa/engineering-skills --plugin fe20 skills in this plugin
/accessibilityBuilding UI that meets WCAG 2.2 AA beyond the markup — text alternatives, contrast checked on the tokens in both themes, reflow and zoom, keyboard and focus (order, visibility, dialogs, skip link, not obscured), target size, pointer and motion, labels, errors people see, accessible sign-in, ARIA states and live regions, and the gates that verify it: lint, Storybook axe at error, keyboard stories and screen-reader passes. Use when building or reviewing any interactive UI, a form, a dialog or a colour token./content-auditManually invoked. Copy audit of an app, its emails or a diff, against the project's own voice, word list and banned words and the plain-language standards (GOV.UK, NN/g, WCAG) — point-first writing, marketing claims and calls to action, buttons and links, form labels and errors, empty, success and loading states, sentence case and mechanics, accessible words and alt text, translation-safe strings, and each transactional email's sender, subject, preheader and body. Verifies each finding and writes a prioritized report./cookie-consentCookie and tracking consent for a web app — what needs consent (any storage or read on the device), equal-weight accept and reject on the first layer, granular categories off by default, nothing non-essential before consent, withdrawal as easy as giving it, a minimal record of each choice, re-asking on a revision, Global Privacy Control, Google Consent Mode in basic mode, accessibility, and the vanilla-cookieconsent v3 mechanics in a reference. Use when adding a banner, an analytics or marketing script, or a consent category.Other plugins' skills for the same job