[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71M6ZD362ZDBD3XFAF08H3Z":3,"skill-same:01M71M6ZD362ZDBD3XFAF08H3Z":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":14,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M71M6ZD362ZDBD3XFAF08H3Z","accessibility-testing",null,"Test for WCAG 2.2 AA compliance with axe-core + Playwright, keyboard navigation audits, screen reader testing, ARIA pattern validation, and legal compliance mapping (ADA, EAA, Section 508). Automated tools catch 30-40% of issues — this skill covers automated and manual testing together. Use when: \"accessibility,\" \"a11y,\" \"WCAG,\" \"screen reader,\" \"axe,\" \"keyboard navigation,\" \"ARIA,\" \"ADA compliance.\" Not for: cookie-consent\u002FGDPR compliance — use compliance-testing; pixel-diff visual regression — use visual-testing. Related: playwright-automation, compliance-testing, visual-testing, ci-cd-integration.","pattanation\u002FNorvik","pattanation","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235419268?v=4","01M71M5THHYYB15ME8R2E4FCZG","Patta","01M71M5TJM1NDM992M8PDKYR2K",0,"MIT","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Faccessibility-testing\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"accessibility","testing","accessibility testing","cookie","when","a11y","catch","gdpr compliance","screen","keyboard","manual testing","visual regression","compliance mapping","pixel","screen reader testing","legal compliance","specialized","regression","ci","issues","2026-11-10 10:56:23",false,"---\nname: accessibility-testing\ndescription: >-\n  Test for WCAG 2.2 AA compliance with axe-core + Playwright, keyboard navigation audits,\n  screen reader testing, ARIA pattern validation, and legal compliance mapping (ADA, EAA,\n  Section 508). Automated tools catch 30-40% of issues — this skill covers automated and\n  manual testing together. Use when: \"accessibility,\" \"a11y,\" \"WCAG,\" \"screen reader,\" \"axe,\"\n  \"keyboard navigation,\" \"ARIA,\" \"ADA compliance.\"\n  Not for: cookie-consent\u002FGDPR compliance — use compliance-testing; pixel-diff visual\n  regression — use visual-testing.\n  Related: playwright-automation, compliance-testing, visual-testing, ci-cd-integration.\nlicense: MIT\nmetadata:\n  author: kindlmann\n  version: \"2.0\"\n  category: specialized\n---\n\n\u003Cobjective>\nMake an application usable by people who rely on keyboards and assistive technology, and prove\nit with tests that run in CI. A button that passes `toBeVisible()` can still be unreachable by\nkeyboard; a page with zero axe violations can still be impossible to operate with a screen\nreader. Automated tools catch 30-40% of accessibility issues — this skill covers the automated\nscan plus the keyboard, screen reader, and ARIA-state testing that catch the other 60-70%.\n\u003C\u002Fobjective>\n\n## Discovery Questions\n\nCheck `.agents\u002Fqa-project-context.md` first — if it exists, use it as the foundation and skip\nanything already answered.\n\n**Requirements and compliance** (sets the target level and audit obligations)\n- What WCAG conformance level is required — A, AA, or AAA? AA is the practical legal default.\n- What laws apply — ADA, EAA\u002FEN 301 549, Section 508, AODA? Each maps to a WCAG level.\n- Is there a VPAT or accessibility statement to maintain, or contractual a11y clauses from enterprise\u002Fgovernment customers?\n\n**Current state** (tells you whether you're auditing or preventing regressions)\n- Has an audit run before? What were the findings, and what's already in the backlog?\n- Does the design system carry accessibility guidance and accessible components?\n\n**Testing infrastructure** (determines what you can automate vs. must do by hand)\n- Is automated a11y testing already in CI?\n- Which screen readers does the team test with — VoiceOver, NVDA, JAWS, TalkBack?\n\n## Core Principles\n\n1. **Automated testing catches 30-40% of issues — no more.** axe-core finds missing alt text,\n   low contrast, missing labels, and invalid ARIA. It cannot tell you whether alt text is\n   meaningful, whether tab order is logical, or whether a custom widget is operable. Passing\n   axe is necessary, not sufficient. Crucially, axe ships **no automated rule** for several\n   WCAG 2.2 success criteria (2.4.11 focus-not-obscured, 2.5.7 dragging movements, and 2.5.8\n   target-size only partially) — a green axe run does not equal 2.2 AA conformance.\n\n2. **Semantic HTML first, ARIA as last resort.** Native elements (`\u003Cbutton>`, `\u003Cnav>`,\n   `\u003Cinput>`, `\u003Cdialog>`) carry built-in semantics, keyboard behavior, and screen reader\n   support. A `\u003Cdiv role=\"button\">` also needs `tabindex`, Enter\u002FSpace handlers, focus styles,\n   and ARIA state — all of which a `\u003Cbutton>` gives you free. Reach for ARIA only when no\n   native element fits.\n\n3. **Test in impact order: keyboard, screen reader, automated.** Keyboard issues physically\n   block users from features (highest impact). Screen reader issues confuse with wrong\n   announcements. Automated checks catch the mechanical remainder. Start where the damage is\n   worst, not where the tooling is easiest.\n\n4. **Accessibility is a quality attribute, not a feature.** Test it continuously like\n   performance or security — every new component, every PR. Retrofitting accessibility onto a\n   finished product costs 10-100x more because inaccessible patterns get baked into the\n   component library.\n\n5. **Test with real assistive technology.** Browser DevTools and axe extensions are dev aids,\n   not substitutes for VoiceOver (macOS\u002FiOS), NVDA (Windows), and TalkBack (Android), which\n   each behave differently. Reserve manual AT passes for complex custom widgets.\n\n## Automated Scanning with axe-core + Playwright\n\nInstall `@axe-core\u002Fplaywright` (the 4.11.x line; it tracks axe-core's major.minor). Wrap it in\na reusable `checkAccessibility(page, testInfo, options)` helper that filters to the WCAG tags\n`['wcag2a', 'wcag2aa', 'wcag22aa']`, attaches the full results JSON to the test for the audit\ntrail, and asserts `violations.toHaveLength(0)`. Loop it over every key page and over\ninteractive states (modal open, menu expanded), not just the default load.\n\nSuppress a rule only with a documented justification (a tracking issue or inline comment) and\n`exclude` third-party widgets you don't own rather than disabling the rule globally.\n\nSee `references\u002Frecipes.md` for the install command, RGAA tag caveat, the full helper, the\npage-loop and interactive-state specs, rule suppression, and CI integration.\n\n## Manual Testing Checklist\n\nAutomated scanning is the floor. These checks need a human (or a keyboard-driven Playwright\nspec — see `references\u002Frecipes.md` for the keyboard specs).\n\n### Keyboard navigation audit\n\n- [ ] **Tab order is logical** — left-to-right, top-to-bottom for LTR. No surprise focus jumps.\n- [ ] **All interactive elements reachable** via Tab \u002F Shift+Tab.\n- [ ] **Focus indicator visible** on every focused element. No `outline: none` without a replacement.\n- [ ] **Skip link works** — first Tab reveals \"Skip to main content\"; Enter moves focus to `\u003Cmain>`.\n- [ ] **Enter activates** buttons\u002Flinks; **Space activates** buttons and toggles checkboxes.\n- [ ] **Escape closes** modals, dropdowns, tooltips; focus returns to the trigger.\n- [ ] **Arrow keys** navigate within tabs, menus, radio groups, tree views.\n- [ ] **No keyboard traps** (modal dialogs intentionally trap until dismissed — that's allowed).\n- [ ] **Custom widgets operable** without a mouse (sliders, date pickers, drag-and-drop).\n\n### Screen reader testing\n\n| Screen Reader | OS | Browser | Free? |\n|--------------|-----|---------|-------|\n| VoiceOver | macOS\u002FiOS | Safari | Yes (Cmd+F5) |\n| NVDA | Windows | Firefox\u002FChrome | Yes |\n| JAWS | Windows | Chrome\u002FEdge | No |\n| TalkBack | Android | Chrome | Yes |\n\n- [ ] Page title announced on navigation.\n- [ ] Headings form a navigable outline (h1 → h2 → h3, no skipped levels).\n- [ ] Images have descriptive alt text (or `alt=\"\"` for decorative).\n- [ ] Form inputs announce their labels when focused.\n- [ ] Required fields announced as required; errors associated with their input.\n- [ ] Live regions announce dynamic content (toasts, loading states).\n- [ ] Buttons\u002Flinks announce their purpose (no \"click here\").\n\n### Color contrast and visual\n\n- [ ] Normal text: **4.5:1** minimum (WCAG AA). Large text (18pt+ \u002F 14pt+ bold): **3:1**.\n- [ ] UI components and graphical objects: **3:1** against adjacent colors.\n- [ ] Information never conveyed by color alone — add icons, patterns, or text.\n\n### Form and error accessibility\n\n- [ ] Every input has a visible `\u003Clabel>` tied via `for`\u002F`id` (placeholder is not a label).\n- [ ] Required fields indicated visually **and** programmatically (`required` \u002F `aria-required`).\n- [ ] Errors use `aria-describedby` to link to the input and `role=\"alert\"` to announce.\n- [ ] Focus moves to the first error on submission failure.\n- [ ] Related fields grouped with `\u003Cfieldset>` and `\u003Clegend>`.\n\n## WCAG 2.2 Quick Reference\n\n### Level A (must fix)\n\n| Criterion | What it means | Common failure |\n|-----------|--------------|---------------|\n| 1.1.1 Non-text Content | Images have alt text | `\u003Cimg>` without `alt` |\n| 1.3.1 Info and Relationships | Structure via HTML semantics | `\u003Cdiv>` styled as a heading |\n| 2.1.1 Keyboard | All functionality via keyboard | Custom widget responds only to mouse |\n| 2.4.1 Bypass Blocks | Skip navigation link | No skip link |\n| 3.1.1 Language of Page | `\u003Chtml lang=\"en\">` set | Missing `lang` |\n| 3.3.1 Error Identification | Errors described in text | Error shown only by red border |\n| 4.1.2 Name, Role, Value | Custom controls expose name\u002Frole | `\u003Cdiv onclick>` with no role |\n\n### Level AA (most common legal requirement)\n\n| Criterion | What it means | Common failure |\n|-----------|--------------|---------------|\n| 1.4.3 Contrast (Minimum) | 4.5:1 normal, 3:1 large | Light gray on white |\n| 1.4.4 Resize Text | Scales to 200% without loss | Fixed-height containers clip text |\n| 1.4.11 Non-text Contrast | UI components 3:1 | Low-contrast input borders |\n| 2.4.7 Focus Visible | Keyboard focus visible | `outline: none` with no replacement |\n| 2.5.8 Target Size | Touch targets 24×24px min | Tiny icon buttons |\n| 3.3.2 Labels or Instructions | Inputs have labels | Placeholder as the only label |\n| 3.3.8 Accessible Auth | No cognitive function test | CAPTCHA with no alternative |\n\n### Level AAA (nice to have)\n\n| Criterion | What it means |\n|-----------|--------------|\n| 1.4.6 Contrast (Enhanced) | 7:1 normal text, 4.5:1 large |\n| 2.4.9 Link Purpose (Link Only) | Link text alone describes destination |\n| 3.1.5 Reading Level | Lower-secondary education level |\n\n## Accessible Patterns\n\nTest on the accessible tree (roles, names, ARIA state), not on CSS. The patterns you need\nrunnable tests for:\n\n- **Forms** — error linked via `aria-describedby`, `aria-invalid='true'`, focus on first error.\n- **Modal\u002Fdialog** — `aria-modal='true'`, `aria-labelledby`, focus trapped, Escape returns focus.\n- **Interactive states** — opened dropdown (`role=\"menu\"` or `role=\"listbox\"`, `aria-expanded`),\n  loading skeleton (`aria-busy='true'` during fetch), toast (`aria-live='polite'`). These carry\n  different ARIA per state, so click to trigger the state change and assert the open-state ARIA —\n  the default page snapshot never exercises them.\n- **Data tables** — `columnheader` roles, `aria-sort` reflects the active sort.\n- **Landmarks** — exactly one `main`; `banner`, `navigation`, `contentinfo` present.\n\nSee `references\u002Fpatterns.md` for the full runnable tests for every pattern above.\n\n## ARIA Snapshots\n\nPlaywright's `toMatchAriaSnapshot()` captures the accessible tree as YAML and asserts against\nit — the fastest way to catch a regression where a visual change silently breaks semantics (a\n`\u003Cdiv>` restyled to look like a button, a heading demoted to plain text). It checks structure\nand accessible names, not pixels, so it's complementary to `visual-testing`, not a replacement.\nScope snapshots to a stable container; whole-page snapshots over async content go flaky. See\n`references\u002Fpatterns.md` for navigation and form snapshot examples.\n\n## Legal Compliance Mapping\n\n| Law \u002F Standard | Region | WCAG level required | Enforcement |\n|---------------|--------|-------------------|------------|\n| **ADA** | USA | AA (court precedent) | Lawsuits (private right of action) |\n| **Section 508** | USA (federal) | WCAG 2.0 AA | Federal procurement requirement |\n| **EAA** | EU | EN 301 549 (WCAG 2.1 AA) | **In force since 28 June 2025.** Member states actively enforcing; private cause of action varies (DE, FR, IE most active). EN 301 549 expected to align with WCAG 2.2 next revision. |\n| **AODA** | Ontario, Canada | WCAG 2.0 AA | Fines up to $100K\u002Fday |\n| **EN 301 549** | EU | WCAG 2.1 AA | Public procurement requirement |\n| **Equality Act 2010** | UK | WCAG 2.1 AA (guidance) | Lawsuits |\n| **ISO\u002FIEC 40500:2025** | International | Equivalent to WCAG 2.2 (Oct 2023) | Useful for procurement\u002FRFP language; freely available from ISO |\n\n**Practical target:** if you serve US or EU users, **WCAG 2.2 AA is the target for new\ndevelopment** — the EAA is in force, EN 301 549 is expected to update to 2.2, and ISO\u002FIEC\n40500:2025 (published Sept 2025) codifies WCAG 2.2 internationally. WCAG 2.1 AA is the legacy\nminimum where 2.2 can't be reached immediately.\n\n**WCAG 3 status:** W3C published an updated WCAG 3 working draft in March 2026 that renamed\n\"Outcomes\" to \"Requirements\" and moved away from binary pass\u002Ffail grading; it lists ~174\nrequirements. It remains a working draft — Candidate Recommendation is targeted for Q4 2027 and\na Recommendation not before 2028. Plan for WCAG 2.2 today; track WCAG 3 but do not test against\nit yet.\n\n**Audit evidence to collect:** automated scan results per page, manual checklists with\ntester\u002Fdate, screen reader results with AT versions, accessibility statement, VPAT for\nenterprise sales, and a remediation plan for known issues. For the full legal\u002FVPAT\u002Fconsent\nmapping, see `compliance-testing`.\n\n## Anti-Patterns\n\n### Only automated testing\nRunning axe, finding zero violations, and declaring the product accessible. Automated tools\nmiss 60-70% of real issues and skip several WCAG 2.2 criteria entirely. **Fix:** pair every axe\nrun with the keyboard and screen reader checklist; gate releases on both, not just the scan.\n\n### ARIA overuse\nAdding `role`, `aria-label`, and `aria-describedby` to elements that already have native\nsemantics, creating double announcements. **Fix:** delete the redundant ARIA and use the native\nelement — a `\u003Cbutton>` never needs `role=\"button\"`.\n\n### Ignoring keyboard users\nFeatures that work by mouse and touch but not keyboard — click-only dropdowns, drag-and-drop\nwith no keyboard path, hover-only tooltips. **Fix:** give every mouse interaction a keyboard\nequivalent and cover it with a `keyboard.spec.ts` test (see `references\u002Frecipes.md`).\n\n### Retrofitting accessibility\nWaiting until the product is \"finished,\" by which point inaccessible patterns are baked into the\ncomponent library at 10-100x the fix cost. **Fix:** add an axe check to the Definition of Done\nso every new component is gated on accessibility before merge.\n\n### Treating accessibility as optional\nDeprioritizing a11y tickets because \"nobody complained\" — users with disabilities can't complain\nthrough a product they can't use, so they leave silently, and US web-accessibility lawsuits have\nclimbed year over year since 2018. **Fix:** track a11y as a release blocker with the same\nseverity rules as functional bugs, and report open a11y issues in the release readiness check.\n\n### Testing only the happy path\nScanning only the default page state, missing the modals, expanded dropdowns, error messages,\nand loading skeletons that carry different ARIA. **Fix:** drive each interactive state in the\ntest (click to open the menu, trigger the fetch) and re-run the scan against the changed DOM.\n\n## Failure Modes\n\n| Symptom | Likely cause | Fix or check |\n|---------|-------------|-------------|\n| axe finds 0 violations but the page is unusable by keyboard | Automated scans don't test operability or focus order | Run the keyboard audit; add a `keyboard.spec.ts` |\n| `toMatchAriaSnapshot` is flaky | Dynamic content or list reordering inside the snapshot scope | Scope to a stable container; use a partial snapshot |\n| Contrast rule passes but text over a gradient\u002Foverlay\u002Fimage is unreadable | axe can't compute contrast against non-solid backgrounds | Check those cases manually or with a contrast picker |\n| Passing axe but failing a WCAG 2.2 AA audit | axe ships no rule for 2.4.11 \u002F 2.5.7 and only partial 2.5.8 | Manually verify focus-not-obscured, dragging alternatives, and target size |\n\n## Verification\n\nProve the suite actually exercises the page — an a11y test that passes vacuously (wrong URL, axe scanning an error page, snapshot never reached) is worse than none.\n\n1. **Confirm axe is scanning real content.** Point the helper at a page you know has a violation (e.g. temporarily remove a `\u003Clabel>`) and run it — the test must FAIL and name the rule:\n   ```bash\n   npx playwright test e2e\u002Ftests\u002Fa11y\u002Fpages.spec.ts\n   ```\n   If a page with a planted defect still passes, AxeBuilder is scanning the wrong DOM (redirect, blank page, or wrong selector) — fix that before trusting any green run.\n2. **Confirm the keyboard specs reach the app, not a 404.** Run `npx playwright test e2e\u002Ftests\u002Fa11y\u002Fkeyboard.spec.ts` and open the trace for the skip-link test — the first Tab should land on the skip link, not nowhere. A test that \"passes\" because the page never loaded is a false green.\n3. **Confirm the CI gate blocks.** Introduce one serious violation on a branch and push — the `a11y` job must exit non-zero and fail the PR check. Revert after.\n4. **Spot-check an ARIA snapshot.** Run `toMatchAriaSnapshot` once with `--update-snapshots`, then again without — the second run must pass. If it flakes, the snapshot scope includes async\u002Freordering content; narrow it to a stable container.\n\n## Done When\n\n- axe-core integrated into the E2E suite and run automatically on all key user-facing pages identified in the test strategy.\n- CI reports zero critical or serious axe violations and blocks merge when any are introduced (see `references\u002Frecipes.md` for the workflow).\n- Keyboard navigation tested end-to-end for all interactive flows (forms, modals, dropdowns, navigation menus).\n- Interactive-state ARIA verified for at least one dropdown\u002Fmenu (`aria-expanded` + `role`), one loading region (`aria-busy`), and one live region (`aria-live`).\n- Color contrast validated for the full brand palette against WCAG AA thresholds (4.5:1 normal text, 3:1 large text and UI components).\n- Screen reader test notes documented for complex custom widgets (date pickers, data tables, drag-and-drop), including which screen reader and version was used.\n\n## Related Skills\n\n- **playwright-automation** — the test runner for both axe scans and keyboard\u002FARIA snapshot tests; this skill adds the accessibility-specific patterns on top.\n- **compliance-testing** — legal\u002Fregulatory testing including cookie consent (GDPR\u002FCMP), VPAT generation, and EAA\u002FSection 508 reporting. Go there for consent banners and formal compliance documentation; stay here for WCAG conformance testing.\n- **visual-testing** — pixel-diff screenshot regression. Use it for visual rendering changes; use this skill's ARIA snapshots for semantic-tree regressions and contrast for the a11y-specific color thresholds.\n- **ci-cd-integration** — running a11y tests in CI and blocking merges on violations.\n- **risk-based-testing** — prioritizes which pages and components to audit first.\n","\u003Cobjective>\nMake an application usable by people who rely on keyboards and assistive technology, and prove\nit with tests that run in CI. A button that passes `toBeVisible()` can still be unreachable by\nkeyboard; a page with zero axe violations can still be impossible to operate with a screen\nreader. Automated tools catch 30-40% of accessibility issues — this skill covers the automated\nscan plus the keyboard, screen reader, and ARIA-state testing that catch the other 60-70%.\n\u003C\u002Fobjective>\n\n## Discovery Questions\n\nCheck `.agents\u002Fqa-project-context.md` first — if it exists, use it as the foundation and skip\nanything already answered.\n\n**Requirements and compliance** (sets the target level and audit obligations)\n- What WCAG conformance level is required — A, AA, or AAA? AA is the practical legal default.\n- What laws apply — ADA, EAA\u002FEN 301 549, Section 508, AODA? Each maps to a WCAG level.\n- Is there a VPAT or accessibility statement to maintain, or contractual a11y clauses from enterprise\u002Fgovernment customers?\n\n**Current state** (tells you whether you're auditing or preventing regressions)\n- Has an audit run before? What were the findings, and what's already in the backlog?\n- Does the design system carry accessibility guidance and accessible components?\n\n**Testing infrastructure** (determines what you can automate vs. must do by hand)\n- Is automated a11y testing already in CI?\n- Which screen readers does the team test with — VoiceOver, NVDA, JAWS, TalkBack?\n\n## Core Principles\n\n1. **Automated testing catches 30-40% of issues — no more.** axe-core finds missing alt text,\n   low contrast, missing labels, and invalid ARIA. It cannot tell you whether alt text is\n   meaningful, whether tab order is logical, or whether a custom widget is operable. Passing\n   axe is necessary, not sufficient. Crucially, axe ships **no automated rule** for several\n   WCAG 2.2 success criteria (2.4.11 focus-not-obscured, 2.5.7 dragging movements, and 2.5.8\n   target-size only partially) — a green axe run does not equal 2.2 AA conformance.\n\n2. **Semantic HTML first, ARIA as last resort.** Native elements (`\u003Cbutton>`, `\u003Cnav>`,\n   `\u003Cinput>`, `\u003Cdialog>`) carry built-in semantics, keyboard behavior, and screen reader\n   support. A `\u003Cdiv role=\"button\">` also needs `tabindex`, Enter\u002FSpace handlers, focus styles,\n   and ARIA state — all of which a `\u003Cbutton>` gives you free. Reach for ARIA only when no\n   native element fits.\n\n3. **Test in impact order: keyboard, screen reader, automated.** Keyboard issues physically\n   block users from features (highest impact). Screen reader issues confuse with wrong\n   announcements. Automated checks catch the mechanical remainder. Start where the damage is\n   worst, not where the tooling is easiest.\n\n4. **Accessibility is a quality attribute, not a feature.** Test it continuously like\n   performance or security — every new component, every PR. Retrofitting accessibility onto a\n   finished product costs 10-100x more because inaccessible patterns get baked into the\n   component library.\n\n5. **Test with real assistive technology.** Browser DevTools and axe extensions are dev aids,\n   not substitutes for VoiceOver (macOS\u002FiOS), NVDA (Windows), and TalkBack (Android), which\n   each behave differently. Reserve manual AT passes for complex custom widgets.\n\n## Automated Scanning with axe-core + Playwright\n\nInstall `@axe-core\u002Fplaywright` (the 4.11.x line; it tracks axe-core's major.minor). Wrap it in\na reusable `checkAccessibility(page, testInfo, options)` helper that filters to the WCAG tags\n`['wcag2a', 'wcag2aa', 'wcag22aa']`, attaches the full results JSON to the test for the audit\ntrail, and asserts `violations.toHaveLength(0)`. Loop it over every key page and over\ninteractive states (modal open, menu expanded), not just the default load.\n\nSuppress a rule only with a documented justification (a tracking issue or inline comment) and\n`exclude` third-party widgets you don't own rather than disabling the rule globally.\n\nSee `references\u002Frecipes.md` for the install command, RGAA tag caveat, the full helper, the\npage-loop and interactive-state specs, rule suppression, and CI integration.\n\n## Manual Testing Checklist\n\nAutomated scanning is the floor. These checks need a human (or a keyboard-driven Playwright\nspec — see `references\u002Frecipes.md` for the keyboard specs).\n\n### Keyboard navigation audit\n\n- [ ] **Tab order is logical** — left-to-right, top-to-bottom for LTR. No surprise focus jumps.\n- [ ] **All interactive elements reachable** via Tab \u002F Shift+Tab.\n- [ ] **Focus indicator visible** on every focused element. No `outline: none` without a replacement.\n- [ ] **Skip link works** — first Tab reveals \"Skip to main content\"; Enter moves focus to `\u003Cmain>`.\n- [ ] **Enter activates** buttons\u002Flinks; **Space activates** buttons and toggles checkboxes.\n- [ ] **Escape closes** modals, dropdowns, tooltips; focus returns to the trigger.\n- [ ] **Arrow keys** navigate within tabs, menus, radio groups, tree views.\n- [ ] **No keyboard traps** (modal dialogs intentionally trap until dismissed — that's allowed).\n- [ ] **Custom widgets operable** without a mouse (sliders, date pickers, drag-and-drop).\n\n### Screen reader testing\n\n| Screen Reader | OS | Browser | Free? |\n|--------------|-----|---------|-------|\n| VoiceOver | macOS\u002FiOS | Safari | Yes (Cmd+F5) |\n| NVDA | Windows | Firefox\u002FChrome | Yes |\n| JAWS | Windows | Chrome\u002FEdge | No |\n| TalkBack | Android | Chrome | Yes |\n\n- [ ] Page title announced on navigation.\n- [ ] Headings form a navigable outline (h1 → h2 → h3, no skipped levels).\n- [ ] Images have descriptive alt text (or `alt=\"\"` for decorative).\n- [ ] Form inputs announce their labels when focused.\n- [ ] Required fields announced as required; errors associated with their input.\n- [ ] Live regions announce dynamic content (toasts, loading states).\n- [ ] Buttons\u002Flinks announce their purpose (no \"click here\").\n\n### Color contrast and visual\n\n- [ ] Normal text: **4.5:1** minimum (WCAG AA). Large text (18pt+ \u002F 14pt+ bold): **3:1**.\n- [ ] UI components and graphical objects: **3:1** against adjacent colors.\n- [ ] Information never conveyed by color alone — add icons, patterns, or text.\n\n### Form and error accessibility\n\n- [ ] Every input has a visible `\u003Clabel>` tied via `for`\u002F`id` (placeholder is not a label).\n- [ ] Required fields indicated visually **and** programmatically (`required` \u002F `aria-required`).\n- [ ] Errors use `aria-describedby` to link to the input and `role=\"alert\"` to announce.\n- [ ] Focus moves to the first error on submission failure.\n- [ ] Related fields grouped with `\u003Cfieldset>` and `\u003Clegend>`.\n\n## WCAG 2.2 Quick Reference\n\n### Level A (must fix)\n\n| Criterion | What it means | Common failure |\n|-----------|--------------|---------------|\n| 1.1.1 Non-text Content | Images have alt text | `\u003Cimg>` without `alt` |\n| 1.3.1 Info and Relationships | Structure via HTML semantics | `\u003Cdiv>` styled as a heading |\n| 2.1.1 Keyboard | All functionality via keyboard | Custom widget responds only to mouse |\n| 2.4.1 Bypass Blocks | Skip navigation link | No skip link |\n| 3.1.1 Language of Page | `\u003Chtml lang=\"en\">` set | Missing `lang` |\n| 3.3.1 Error Identification | Errors described in text | Error shown only by red border |\n| 4.1.2 Name, Role, Value | Custom controls expose name\u002Frole | `\u003Cdiv onclick>` with no role |\n\n### Level AA (most common legal requirement)\n\n| Criterion | What it means | Common failure |\n|-----------|--------------|---------------|\n| 1.4.3 Contrast (Minimum) | 4.5:1 normal, 3:1 large | Light gray on white |\n| 1.4.4 Resize Text | Scales to 200% without loss | Fixed-height containers clip text |\n| 1.4.11 Non-text Contrast | UI components 3:1 | Low-contrast input borders |\n| 2.4.7 Focus Visible | Keyboard focus visible | `outline: none` with no replacement |\n| 2.5.8 Target Size | Touch targets 24×24px min | Tiny icon buttons |\n| 3.3.2 Labels or Instructions | Inputs have labels | Placeholder as the only label |\n| 3.3.8 Accessible Auth | No cognitive function test | CAPTCHA with no alternative |\n\n### Level AAA (nice to have)\n\n| Criterion | What it means |\n|-----------|--------------|\n| 1.4.6 Contrast (Enhanced) | 7:1 normal text, 4.5:1 large |\n| 2.4.9 Link Purpose (Link Only) | Link text alone describes destination |\n| 3.1.5 Reading Level | Lower-secondary education level |\n\n## Accessible Patterns\n\nTest on the accessible tree (roles, names, ARIA state), not on CSS. The patterns you need\nrunnable tests for:\n\n- **Forms** — error linked via `aria-describedby`, `aria-invalid='true'`, focus on first error.\n- **Modal\u002Fdialog** — `aria-modal='true'`, `aria-labelledby`, focus trapped, Escape returns focus.\n- **Interactive states** — opened dropdown (`role=\"menu\"` or `role=\"listbox\"`, `aria-expanded`),\n  loading skeleton (`aria-busy='true'` during fetch), toast (`aria-live='polite'`). These carry\n  different ARIA per state, so click to trigger the state change and assert the open-state ARIA —\n  the default page snapshot never exercises them.\n- **Data tables** — `columnheader` roles, `aria-sort` reflects the active sort.\n- **Landmarks** — exactly one `main`; `banner`, `navigation`, `contentinfo` present.\n\nSee `references\u002Fpatterns.md` for the full runnable tests for every pattern above.\n\n## ARIA Snapshots\n\nPlaywright's `toMatchAriaSnapshot()` captures the accessible tree as YAML and asserts against\nit — the fastest way to catch a regression where a visual change silently breaks semantics (a\n`\u003Cdiv>` restyled to look like a button, a heading demoted to plain text). It checks structure\nand accessible names, not pixels, so it's complementary to `visual-testing`, not a replacement.\nScope snapshots to a stable container; whole-page snapshots over async content go flaky. See\n`references\u002Fpatterns.md` for navigation and form snapshot examples.\n\n## Legal Compliance Mapping\n\n| Law \u002F Standard | Region | WCAG level required | Enforcement |\n|---------------|--------|-------------------|------------|\n| **ADA** | USA | AA (court precedent) | Lawsuits (private right of action) |\n| **Section 508** | USA (federal) | WCAG 2.0 AA | Federal procurement requirement |\n| **EAA** | EU | EN 301 549 (WCAG 2.1 AA) | **In force since 28 June 2025.** Member states actively enforcing; private cause of action varies (DE, FR, IE most active). EN 301 549 expected to align with WCAG 2.2 next revision. |\n| **AODA** | Ontario, Canada | WCAG 2.0 AA | Fines up to $100K\u002Fday |\n| **EN 301 549** | EU | WCAG 2.1 AA | Public procurement requirement |\n| **Equality Act 2010** | UK | WCAG 2.1 AA (guidance) | Lawsuits |\n| **ISO\u002FIEC 40500:2025** | International | Equivalent to WCAG 2.2 (Oct 2023) | Useful for procurement\u002FRFP language; freely available from ISO |\n\n**Practical target:** if you serve US or EU users, **WCAG 2.2 AA is the target for new\ndevelopment** — the EAA is in force, EN 301 549 is expected to update to 2.2, and ISO\u002FIEC\n40500:2025 (published Sept 2025) codifies WCAG 2.2 internationally. WCAG 2.1 AA is the legacy\nminimum where 2.2 can't be reached immediately.\n\n**WCAG 3 status:** W3C published an updated WCAG 3 working draft in March 2026 that renamed\n\"Outcomes\" to \"Requirements\" and moved away from binary pass\u002Ffail grading; it lists ~174\nrequirements. It remains a working draft — Candidate Recommendation is targeted for Q4 2027 and\na Recommendation not before 2028. Plan for WCAG 2.2 today; track WCAG 3 but do not test against\nit yet.\n\n**Audit evidence to collect:** automated scan results per page, manual checklists with\ntester\u002Fdate, screen reader results with AT versions, accessibility statement, VPAT for\nenterprise sales, and a remediation plan for known issues. For the full legal\u002FVPAT\u002Fconsent\nmapping, see `compliance-testing`.\n\n## Anti-Patterns\n\n### Only automated testing\nRunning axe, finding zero violations, and declaring the product accessible. Automated tools\nmiss 60-70% of real issues and skip several WCAG 2.2 criteria entirely. **Fix:** pair every axe\nrun with the keyboard and screen reader checklist; gate releases on both, not just the scan.\n\n### ARIA overuse\nAdding `role`, `aria-label`, and `aria-describedby` to elements that already have native\nsemantics, creating double announcements. **Fix:** delete the redundant ARIA and use the native\nelement — a `\u003Cbutton>` never needs `role=\"button\"`.\n\n### Ignoring keyboard users\nFeatures that work by mouse and touch but not keyboard — click-only dropdowns, drag-and-drop\nwith no keyboard path, hover-only tooltips. **Fix:** give every mouse interaction a keyboard\nequivalent and cover it with a `keyboard.spec.ts` test (see `references\u002Frecipes.md`).\n\n### Retrofitting accessibility\nWaiting until the product is \"finished,\" by which point inaccessible patterns are baked into the\ncomponent library at 10-100x the fix cost. **Fix:** add an axe check to the Definition of Done\nso every new component is gated on accessibility before merge.\n\n### Treating accessibility as optional\nDeprioritizing a11y tickets because \"nobody complained\" — users with disabilities can't complain\nthrough a product they can't use, so they leave silently, and US web-accessibility lawsuits have\nclimbed year over year since 2018. **Fix:** track a11y as a release blocker with the same\nseverity rules as functional bugs, and report open a11y issues in the release readiness check.\n\n### Testing only the happy path\nScanning only the default page state, missing the modals, expanded dropdowns, error messages,\nand loading skeletons that carry different ARIA. **Fix:** drive each interactive state in the\ntest (click to open the menu, trigger the fetch) and re-run the scan against the changed DOM.\n\n## Failure Modes\n\n| Symptom | Likely cause | Fix or check |\n|---------|-------------|-------------|\n| axe finds 0 violations but the page is unusable by keyboard | Automated scans don't test operability or focus order | Run the keyboard audit; add a `keyboard.spec.ts` |\n| `toMatchAriaSnapshot` is flaky | Dynamic content or list reordering inside the snapshot scope | Scope to a stable container; use a partial snapshot |\n| Contrast rule passes but text over a gradient\u002Foverlay\u002Fimage is unreadable | axe can't compute contrast against non-solid backgrounds | Check those cases manually or with a contrast picker |\n| Passing axe but failing a WCAG 2.2 AA audit | axe ships no rule for 2.4.11 \u002F 2.5.7 and only partial 2.5.8 | Manually verify focus-not-obscured, dragging alternatives, and target size |\n\n## Verification\n\nProve the suite actually exercises the page — an a11y test that passes vacuously (wrong URL, axe scanning an error page, snapshot never reached) is worse than none.\n\n1. **Confirm axe is scanning real content.** Point the helper at a page you know has a violation (e.g. temporarily remove a `\u003Clabel>`) and run it — the test must FAIL and name the rule:\n   ```bash\n   npx playwright test e2e\u002Ftests\u002Fa11y\u002Fpages.spec.ts\n   ```\n   If a page with a planted defect still passes, AxeBuilder is scanning the wrong DOM (redirect, blank page, or wrong selector) — fix that before trusting any green run.\n2. **Confirm the keyboard specs reach the app, not a 404.** Run `npx playwright test e2e\u002Ftests\u002Fa11y\u002Fkeyboard.spec.ts` and open the trace for the skip-link test — the first Tab should land on the skip link, not nowhere. A test that \"passes\" because the page never loaded is a false green.\n3. **Confirm the CI gate blocks.** Introduce one serious violation on a branch and push — the `a11y` job must exit non-zero and fail the PR check. Revert after.\n4. **Spot-check an ARIA snapshot.** Run `toMatchAriaSnapshot` once with `--update-snapshots`, then again without — the second run must pass. If it flakes, the snapshot scope includes async\u002Freordering content; narrow it to a stable container.\n\n## Done When\n\n- axe-core integrated into the E2E suite and run automatically on all key user-facing pages identified in the test strategy.\n- CI reports zero critical or serious axe violations and blocks merge when any are introduced (see `references\u002Frecipes.md` for the workflow).\n- Keyboard navigation tested end-to-end for all interactive flows (forms, modals, dropdowns, navigation menus).\n- Interactive-state ARIA verified for at least one dropdown\u002Fmenu (`aria-expanded` + `role`), one loading region (`aria-busy`), and one live region (`aria-live`).\n- Color contrast validated for the full brand palette against WCAG AA thresholds (4.5:1 normal text, 3:1 large text and UI components).\n- Screen reader test notes documented for complex custom widgets (date pickers, data tables, drag-and-drop), including which screen reader and version was used.\n\n## Related Skills\n\n- **playwright-automation** — the test runner for both axe scans and keyboard\u002FARIA snapshot tests; this skill adds the accessibility-specific patterns on top.\n- **compliance-testing** — legal\u002Fregulatory testing including cookie consent (GDPR\u002FCMP), VPAT generation, and EAA\u002FSection 508 reporting. Go there for consent banners and formal compliance documentation; stay here for WCAG conformance testing.\n- **visual-testing** — pixel-diff screenshot regression. Use it for visual rendering changes; use this skill's ARIA snapshots for semantic-tree regressions and contrast for the a11y-specific color thresholds.\n- **ci-cd-integration** — running a11y tests in CI and blocking merges on violations.\n- **risk-based-testing** — prioritizes which pages and components to audit first.\n",{"name":5,"license":15,"metadata":44,"description":7},{"author":45,"version":46,"category":35},"kindlmann","2.0","claude\u002Finstall-gsd-build-foQdV","d86cd127f527124b5fd0fd0bc679a4d79b7d01d7",".agents\u002Fskills\u002Faccessibility-testing","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik","https:\u002F\u002Fnorvik-orpin.vercel.app","https:\u002F\u002Fgithub.com\u002Fpattanation","2026-07-17 11:17:04",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add pattanation\u002FNorvik --skill accessibility-testing",{"tool":60,"command":61},"bunx","bunx skills add pattanation\u002FNorvik --skill accessibility-testing",{"tool":63,"command":64},"pnpm","pnpm dlx skills add pattanation\u002FNorvik --skill accessibility-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Faccessibility-testing\u002FSKILL.md",true,[68,74],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fpatterns.md","REFERENCE","参考文档",6353,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Faccessibility-testing\u002Freferences\u002Fpatterns.md",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Frecipes.md",5575,"https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Faccessibility-testing\u002Freferences\u002Frecipes.md",[79,88,95,102,127,152],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":87},"01M73Z1NPMJ667E0DSPBS9FH0B","jetson-set-target","Switch the active Jetson target-platform pointer to an existing profile YAML. Use before customize\u002Fbuild\u002Fflash to change target; not for authoring profiles — use jetson-init-target instead.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fjetson-set-target\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":87},"01M73YC29YWGCW521P7B0NM3HQ","earth2studio-data-fetch","Fetch weather\u002Fclimate data via Earth2Studio data sources for specific variables and times. Do NOT use for inference pipelines, model discovery, or installation.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-data-fetch\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":87},"01M73YBNHMHFDFP83MAVGQQ92N","earth2studio-create-datasource","Create and validate Earth2Studio data source wrappers (DataSource, ForecastSource, DataFrameSource, ForecastFrameSource) from remote stores. Do NOT use for fetching data with existing sources, model inference, or installation tasks.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fearth2studio-create-datasource\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":126},"01M71QDV4DM8T19HEHWATEF1K4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[110,20,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125],"webapp","webapp testing","local","screenshots","for","applications","browser","ui","behavior","web","playwright","with","frontend","debugging","toolkit","logs","2026-11-10 13:02:02",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":83,"licenseFileUrl":131,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":126},"01M71QDH2GGMXGA9105C9W1N7B","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[135,119,136,137,138,139,140,141,142,143,144,145,114,146,147,122,148,149,150,151],"web artifacts builder","artifacts","artifacts builder","builder","multi","state","routing","state management","react","single-file","css","Tailwind","ui components","single","use","file","components",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":156,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":126},"01M71QD9T2XC3EWMQNN9ACNWQ1","vueuse-functions","Apply VueUse composables where appropriate to build concise, maintainable Vue.js \u002F Nuxt features.","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fpattanation\u002FNorvik\u002Fblob\u002Fclaude\u002Finstall-gsd-build-foQdV\u002F.agents\u002Fskills\u002Fvueuse-functions\u002FSKILL.md",[],[160,161,162,163,164,165,166,167,168,169,170,171,172,173],"vueuse","vueuse functions","functions","composables","project","nuxt","apply","github","concise","build","https","features","vue","js"]