wcag-accessibility-audit
Skill1 starsChanged 7 months agoMITView on GitHub
Audit a web app against WCAG 2.2 AA — automated tooling (axe, Pa11y, Lighthouse), the manual checks tools miss (keyboard, screen reader, focus, color, motion), and the engineering fixes. Use when adding accessibility to a product, before public launch, after legal pressure, or to satisfy procurement requirements.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- mastepanoski/claude-skillstheir own version, first seen Feb 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- mastepanoski/claude-skills★ 54same name
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 repository50 other files it gives its agents.
- algolia-searchSkill
- audit-tautological-testsSkill
- blame-archaeologySkill
- brevo-emailSkill
- bun-runtimeSkill
- clerk-authSkill
- cloudflare-workersSkill
- dbt-data-modelingSkill
- explain-this-diffSkill
- extract-skill-from-sessionSkill
- fastapi-productionSkill
- find-dead-codeSkill
- find-real-bugSkill
- gdpr-dpiaSkill
- github-actions-ciSkill
- graphql-relaySkill
- grpc-servicesSkill
- hipaa-auditSkill
- india-dpdp-actSkill
- java-8-to-21Skill
- jest-to-vitestSkill
- kubernetes-helmSkill
- mongo-to-postgresSkill
- nextjs-pages-to-appSkill
- node-version-upgradeSkill
- opentelemetry-instrumentSkill
- pci-dss-checklistSkill
- plan-the-rollbackSkill
- python-2-to-3Skill
- razorpay-integrationSkill
- react-native-expoSkill
- scaffold-cli-toolSkill
- scaffold-fullstack-appSkill
- scaffold-go-microserviceSkill
- scaffold-new-appSkill
- scaffold-saas-starterSkill
- sentry-monitoringSkill
- shrink-this-prSkill
- soc2-evidenceSkill
- spec-from-conversationSkill
- stripe-integrationSkill
- supabase-backendSkill
- terraform-patternsSkill
- threat-modeling-strideSkill
- triage-stack-traceSkill
- webpack-to-viteSkill
- write-adrSkill
- write-commit-messageSkill
- write-pr-descriptionSkill
- write-runbookSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
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
- Distinctive: line 47
Run on each page / state. Add to CI:
- Distinctive: line 86
Use NVDA (Windows free), JAWS (Windows paid, dominant enterprise), or VoiceOver (macOS / iOS).
- Distinctive: line 106
Use tools like Stark (Figma plugin), WebAIM Contrast Checker, or DevTools color picker.
- Distinctive: line 113
No flashing > 3 times per second (seizure risk).
- Very specific: line 126
Every input has a <label> (visible or aria-label).
- Distinctive: line 129
Don't disable submit until valid — let user submit and show errors.
- Distinctive: line 130
Don't auto-submit on input.
- Distinctive: line 152
Use accessible primitives: Radix UI, Headless UI, React Aria by Adobe.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WCAG 2.2 AA Audit
WCAG (Web Content Accessibility Guidelines) 2.2 AA is the de facto baseline. Required for US public sector (Section 508), EU public sector (EN 301 549), and increasingly demanded by enterprise procurement. Lawsuits (ADA in the US) drive private-sector compliance. This skill is the engineer's audit + fix list.
When to use
- Pre-launch accessibility review.
- Procurement / VPAT request from an enterprise customer.
- Reactive: ADA demand letter or accessibility complaint.
- Routine quarterly audit of a public product.
When NOT to use
- Internal-only tools with no external users (still good practice; lower legal pressure).
- Non-web (native mobile, desktop) — different standards (WCAG still applies, but tooling differs).
The four POUR principles
WCAG organizes around four principles:
- Perceivable — users must perceive the content (alt text, captions, contrast).
- Operable — users must operate the UI (keyboard, time, no seizures).
- Understandable — text + UI predictable and clear.
- Robust — works with assistive tech.
AA is the conformance level for legal-defensibility. AAA is stricter; A is too loose.
The audit pipeline
1. Automated scan (catches ~30% of issues)
# axe-core (most accurate, broad coverage)
pnpm dlx @axe-core/cli https://example.com
# Pa11y (CI-friendly)
pnpm dlx pa11y https://example.com --standard WCAG2AA
# Lighthouse (built into Chrome)
# DevTools → Lighthouse → AccessibilityRun on each page / state. Add to CI:
- run: pnpm pa11y-ci --sitemap https://staging.example.com/sitemap.xmlAutomated tools catch:
- Missing alt text.
- Insufficient color contrast (most cases).
- Missing form labels.
- Broken ARIA.
- Missing landmarks.
- Tab order issues (sometimes).
They miss:
- Whether alt text is meaningful.
- Keyboard navigation flow correctness.
- Screen-reader announcement quality.
- Focus management on dynamic content.
- Reading order for complex layouts.
- Accessible names for icon buttons.
2. Keyboard-only test (essential)
Unplug your mouse. Navigate the entire app:
| Check | Pass criteria |
| Tab to every interactive element | All buttons/links/inputs reachable |
| Focus is visible | Always — clear outline, not removed |
| Tab order is logical | Top-to-bottom, left-to-right (LTR languages) |
| No keyboard traps | Esc closes modals; can tab out of widgets |
| Skip-to-content link | Top-of-page link to main content |
| Modals trap focus | Focus stays in modal until dismissed |
| Modal close on Esc | Required |
| Dropdowns / menus operable via arrow keys | Standard pattern |
| Custom widgets follow ARIA Authoring Practices | Combobox, Listbox, Tabs, etc. |
3. Screen reader test
Use NVDA (Windows free), JAWS (Windows paid, dominant enterprise), or VoiceOver (macOS / iOS). Read your app top to bottom.
Listen for:
- Are images announced with meaningful descriptions?
- Are buttons announced with their purpose? (
<button>Submit</button>good;<div onClick>X</div>silent.) - Are form fields announced with their label?
- Are errors announced when validation fails?
- Are dynamic updates (toast, modal open) announced via
aria-live? - Are headings logical (h1 → h2 → h3, not skipping levels)?
- Are landmarks present (
<header>,<nav>,<main>,<footer>)?
4. Color and contrast
| Element | Required ratio (AA) |
| Body text (small) | 4.5:1 |
| Large text (≥ 18pt or 14pt bold) | 3:1 |
| UI components (button borders, focus indicator) | 3:1 |
| Decorative images | N/A |
Use tools like Stark (Figma plugin), WebAIM Contrast Checker, or DevTools color picker.
Don't rely on color alone — error messages need both red color and an icon or text. Color-blind users get only the second signal.
5. Motion and animation
- Auto-playing content (carousel, video) must be pausable.
- No flashing > 3 times per second (seizure risk).
- Respect
prefers-reduced-motion:@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
6. Forms
- Every input has a
<label>(visible oraria-label). - Required fields marked with both
requiredand visible asterisk + text. - Errors announced (
aria-invalid, error message inaria-describedby). - Don't disable submit until valid — let user submit and show errors.
- Don't auto-submit on input; use explicit submit.
<!-- Bad -->
<input placeholder="Email" />
<!-- Good -->
<label for="email">Email <span aria-hidden="true">*</span><span class="sr-only">(required)</span></label>
<input id="email" type="email" required aria-describedby="email-error" />
<div id="email-error" role="alert"><!-- populated on error --></div>7. Common framework gotchas
| Framework | Issue |
| React | <div onClick> instead of <button> — not focusable, not keyboard-operable |
| Tailwind | outline-none removed without focus replacement — visible focus disappears |
| Component libraries (older Material UI, Bootstrap modals) | Pre-WAI-ARIA patterns — verify; modern libs (Radix, Headless UI) are better |
| Next.js | <Link> is a button-like; passHref only matters for legacy patterns now |
| Modal libraries | Some don't trap focus or restore focus on close |
Use accessible primitives: Radix UI, Headless UI, React Aria by Adobe. They handle the WAI-ARIA patterns correctly. Don't roll your own dropdown / dialog / combobox.
8. Images
<!-- Decorative — empty alt -->
<img src="hero-bg.jpg" alt="" />
<!-- Informative — descriptive -->
<img src="chart.png" alt="Revenue Q3 2025: $1.2M, up 15% from Q2" />
<!-- Functional (button-image) — describe action -->
<button><img src="trash.svg" alt="Delete project" /></button>
<!-- Same-page text already describes — empty alt -->
<a href="/profile">
<img src="avatar.jpg" alt="" />
<span>Profile</span>
</a>The most common bug: alt="image" or alt="photo" — useless. Either describe the content or use alt="" for decorative.
9. Tables
<table>
<caption>Quarterly revenue 2025</caption>
<thead>
<tr><th scope="col">Quarter</th><th scope="col">Revenue</th></tr>
</thead>
<tbody>
<tr><th scope="row">Q1</th><td>$800k</td></tr>
<tr><th scope="row">Q2</th><td>$1.0M</td></tr>
</tbody>
</table>scope="col" and scope="row" make screen reader announcements much clearer.
10. Dynamic content
<!-- Toast / notification -->
<div role="status" aria-live="polite">Settings saved.</div>
<!-- Critical alert -->
<div role="alert" aria-live="assertive">Error: payment declined.</div>
<!-- Loading state -->
<div role="status" aria-busy="true">Loading...</div>aria-live="polite" — announces when screen reader is idle. assertive — interrupts. Use polite by default.
VPAT (Voluntary Product Accessibility Template)
Enterprise procurement asks for a VPAT — a document mapping your product to WCAG / Section 508 criteria. Generate it from your audit. Honest VPATs note "Partially Supports" with explanation; lying gets caught.
Anti-patterns
- Trusting Lighthouse 100% score — Lighthouse catches ~30%; the rest needs human + screen reader.
- Adding
tabindex="0"to non-interactive divs — makes them focusable but not operable. Use<button>. tabindex="-1"on interactive elements — removes them from tab order silently.outline: nonewithout alternative — focus invisible.- Carousels that auto-advance with no pause — WCAG fail.
- Color as the only signal for state (red/green) — fail for color-blind.
<a href="#" onClick>instead of<button>— semantic mismatch.- Modal that doesn't trap focus or restore it on close — keyboard user gets stranded.
- Placeholder as the label — disappears on focus; screen readers may skip.
role="button"on a<div>— re-implementing what<button>already does, missing keyboard support.- Skip alt text on real images — most common failure.
- Skip captions on videos — fail for deaf/hard-of-hearing.
- Arial- attributes mis-used* ("aria-haspopup": true on a list that doesn't have a popup) — worse than no aria.
Verify it worked
- axe + Pa11y + Lighthouse all green or document any "won't fix" with reason.
- Keyboard-only test: complete all primary user flows without mouse.
- Focus indicators visible everywhere.
- No keyboard traps (Esc closes modals; Tab eventually exits).
- Screen reader test: complete sign-up + checkout + settings change.
- All form inputs have associated labels.
- All form errors announced.
- All non-decorative images have meaningful alt.
- Color contrast checked: body text ≥ 4.5:1; large text + UI ≥ 3:1.
prefers-reduced-motionrespected.- No flashing > 3 Hz.
- Heading structure logical (h1 → h2 → h3, no skips).
- Landmarks present (
<header>,<nav>,<main>,<footer>). - VPAT prepared if customers ask.
- Accessibility added to CI (axe/pa11y in PR pipeline).
- At least one user with assistive tech experience has tested key flows.
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.

