@vesviet/agent-skills 5.6.0 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/INDEX.md +1 -1
  2. package/README.md +1 -1
  3. package/VERSION +1 -1
  4. package/adapters/antigravity/a2a-config.template.yaml +1 -1
  5. package/adapters/antigravity/role-skill-index.json +1 -1
  6. package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
  7. package/adapters/cursor/README.md +185 -185
  8. package/bin/agent-skills.mjs +17 -14
  9. package/core/contracts/schemas/api-contract-spec.json +191 -191
  10. package/core/contracts/schemas/feature-ticket.json +1293 -1293
  11. package/core/contracts/schemas/pull-request-spec.json +338 -338
  12. package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
  13. package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
  14. package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
  15. package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
  16. package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
  17. package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
  18. package/core/contracts/schemas/test-report.json +530 -530
  19. package/core/roles/references/business-analyst-responsibilities.md +207 -207
  20. package/core/roles/references/frontend-developer-responsibilities.md +275 -275
  21. package/core/roles/system-engineer.md +465 -465
  22. package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
  23. package/core/skills/backend/build-mcp-server/SKILL.md +100 -100
  24. package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -94
  25. package/core/skills/business/elicit-requirements/SKILL.md +102 -102
  26. package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
  27. package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
  28. package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
  29. package/core/skills/business/write-use-cases/SKILL.md +106 -106
  30. package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
  31. package/core/skills/document/pptx/scripts/add_slide.py +0 -0
  32. package/core/skills/document/pptx/scripts/clean.py +0 -0
  33. package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
  34. package/core/skills/document/xlsx/scripts/recalc.py +0 -0
  35. package/core/skills/documentation/write-documentation/SKILL.md +143 -143
  36. package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
  37. package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
  38. package/core/skills/foundation/release-notes/SKILL.md +192 -192
  39. package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
  40. package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
  41. package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
  42. package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
  43. package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
  44. package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
  45. package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -107
  46. package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -108
  47. package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
  48. package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
  49. package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
  50. package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
  51. package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
  52. package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
  53. package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
  54. package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
  55. package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
  56. package/core/skills/platform/web-perf/SKILL.md +151 -151
  57. package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
  58. package/core/skills/product/build-story-map/SKILL.md +104 -104
  59. package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
  60. package/core/skills/product/define-product-strategy/SKILL.md +105 -105
  61. package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
  62. package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
  63. package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
  64. package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
  65. package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
  66. package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
  67. package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
  68. package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
  69. package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
  70. package/core/skills/repo-ops/review-service/SKILL.md +186 -186
  71. package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
  72. package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
  73. package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
  74. package/core/skills/security-data/security-audit/SKILL.md +119 -119
  75. package/core/workflows/add-new-feature.md +212 -212
  76. package/core/workflows/agent-a2a-delegation.md +142 -142
  77. package/core/workflows/bug-fix.md +147 -147
  78. package/core/workflows/build-deploy.md +208 -208
  79. package/core/workflows/code-review.md +137 -137
  80. package/core/workflows/dependency-upgrade.md +193 -193
  81. package/core/workflows/feature-delivery.md +149 -149
  82. package/core/workflows/hotfix-production.md +172 -172
  83. package/core/workflows/qa-validation.md +231 -231
  84. package/core/workflows/refactoring.md +154 -154
  85. package/core/workflows/revert-deployment.md +147 -147
  86. package/core/workflows/security-incident-response.md +191 -191
  87. package/core/workflows/seo-content-lifecycle.md +91 -91
  88. package/core/workflows/service-review-release.md +223 -223
  89. package/core/workflows/setup-new-service.md +214 -214
  90. package/core/workflows/tech-repo-review.md +245 -245
  91. package/core/workflows/troubleshooting.md +241 -241
  92. package/overlays/astro-cloudflare/README.md +93 -93
  93. package/overlays/data-analyst-stack/README.md +109 -109
  94. package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
  95. package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
  96. package/overlays/ecommerce-microservices/README.md +65 -65
  97. package/overlays/go-microservices/README.md +78 -78
  98. package/overlays/go-microservices/rules/go-conventions.md +223 -223
  99. package/overlays/laravel-filament/README.md +90 -90
  100. package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
  101. package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
  102. package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
  103. package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
  104. package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
  105. package/overlays/r3f-stack/README.md +89 -89
  106. package/overlays/r3f-stack/rules/stub.md +43 -43
  107. package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
  108. package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
  109. package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
  110. package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
  111. package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
  112. package/package.json +2 -2
  113. package/core/README.md +0 -53
