a11y-audit
Skill0 starsChanged 3 months agoMITView on GitHub
Design, review, or audit accessible web interfaces in any framework. For new components, infer the correct semantic and interaction pattern from the component's purpose, placement on the page, surrounding landmarks, and user journey, then provide framework-native structure, an accessible API, keyboard behavior, states, and test guidance. For existing sites, templates, or GitHub demos, use Playwright, axe-core, keyboard checks, and source review to map WCAG issues back to components with concrete fixes and host-native contracts when findings cluster. Use when the user asks how to create or place an accessible component, requests accessibility feedback, a component API, or component suggestions, asks to check accessibility, run an a11y audit, find WCAG issues, test keyboard or screen-reader support, scan a local site, a template, or a GitHub demo, or invokes /a11y-audit.
- Reads credentials
- Installs packages
19 other projects use a version of this.
Adopted by
Most recently taken up by
- muon-m2/magento2-toolstheir own version, first seen Oct 4, 2026
- gonimar/claude-web-studiotheir own version, first seen Sep 27, 2026
- stritar/skillstheir own version, first seen Sep 11, 2026
- CaduS0uza/qa-supremetheir own version, first seen Sep 10, 2026
- greglas75/zuvotheir own version, first seen Sep 6, 2026
- plugin87/ux-ui-agent-skillstheir own version, first seen Aug 24, 2026
Used with
Projects with it also use perf-audit, i18n and 10 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.
CorentinGCSkillperf-audit
Audit de performance web — bundle size, lazy loading, memoization, images, Core Web Vitals, Server vs Client Components. À invoquer avec /perf-audit.
Also in 3 projects that use this
ffsshhttiikkSkilli18n
Internationalization and localization
Also in 3 projects that use this
fefogarciaSkilldependency-audit
Comprehensive dependency health auditing for JavaScript/TypeScript projects. Run npm audit, detect outdated packages, check for security advisories, and verify license compliance. Prioritises vulnerabilities by severity and provides actionable fix recommendations.
Also in 3 projects that use this
VercelSkilldeploy
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
AICreator-WindSkilldesign-review
编码设计师工具。设计审计和修复。
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- plugin87/ux-ui-agent-skills★ 1.5ksame name
- Hassaan146/claude-skills★ 18same name
- renfei-design/Figma-AI-Bridge★ 17same name
- helderberto/agent-skills★ 16same name
- kgelster/ecom-a11y-audit★ 12same name
- greglas75/zuvo★ 8same name
- kao273183/qa-claude-skill★ 8same name
- viknesh20-20/claude-code-tool-kit★ 7same name
- Shiven0504/claude-skills-collection★ 6same name
- gonimar/claude-web-studio★ 5same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- generate-vector-logoSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. 0 are common, 11 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Do not install ESLint plugins, axe, or Playwright into the user project.
- Distinctive: line 30
Do not disable axe rules or exclude nodes to clean the report.
- Very specific: line 31
Prefer native HTML (button, label, main) over ARIA on a div.
- Distinctive: line 34
Do not add ARIA when native HTML already provides the required role, name, state, and keyboard behavior.
- Very specific: line 75
Do not expose raw role, tabIndex, or arbitrary ARIA props as the primary way to repair an unclear component API.
- Distinctive: line 79
Use the repository's framework and component conventions.
- Distinctive: line 84
Keep visible labels visible unless the product explicitly needs an icon-only control.
- Distinctive: line 85
Treat responsive variants as the same accessibility contract, not separate semantics.
- Distinctive: line 89
Read references/test-generation.md and provide behavioral tests when the user asks to implement, fix, or test the component.
- Very specific: line 110
If the user gave an http(s) page that is not a repository browser (github.com, gitlab.com, bitbucket.org, codeberg.org), probe it and use …
- Distinctive: line 111
If they gave a git-host URL, archive, or template name:
- Distinctive: line 112
Use the workspace checkout when it already is that project.
- Very specific: line 113
Prefer a documented public demo that matches this source (README Demo / Live, *.github.io, product *-demo.* hosts) when it responds.
- Very specific: line 122
If the app needs auth, collect a Playwright storageState JSON (the user logs in once) and pass --storage-state.
- Very specific: line 133
Always include /. Skip dynamic routes that need unknown IDs unless the user provides values (/posts/1).
- Very specific: line 176
If the user asked for a full pass, run desktop then --mobile and merge findings.
- Distinctive: line 180
Follow references/source-mapping.md.
- Very specific: line 182
Run the static greps in that file.
- Distinctive: line 186
Write the audit in the conversation using references/report.md.
- Distinctive: line 188
If the user asked for component suggestions or findings cluster on reusable primitives, add the Component recommendations section from that …
- Very specific: line 190
If the user asked to fix: apply focused patches (one concern per change), then re-run audit.mjs on the affected paths and report …
“Common” is measured: kept by at least 6 in 10 of the 14 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.
Files
Accessible component guidance and audit
Guide accessible component design from page context, or audit a running site and map findings to source. Default standard is WCAG 2.2 AA. Do not claim conformance from an automated scan.
Resolve <skill-root> as the directory that contains this SKILL.md.
Rules
- Evidence required: URL, selector or snippet, WCAG criterion, impact, and a source location when the repo is available.
- Automated + keyboard + static coverage is partial. Say what was not tested.
- Report only unless the user asks to fix. After fixes, re-run the same pages.
- Do not install ESLint plugins, axe, or Playwright into the user project. Skill dependencies stay in
<skill-root>. - Do not disable axe rules or exclude nodes to clean the report.
- Prefer native HTML (
button,label,main) over ARIA on adiv. - Choose semantics from user intent and page context, not from the component's visual appearance or framework name.
- Preserve the host project's framework, design system, conventions, and existing accessible primitives. Do not introduce a new framework for an example.
- Do not add ARIA when native HTML already provides the required role, name, state, and keyboard behavior.
Workflow
1. Choose the mode
- Create or advise: the user is planning or building a component. Follow Component guidance below. A running site is optional.
- Review a component: inspect its source, rendered placement, callers, and states. Follow Component guidance, then report concrete feedback.
- Audit a site: the user wants broad coverage or a WCAG scan. Follow Site audit below.
- Fix: change code only when requested, then verify the affected interaction and pages.
Component guidance
2. Understand placement and purpose
Inspect the route, parent layout, nearby headings and landmarks, repeated instances, and the action that follows. If source is available, find where the component is rendered and how its props are populated. Ask only when an answer materially changes the semantic pattern.
Classify the component before writing code:
- navigation vs in-page action;
- page landmark vs content inside a landmark;
- persistent, repeated, conditional, modal, or transient;
- static content, disclosure, selection, data entry, status, or composite widget;
- destructive, asynchronous, validation-sensitive, or time-sensitive behavior.
Read references/component-guidance.md. Use the placement matrix and interaction contracts to select the pattern. The same visual control can require different markup in different locations: a logo in a site header may link home, while the same logo on the home page may be a non-link image; a list of links is navigation only when it represents a meaningful navigation set.
For dialogs, comboboxes, menus, tabs, grids, date pickers, carousels, tooltips, drag-and-drop, file upload, and other coordinated widgets, read references/pattern-playbooks.md. Apply the pattern rejection gate before recommending custom ARIA.
3. Define the accessible contract
Before implementation, state:
- semantic element or established ARIA pattern;
- accessible name and description source;
- keyboard behavior and focus movement;
- states and relationships exposed to assistive technology;
- behavior for loading, empty, error, success, disabled, and destructive states that apply;
- page-level effects such as heading hierarchy, landmark names, focus restoration, and live announcements;
- public props that make accessible usage the default and invalid combinations difficult.
Do not expose raw role, tabIndex, or arbitrary ARIA props as the primary way to repair an unclear component API. Prefer intent-bearing props such as label, description, expanded, errorMessage, onDismiss, or headingLevel when the consumer genuinely controls those values.
4. Implement or advise in the detected framework
Use the repository's framework and component conventions. Keep semantics identical across React/Next, Vue/Nuxt, Svelte/SvelteKit, Angular, Astro, Web Components, or server-rendered HTML; translate only binding, slots, events, and lifecycle syntax.
- Reuse an existing accessible primitive when its behavior matches the contract.
- For custom composite widgets, follow the complete WAI-ARIA interaction pattern, including focus management; partial ARIA is not acceptable.
- Preserve consumer-supplied IDs safely and generate stable unique IDs where relationships require them.
- Keep visible labels visible unless the product explicitly needs an icon-only control.
- Treat responsive variants as the same accessibility contract, not separate semantics.
Provide the smallest framework-native example that demonstrates the contract. Include usage in its actual page context when placement changes the answer.
Read references/test-generation.md and provide behavioral tests when the user asks to implement, fix, or test the component. Route tests to the repository's existing framework. Use Playwright for focus, browser, route, portal, or responsive behavior that a DOM-only runner cannot prove.
5. Give component feedback
Lead with whether the chosen pattern fits the component's purpose and placement. Then report:
- what already works;
- definite barriers, with affected users and relevant WCAG criteria;
- contextual risks or questions that cannot be proven from the supplied state;
- a corrected semantic structure or API;
- keyboard, focus, screen-reader, zoom/reflow, contrast, motion, and touch-target checks that apply;
- tests at component and page level.
Distinguish violations from recommendations. Do not call a preference a WCAG failure. When only code is available, clearly label runtime-dependent checks.
Site audit
2. Resolve the target
Resolve a runnable HTTP origin and a source tree when both exist. A git-host page is not an audit URL.
- If the user gave an
http(s)page that is not a repository browser (github.com,gitlab.com,bitbucket.org,codeberg.org), probe it and use it. - If they gave a git-host URL, archive, or template name:
- Use the workspace checkout when it already is that project. Otherwise shallow-clone for source mapping; do not nest the clone inside an unrelated app.
- Prefer a documented public demo that matches this source (README Demo / Live,
*.github.io, product*-demo.*hosts) when it responds. - Otherwise start the project's own dev script locally.
- Otherwise detect the local app:
package.jsonscripts (dev,start) and framework defaults (Next3000, Vite5173, Remix5173, Astro4321, Angular4200, Django/Rails8000, Hugo1313, webpack-dev-server3000/8080)..env*forPORT,HOST.- An already-listening process on those ports.
Probe the URL (curl -I or an HTTP GET). If nothing is listening, start the project's dev script in the background and wait until it responds. Do not kill a server the user already started.
If the app needs auth, collect a Playwright storageState JSON (the user logs in once) and pass --storage-state.
3. Discover pages
Build a path list. Cap at 20 unless the user asks for more.
- Paths the user named.
- Router files:
app/**/page.{js,jsx,ts,tsx},pages/**/*.{js,jsx,ts,tsx}(skipapi/,_app,_document),src/routes/**,src/pages/**. - Static HTML entry points:
src/*.html,*.htmlat the site root. Skippartials/,includes/,layouts/, and fragment-only folders. Map/file.htmland extensionless/fileif the server serves both. - Same-origin links from the homepage if the router is still unclear — use
--crawl.
Always include /. Skip dynamic routes that need unknown IDs unless the user provides values (/posts/1). Prefer one representative of each template.
4. Run the browser audit
First time in this environment:
npm install --prefix <skill-root>
npx --prefix <skill-root> playwright install chromiumThen:
node <skill-root>/scripts/audit.mjs \
--url <base-url> \
--paths / /about \
--out a11y-report.jsonUseful flags: --wcag 2.2-aa (default), --mobile, --viewport 1280x800, --crawl --max-pages 15, --storage-state <file>, --include-best-practice.
For CI regression checks, save the canonical JSON report, then compare later runs against it:
node <skill-root>/scripts/audit.mjs --url <base-url> \
--fail-on none --out a11y-report.json
node <skill-root>/scripts/audit.mjs --url <base-url> \
--baseline a11y-report.json --fail-on serious \
--format sarif --out a11y-results.sarifSupported formats are json, sarif, junit, and xlsx. Without a baseline, the severity gate applies to every finding. With a baseline, it applies only to new findings; page-load errors always fail. Keep the baseline JSON as an intentional reviewed artifact—never refresh it merely to make CI pass.
For a shareable Excel report instead of chat or JSON output:
node <skill-root>/scripts/audit.mjs --url <base-url> \
--format xlsx --out accessibility-report.xlsxThe workbook contains a formatted summary plus sheets for findings, pages, review items, and—when a baseline is supplied—new and resolved regressions. Inspect the saved workbook rather than copying the raw audit payload into the conversation.
If the user asked for a full pass, run desktop then --mobile and merge findings. Read the JSON. Do not summarize from memory of the CLI table.
5. Map to source and scan the codebase
Follow references/source-mapping.md. Every runtime violation should get a file and line, or an explicit "runtime-only" reason.
Run the static greps in that file. If the project already has eslint-plugin-jsx-a11y, eslint-plugin-vuejs-accessibility, or similar, run the project's lint script and keep a11y rules only. Do not add those plugins.
6. Report
Write the audit in the conversation using references/report.md. Deduplicate the same rule + owning component or partial across pages into one finding with a page list.
If the user asked for component suggestions or findings cluster on reusable primitives, add the Component recommendations section from that file. Follow Component guidance for each primitive. Prefer one host-native contract that would prevent the cluster.
If the user asked to fix: apply focused patches (one concern per change), then re-run audit.mjs on the affected paths and report before/after counts.
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
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.

