Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Audit A11y?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ku5ic-audit-a11y)
---
name: audit-a11y
description: WCAG 2.2 AA audit of a component, page, or template, in any frontend stack
argument-hint: "<file path, component, or a link to an external tracker/doc>"
allowed-tools:
- Bash(git log *)
---
# /audit-a11y
WCAG 2.2 AA audit of a component, page, or template.
## Run
With no target in the arguments, ask for one first, since the auditor can't ask. Resolve a linked ticket or doc as `skills/investigate` step 0 describes, then work this file's procedure on the resolved arguments per `skills/kit-rules/reference/subagents.md` section 4, and write the report yourself. Then run the report-format skill's Runtime checks yourself, and reply per `skills/kit-rules/reference/output.md` section 3.
## Prerequisites
- $ARGUMENTS should specify the target (file, directory, or component name).
- Frontend surface must exist. If `<repo-context>` reports no `js` and `fd -e html -e erb -e jinja -e jinja2 -e j2 -e vue -e svelte -e astro` finds nothing: stop and say so.
## Procedure
1. Stack is in the `<repo-context>` block from the `SubagentStart` hook.
2. Confirm frontend surface exists. If not, stop.
3. Load the wcag-audit skill.
4. Read the target file(s):
- A component: include the direct children it renders from this repo.
- A template: include the parent template it extends or the layout that wraps it.
5. Apply the checklist from wcag-audit. Stack adaptation section inside the skill tells you which variants apply.
6. Before finalizing a finding:
- Check whether project CLAUDE.md documents an explicit, deliberate exception for it. That is the only thing that excuses it.
- A pattern that repeats across multiple components is not excused by repetition.
- Flag it once against the shared source and list every consuming location; fixing the shared component resolves all of them.
- Repetition raises priority; it does not lower it.
7. When the repo already holds axe or Storybook a11y results (a committed report or saved test output), cite them for the findings they cover, name the file, and mark those `runtime-verified`. With none on hand, those findings go under "Needs a runtime check". Everything else that needs a running page (such as contrast) goes under "Needs a runtime check"; never install axe or start a server here.
## Not a finding
- An image the markup marks decorative (`alt=""`, `aria-hidden`) that carries no information.
- A criterion that needs a running page, such as reflow, or contrast for colors set at runtime, which goes under "Needs a runtime check". Two colors the code hard-codes are measured with `kit contrast <fg> <bg>`, and a ratio under the bar is a finding.
- A AAA criterion, unless the user asked for AAA.
## Severity
The wcag-audit skill's severity rubric.
## Output
Load the report-format skill and use its format. Write to the path `kit scratch-dir a11y <target-slug>` prints.
Rules specific to this audit:
- Cite WCAG criterion on every finding (e.g. 1.3.1, 4.1.2).
- Distinguish Level A, AA, AAA if audit scope is AA: AAA findings go to "Out of scope" unless the user asked for them.
- Items that need a runtime check go to the "Needs a runtime check" section.
- Print the report path.
## Scope
- Do not modify code during the audit. Audit only.
- Fixes are suggestions in the report, not applied changes.