@@ -1,160 +1,160 @@
1
- ---
2
- name: accessibility-review
3
- description: Audit UI for keyboard navigation, focus order, screen-reader labels, color contrast, motion preferences, and ARIA correctness against WCAG 2.2 criteria (including Focus Not Obscured 2.4.11, Target Size 2.5.8, Accessible Authentication 3.3.8, Dragging Movements 2.5.7, Redundant Entry 3.3.7). Use automated CI gates via @axe-core/playwright for regression detection alongside manual screen-reader testing. Use when validating user-facing flows before release, after design specs land, or when fixing reported a11y defects.
4
- allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
- ---
6
-
7
- # Accessibility Review
8
-
9
- Use this skill with **QA Engineer**, **Frontend Developer**, or **UI/UX Designer** when accessibility conformance must be verified explicitly.
10
-
11
- ## When to Use
12
-
13
- - validating user-facing flows before release
14
- - after design specs land
15
- - fixing reported a11y defects
16
- - running @axe-core/playwright gates + screen-reader checks
17
-
18
- ## Core Rules
19
-
20
- - target WCAG 2.2 Level AA as the default baseline unless the repo documents a different bar; WCAG 2.2 AA is a superset of 2.1 AA, so a 2.1 AA obligation is satisfied by meeting 2.2 AA
21
- - confirm which conformance target actually binds the project before reporting: regulatory regimes lag the latest WCAG release (see the regulatory note below)
22
- - **CI gate mandate**: all PR builds must run `new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag22a', 'wcag22aa']).analyze()` and fail CI if `violations.length > 0` — automated axe scans catch ~30–50% of defects; pair with manual keyboard-only and screen reader testing
23
- - use WAI-ARIA Authoring Practices Guide (APG) 2.2 keyboard interaction patterns as the authoritative reference for widget types (combobox, dialog, menu, tabs, tree) — do not invent ad-hoc keyboard patterns
24
- - audit the Success Criteria added in WCAG 2.2 at Level A/AA:
25
- - **3.3.8 Accessible Authentication (AA)**: Ensure cognitive function tests (such as memorizing passwords/usernames or solving puzzles) are not required for login processes without alternatives. (3.3.9 is the AAA variant — out of scope for an AA baseline.)
26
- - **3.3.7 Redundant Entry (A)**: Avoid requiring users to re-enter information previously entered in the same process; instead, auto-populate or provide selectable choices.
27
- - **2.4.11 Focus Not Obscured (Minimum) (AA)**: Verify the focused component is not entirely hidden by author-created content such as sticky headers, cookie banners, or floating chat widgets. (2.4.12 Focus Not Obscured (Enhanced) is AAA.)
28
- - **2.4.13 Focus Appearance (AAA)**: Focus indicator minimum area and 3:1 contrast against adjacent colors. This is **Level AAA** — report it as an enhancement, not an AA failure.
29
- - **2.5.7 Dragging Movements (AA)**: Provide a single-pointer alternative (e.g. click/tap controls) for any functionality requiring dragging.
30
- - **2.5.8 Target Size (Minimum) (AA)**: Pointer targets are at least 24x24 CSS pixels, or meet one of the spacing/inline/essential exceptions.
31
- - evaluate Cognitive Accessibility (COGA) requirements:
32
- - **Plain Language**: Keep instructions and UI labels simple and concise.
33
- - **Error Prevention**: Provide automatic suggestions, warnings, and clear instructions before submission.
34
- - **Memory Aids**: Avoid placeholder-only labels; maintain persistent context and visual cues.
35
- - audit ARIA annotation roles and attributes on dynamic elements, treating them as progressive enhancement (WAI-ARIA 1.3 is still a Working Draft and support is uneven):
36
- - Use `suggestion`, `comment`, and `mark` roles for editorial markup and user feedback panels.
37
- - Use `aria-description` for a detailed text description, and `aria-braillelabel` / `aria-brailleroledescription` for braille readers.
38
- - Never rely on an annotation role as the only accessible name or state; keep a 1.2-compatible fallback.
39
- - test keyboard-only paths for every primary task in scope; `Tab`, `Shift+Tab`, `Enter`, `Space`, `Escape` must be 100% operable with visible, non-obscured focus indicators (3:1 contrast ratio minimum)
40
- - verify visible focus indicators and logical tab order
41
- - ensure images, icons, and controls have accessible names (text or aria-label)
42
- - check color contrast for text and interactive states; do not rely on color alone
43
- - respect `prefers-reduced-motion` when animations are present
44
- - cite concrete selectors, routes, or component names for every finding
45
- - route visual/IA issues without a11y impact to `design-review`; route logic bugs to `review-code`
46
-
47
- ## Suggested Process
48
-
49
- ### 1. Define Scope
50
-
51
- - routes, components, or ux-flow-spec screens in scope
52
- - supported browsers and assistive tech assumptions from repo docs
53
- - whether design specs already document a11y behavior
54
-
55
- ### 2. Static Spec Review
56
-
57
- When specs exist:
58
-
59
- - copy_per_state includes announcements for dynamic updates
60
- - focus trap and escape behavior documented for modals
61
- - error messages associated with fields (aria-describedby pattern)
62
-
63
- ### 3. Implementation Review
64
-
65
- - semantic HTML landmarks (main, nav, heading order)
66
- - form labels, grouping, and error association
67
- - custom widgets: roles, states, keyboard handlers
68
- - live regions for toasts and async status
69
-
70
- ### 4. Manual Checks
71
-
72
- - tab through primary flow without mouse
73
- - activate controls with Enter/Space where expected
74
- - screen reader spot-check on critical path (if tooling available)
75
-
76
- ### 5. Report
77
-
78
- List violations by severity: critical (blocks task) | serious | moderate | minor.
79
-
80
- Recommend fix pattern, not only failure description.
81
-
82
- ### WCAG 2.2 AA Baseline
83
-
84
- Audit these Success Criteria as the AA baseline. Levels are stated explicitly so AAA enhancements are never reported as AA failures:
85
- - **3.3.8 Accessible Authentication (AA)**: Do not require cognitive tests (e.g., copy-paste blocks, security questions, puzzles) for authentication without a mechanism that does not require one or provides support.
86
- - **3.3.7 Redundant Entry (A)**: Previously entered data in a single multi-step workflow must be auto-populated or selectable (except for security/re-verification inputs).
87
- - **2.4.11 Focus Not Obscured (Minimum) (AA)**: The focused component must not be entirely hidden by author-created content (sticky headers, banners, floating widgets).
88
- - **2.5.7 Dragging Movements (AA)**: Provide click or tap alternatives for dragging functions (e.g. sliders, canvas manipulation).
89
- - **2.5.8 Target Size (Minimum) (AA)**: Pointer targets at least 24x24 CSS px unless a spacing, inline, or essential exception applies.
90
- - **2.4.13 Focus Appearance (AAA)**: Focus indicator minimum area and 3:1 contrast. Report as an enhancement.
91
-
92
- ### Regulatory Baseline (verify before citing)
93
-
94
- Regulatory obligations lag the latest WCAG release. State which version actually binds the project rather than assuming 2.2:
95
- - **ISO/IEC 40500:2025** ratifies **WCAG 2.2** as an international standard.
96
- - **EU European Accessibility Act** has applied since **28 June 2025**; the harmonised standard is **EN 301 549**, whose current version maps to **WCAG 2.1 AA**. The update to WCAG 2.2 is still pending, so do not cite the EAA as a WCAG 2.2 mandate.
97
- - **US DOJ ADA Title II final rule** specifies **WCAG 2.1 AA** and binds state and local government entities only. An interim final rule issued **20 April 2026** extended the compliance deadline to **26 April 2027** (2028 for small entities). It is not a WCAG 2.2 driver.
98
-
99
- Targeting 2.2 AA still satisfies all of the above, because 2.2 AA is a superset of 2.1 AA. Cite the binding regime accurately when justifying the bar.
100
-
101
- ### 2026: Cognitive Accessibility (COGA)
102
- Design and review UIs with COGA guidelines to assist users with cognitive and learning disabilities:
103
- - **Plain Language**: Avoid jargon, keep paragraphs short, and structure text logically.
104
- - **Error Prevention**: Provide contextual help, input format suggestions, and clear error notifications with actionable recovery steps.
105
- - **Memory Aids**: Display persistent labels, ensure context remains visible across steps, and do not rely on short-term memory (e.g. keep instructions visible during input).
106
-
107
- ### ARIA Annotations (progressive enhancement)
108
-
109
- WAI-ARIA 1.3 is a Working Draft and these annotation roles are still marked proposed by implementers. Use them additively, never as the sole carrier of a name, role, or state:
110
- - **suggestion**: Use to mark up proposed additions or deletions in collaborative text fields.
111
- - **comment**: Use to identify user-submitted commentary, annotations, or discussion threads.
112
- - **mark**: Use to indicate text marked or highlighted for relevance or reference.
113
- - **aria-description**: Provide an explicit descriptive string to assistive devices without needing an ID reference.
114
- - **aria-braillelabel** and **aria-brailleroledescription**: Provide braille-optimized label and role description text. These are the only two braille ARIA attributes that exist — there is no `aria-braillevaluedescription`.
115
-
116
- ## Checklist
117
-
118
- - [ ] scope routes/components listed
119
- - [ ] keyboard path completes primary user task
120
- - [ ] focus order is logical and focus visible
121
- - [ ] interactive elements have accessible names
122
- - [ ] images and icons have alt text or are marked decorative
123
- - [ ] color contrast checked for text and controls
124
- - [ ] motion respects reduced-motion preference when applicable
125
- - [ ] findings tied to files or components with severity
126
- - [ ] WCAG 2.2 A/AA new SCs verified (Accessible Auth 3.3.8, Redundant Entry 3.3.7, Focus Not Obscured 2.4.11, Dragging Movements 2.5.7, Target Size 2.5.8)
127
- - [ ] AAA items (2.4.13 Focus Appearance) reported as enhancements, not AA failures
128
- - [ ] binding regulatory target confirmed (EN 301 549 / DOJ Title II map to WCAG 2.1 AA; ISO/IEC 40500:2025 maps to 2.2)
129
- - [ ] Cognitive accessibility (COGA) principles (plain language, error prevention, memory aids) reviewed
130
- - [ ] ARIA annotation roles (suggestion, comment, mark) and attributes (aria-description, aria-braillelabel, aria-brailleroledescription) verified as additive only
131
-
132
- ## Failure Modes
133
-
134
- - **A11y regression undetected**: a UI change introduces a contrast or focus issue. **Mitigation:** run axe-core on every component; surface findings as blocking; require human review for components that fail.
135
- - **WCAG version drift**: the review references a deprecated WCAG criterion. **Mitigation:** validate every reference against the current WCAG version; surface the drift in the review.
136
- - **Screen reader not tested**: a component passes automated checks but fails screen reader. **Mitigation:** require a manual screen reader pass on critical components; surface the missing test in the review.
137
- - **Color-only signal**: a component conveys state by color alone. **Mitigation:** require an alternative signal (icon, text, ARIA); reject components with color-only state.
138
-
139
- ## Output Contracts
140
-
141
- When the a11y review produces a structured handoff (CI gate, pre-merge
142
- audit, or multi-role delivery), emit:
143
-
144
- - **`contracts/schemas/code-review-finding.json`** adapted for a11y: each finding gets a `severity`, an `owner` (Frontend or QA), a `category` (perceivable, operable, understandable, robust), and the WCAG criterion.
145
- - For human-readable reports, the markdown findings table already documented is the canonical format.
146
-
147
- Skip emission for a single-component a11y walkthrough that does not cross a role boundary.
148
-
149
- ## Security Guardrails (OWASP ASI)
150
-
151
- - **ASI07 Inter-Agent Communication**: a11y findings are consumed by Frontend and QA; emit a structured contract so each role can validate.
152
- - **ASI09 Human-Agent Trust Exploitation**: do not present a component as "WCAG-compliant" without the actual scan output; surface the residual risk honestly.
153
-
154
- ## Related Skills
155
-
156
- - **design-ux-flow**: Add a11y notes to specs when gaps found early
157
- - **design-review**: Visual hierarchy and pattern consistency
158
- - **frontend-testing**: Automate regression tests for a11y fixes
159
- - **review-code**: Broader code review including non-a11y risks
160
- - **write-tests**: Add axe or similar checks when repo supports them
1
+ ---
2
+ name: accessibility-review
3
+ description: Audit UI for keyboard navigation, focus order, screen-reader labels, color contrast, motion preferences, and ARIA correctness against WCAG 2.2 criteria (including Focus Not Obscured 2.4.11, Target Size 2.5.8, Accessible Authentication 3.3.8, Dragging Movements 2.5.7, Redundant Entry 3.3.7). Use automated CI gates via @axe-core/playwright for regression detection alongside manual screen-reader testing. Use when validating user-facing flows before release, after design specs land, or when fixing reported a11y defects.
4
+ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
5
+ ---
6
+
7
+ # Accessibility Review
8
+
9
+ Use this skill with **QA Engineer**, **Frontend Developer**, or **UI/UX Designer** when accessibility conformance must be verified explicitly.
10
+
11
+ ## When to Use
12
+
13
+ - validating user-facing flows before release
14
+ - after design specs land
15
+ - fixing reported a11y defects
16
+ - running @axe-core/playwright gates + screen-reader checks
17
+
18
+ ## Core Rules
19
+
20
+ - target WCAG 2.2 Level AA as the default baseline unless the repo documents a different bar; WCAG 2.2 AA is a superset of 2.1 AA, so a 2.1 AA obligation is satisfied by meeting 2.2 AA
21
+ - confirm which conformance target actually binds the project before reporting: regulatory regimes lag the latest WCAG release (see the regulatory note below)
22
+ - **CI gate mandate**: all PR builds must run `new AxeBuilder({ page }).withTags(['wcag2a', 'wcag2aa', 'wcag22a', 'wcag22aa']).analyze()` and fail CI if `violations.length > 0` — automated axe scans catch ~30–50% of defects; pair with manual keyboard-only and screen reader testing
23
+ - use WAI-ARIA Authoring Practices Guide (APG) 2.2 keyboard interaction patterns as the authoritative reference for widget types (combobox, dialog, menu, tabs, tree) — do not invent ad-hoc keyboard patterns
24
+ - audit the Success Criteria added in WCAG 2.2 at Level A/AA:
25
+ - **3.3.8 Accessible Authentication (AA)**: Ensure cognitive function tests (such as memorizing passwords/usernames or solving puzzles) are not required for login processes without alternatives. (3.3.9 is the AAA variant — out of scope for an AA baseline.)
26
+ - **3.3.7 Redundant Entry (A)**: Avoid requiring users to re-enter information previously entered in the same process; instead, auto-populate or provide selectable choices.
27
+ - **2.4.11 Focus Not Obscured (Minimum) (AA)**: Verify the focused component is not entirely hidden by author-created content such as sticky headers, cookie banners, or floating chat widgets. (2.4.12 Focus Not Obscured (Enhanced) is AAA.)
28
+ - **2.4.13 Focus Appearance (AAA)**: Focus indicator minimum area and 3:1 contrast against adjacent colors. This is **Level AAA** — report it as an enhancement, not an AA failure.
29
+ - **2.5.7 Dragging Movements (AA)**: Provide a single-pointer alternative (e.g. click/tap controls) for any functionality requiring dragging.
30
+ - **2.5.8 Target Size (Minimum) (AA)**: Pointer targets are at least 24x24 CSS pixels, or meet one of the spacing/inline/essential exceptions.
31
+ - evaluate Cognitive Accessibility (COGA) requirements:
32
+ - **Plain Language**: Keep instructions and UI labels simple and concise.
33
+ - **Error Prevention**: Provide automatic suggestions, warnings, and clear instructions before submission.
34
+ - **Memory Aids**: Avoid placeholder-only labels; maintain persistent context and visual cues.
35
+ - audit ARIA annotation roles and attributes on dynamic elements, treating them as progressive enhancement (WAI-ARIA 1.3 is still a Working Draft and support is uneven):
36
+ - Use `suggestion`, `comment`, and `mark` roles for editorial markup and user feedback panels.
37
+ - Use `aria-description` for a detailed text description, and `aria-braillelabel` / `aria-brailleroledescription` for braille readers.
38
+ - Never rely on an annotation role as the only accessible name or state; keep a 1.2-compatible fallback.
39
+ - test keyboard-only paths for every primary task in scope; `Tab`, `Shift+Tab`, `Enter`, `Space`, `Escape` must be 100% operable with visible, non-obscured focus indicators (3:1 contrast ratio minimum)
40
+ - verify visible focus indicators and logical tab order
41
+ - ensure images, icons, and controls have accessible names (text or aria-label)
42
+ - check color contrast for text and interactive states; do not rely on color alone
43
+ - respect `prefers-reduced-motion` when animations are present
44
+ - cite concrete selectors, routes, or component names for every finding
45
+ - route visual/IA issues without a11y impact to `design-review`; route logic bugs to `review-code`
46
+
47
+ ## Suggested Process
48
+
49
+ ### 1. Define Scope
50
+
51
+ - routes, components, or ux-flow-spec screens in scope
52
+ - supported browsers and assistive tech assumptions from repo docs
53
+ - whether design specs already document a11y behavior
54
+
55
+ ### 2. Static Spec Review
56
+
57
+ When specs exist:
58
+
59
+ - copy_per_state includes announcements for dynamic updates
60
+ - focus trap and escape behavior documented for modals
61
+ - error messages associated with fields (aria-describedby pattern)
62
+
63
+ ### 3. Implementation Review
64
+
65
+ - semantic HTML landmarks (main, nav, heading order)
66
+ - form labels, grouping, and error association
67
+ - custom widgets: roles, states, keyboard handlers
68
+ - live regions for toasts and async status
69
+
70
+ ### 4. Manual Checks
71
+
72
+ - tab through primary flow without mouse
73
+ - activate controls with Enter/Space where expected
74
+ - screen reader spot-check on critical path (if tooling available)
75
+
76
+ ### 5. Report
77
+
78
+ List violations by severity: critical (blocks task) | serious | moderate | minor.
79
+
80
+ Recommend fix pattern, not only failure description.
81
+
82
+ ### WCAG 2.2 AA Baseline
83
+
84
+ Audit these Success Criteria as the AA baseline. Levels are stated explicitly so AAA enhancements are never reported as AA failures:
85
+ - **3.3.8 Accessible Authentication (AA)**: Do not require cognitive tests (e.g., copy-paste blocks, security questions, puzzles) for authentication without a mechanism that does not require one or provides support.
86
+ - **3.3.7 Redundant Entry (A)**: Previously entered data in a single multi-step workflow must be auto-populated or selectable (except for security/re-verification inputs).
87
+ - **2.4.11 Focus Not Obscured (Minimum) (AA)**: The focused component must not be entirely hidden by author-created content (sticky headers, banners, floating widgets).
88
+ - **2.5.7 Dragging Movements (AA)**: Provide click or tap alternatives for dragging functions (e.g. sliders, canvas manipulation).
89
+ - **2.5.8 Target Size (Minimum) (AA)**: Pointer targets at least 24x24 CSS px unless a spacing, inline, or essential exception applies.
90
+ - **2.4.13 Focus Appearance (AAA)**: Focus indicator minimum area and 3:1 contrast. Report as an enhancement.
91
+
92
+ ### Regulatory Baseline (verify before citing)
93
+
94
+ Regulatory obligations lag the latest WCAG release. State which version actually binds the project rather than assuming 2.2:
95
+ - **ISO/IEC 40500:2025** ratifies **WCAG 2.2** as an international standard.
96
+ - **EU European Accessibility Act** has applied since **28 June 2025**; the harmonised standard is **EN 301 549**, whose current version maps to **WCAG 2.1 AA**. The update to WCAG 2.2 is still pending, so do not cite the EAA as a WCAG 2.2 mandate.
97
+ - **US DOJ ADA Title II final rule** specifies **WCAG 2.1 AA** and binds state and local government entities only. An interim final rule issued **20 April 2026** extended the compliance deadline to **26 April 2027** (2028 for small entities). It is not a WCAG 2.2 driver.
98
+
99
+ Targeting 2.2 AA still satisfies all of the above, because 2.2 AA is a superset of 2.1 AA. Cite the binding regime accurately when justifying the bar.
100
+
101
+ ### 2026: Cognitive Accessibility (COGA)
102
+ Design and review UIs with COGA guidelines to assist users with cognitive and learning disabilities:
103
+ - **Plain Language**: Avoid jargon, keep paragraphs short, and structure text logically.
104
+ - **Error Prevention**: Provide contextual help, input format suggestions, and clear error notifications with actionable recovery steps.
105
+ - **Memory Aids**: Display persistent labels, ensure context remains visible across steps, and do not rely on short-term memory (e.g. keep instructions visible during input).
106
+
107
+ ### ARIA Annotations (progressive enhancement)
108
+
109
+ WAI-ARIA 1.3 is a Working Draft and these annotation roles are still marked proposed by implementers. Use them additively, never as the sole carrier of a name, role, or state:
110
+ - **suggestion**: Use to mark up proposed additions or deletions in collaborative text fields.
111
+ - **comment**: Use to identify user-submitted commentary, annotations, or discussion threads.
112
+ - **mark**: Use to indicate text marked or highlighted for relevance or reference.
113
+ - **aria-description**: Provide an explicit descriptive string to assistive devices without needing an ID reference.
114
+ - **aria-braillelabel** and **aria-brailleroledescription**: Provide braille-optimized label and role description text. These are the only two braille ARIA attributes that exist — there is no `aria-braillevaluedescription`.
115
+
116
+ ## Checklist
117
+
118
+ - [ ] scope routes/components listed
119
+ - [ ] keyboard path completes primary user task
120
+ - [ ] focus order is logical and focus visible
121
+ - [ ] interactive elements have accessible names
122
+ - [ ] images and icons have alt text or are marked decorative
123
+ - [ ] color contrast checked for text and controls
124
+ - [ ] motion respects reduced-motion preference when applicable
125
+ - [ ] findings tied to files or components with severity
126
+ - [ ] WCAG 2.2 A/AA new SCs verified (Accessible Auth 3.3.8, Redundant Entry 3.3.7, Focus Not Obscured 2.4.11, Dragging Movements 2.5.7, Target Size 2.5.8)
127
+ - [ ] AAA items (2.4.13 Focus Appearance) reported as enhancements, not AA failures
128
+ - [ ] binding regulatory target confirmed (EN 301 549 / DOJ Title II map to WCAG 2.1 AA; ISO/IEC 40500:2025 maps to 2.2)
129
+ - [ ] Cognitive accessibility (COGA) principles (plain language, error prevention, memory aids) reviewed
130
+ - [ ] ARIA annotation roles (suggestion, comment, mark) and attributes (aria-description, aria-braillelabel, aria-brailleroledescription) verified as additive only
131
+
132
+ ## Failure Modes
133
+
134
+ - **A11y regression undetected**: a UI change introduces a contrast or focus issue. **Mitigation:** run axe-core on every component; surface findings as blocking; require human review for components that fail.
135
+ - **WCAG version drift**: the review references a deprecated WCAG criterion. **Mitigation:** validate every reference against the current WCAG version; surface the drift in the review.
136
+ - **Screen reader not tested**: a component passes automated checks but fails screen reader. **Mitigation:** require a manual screen reader pass on critical components; surface the missing test in the review.
137
+ - **Color-only signal**: a component conveys state by color alone. **Mitigation:** require an alternative signal (icon, text, ARIA); reject components with color-only state.
138
+
139
+ ## Output Contracts
140
+
141
+ When the a11y review produces a structured handoff (CI gate, pre-merge
142
+ audit, or multi-role delivery), emit:
143
+
144
+ - **`contracts/schemas/code-review-finding.json`** adapted for a11y: each finding gets a `severity`, an `owner` (Frontend or QA), a `category` (perceivable, operable, understandable, robust), and the WCAG criterion.
145
+ - For human-readable reports, the markdown findings table already documented is the canonical format.
146
+
147
+ Skip emission for a single-component a11y walkthrough that does not cross a role boundary.
148
+
149
+ ## Security Guardrails (OWASP ASI)
150
+
151
+ - **ASI07 Inter-Agent Communication**: a11y findings are consumed by Frontend and QA; emit a structured contract so each role can validate.
152
+ - **ASI09 Human-Agent Trust Exploitation**: do not present a component as "WCAG-compliant" without the actual scan output; surface the residual risk honestly.
153
+
154
+ ## Related Skills
155
+
156
+ - **design-ux-flow**: Add a11y notes to specs when gaps found early
157
+ - **design-review**: Visual hierarchy and pattern consistency
158
+ - **frontend-testing**: Automate regression tests for a11y fixes
159
+ - **review-code**: Broader code review including non-a11y risks
160
+ - **write-tests**: Add axe or similar checks when repo supports them