softspark/ai-toolkit/a11y-validate
Claude Code and agent skill by softspark/ai-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Accessibility validator: WCAG 2.1 AA, EN 301 549, EAA. Triggers: a11y, accessibility, WCAG, EAA, ARIA, contrast, keyboard, screen reader.
Install
npx vskill@latest install softspark/ai-toolkit/a11y-validateSKILL.md
The same SKILL.md was published earlier as softspark/ai-toolkit/a11y-validate.
/a11y-validate — Accessibility & EAA Compliance Scanner
$ARGUMENTS
Scan a codebase for accessibility issues using pattern-matching heuristics. Detects violations of WCAG 2.1 Level AA, EN 301 549 (the EU harmonized accessibility standard), and the European Accessibility Act (Directive (EU) 2019/882, "EAA", in force since 28 June 2025). Read-only — never modifies files.
Complements /seo-validate (which only covers SEO-a11y overlap shallowly). Use this skill when the concern is legal accessibility compliance, not search engine ranking.
Standards basis:
- WCAG 2.1 Level A + AA — W3C Recommendation 2018 (updated 2023).
- WCAG 2.2 Level AA (opt-in via
--standard wcag-2.2-aa) — adds 2.4.11 focus not obscured, 2.5.8 target size minimum, 3.2.6 consistent help, 3.3.7 redundant entry, 3.3.8 accessible authentication. - EN 301 549 v3.2.1 — EU harmonized standard; aligned with WCAG 2.1 AA plus additional chapters for mobile, hardware, ICT procurement, authoring tools, and functional-performance statements.
- EAA / Directive (EU) 2019/882 — legal framework requiring EN 301 549 conformance for consumer-facing digital products and services in EU markets. Deadline: 28 June 2025. Requires accessibility statements per member-state templates.
Usage
Scopes:
full(default) — all 8 categorieskeyboard— Category 3 onlycontrast— Category 4 onlyforms— Category 5 onlymedia— Category 6 onlyaria— Category 7 onlymotion— Category 8 motion subsectionmobile— Category 8 mobile subsection (React Native / Flutter)docs— Category 8 EAA documentation subsection (fast "are we legally exposed?" scan)
Standards:
wcag-2.1-aa(default) — 50 Level A + AA success criteria.wcag-2.2-aa— adds 2.4.11, 2.5.8, 3.2.6, 3.3.7, 3.3.8.en-301-549— wcag-2.1-aa + mobile chapter + functional-performance statements.eaa— en-301-549 + accessibility-statement documentation requirement (activates Category 8 docs).
Severity filtering: --severity high shows only HIGH, --severity warn shows HIGH+WARN, --severity info shows all. Default: all.
What This Command Does
- Detect framework from
package.json,pubspec.yaml, and entry HTML. - Run the scanner script for a deterministic baseline over 13 WCAG success criteria.
- Extend the scan by hand using
Grep/Glob/Readagainst framework-aware patterns for everything the script does not cover. - Interpret findings with specific fixes tied to the detected framework.
- Report findings sorted by severity with WCAG / EN 301 549 citations.
Steps
Step 1: Detect Framework
Run detection before scanning. Same logic as /seo-validate plus mobile entries:
| Deps / files contain | Framework | Notes | |
|---|---|---|---|
next | next | App Router uses metadata export | |
nuxt | nuxt | useHead() / definePageMeta | |
astro | astro | islands model; client:only affects a11y | |
gatsby | gatsby | Head API + react-helmet | |
@sveltejs/kit | sveltekit | <svelte:head> | |
@remix-run/* | remix | MetaFunction | |
@angular/core | angular | CDK a11y module expected | |
vue (no nuxt) | vue | a11y plugins optional | |
react + vite (no next/remix) | react-spa | — | |
react-scripts | cra | — | |
react-native | react-native | mobile — AccessibilityInfo API | |
pubspec.yaml with Flutter SDK | flutter | mobile — Semantics() widget | |
| no framework deps | static | raw HTML |
Also detect a11y libraries: @react-aria/*, @reach/*, @angular/cdk/a11y, vue-a11y, svelte-a11y, react-axe, axe-core. Their presence is INFO.
Step 2: Run the Scanner Script
Deterministic regex checks over 13 WCAG success criteria — images, headings, language, forms, keyboard, focus, colour contrast, media, ARIA and target size. No framework awareness and no heuristics: what it reports is real, what it misses is Step 3's job. Exit code is non-zero when HIGH findings exist.
Step 3: Extend the Scan by Hand
Read reference/scanner-categories.md in full, then work every category in --scope with Grep + Read, skipping only the success criteria Step 2 already reported. Patterns adapt to the detected framework.
The coverage table under Scanner Reference says which criteria Step 2 handles per category. Everything else in the category is yours.
Step 4: Interpret and Enrich
For each finding:
- Read the flagged file/lines to confirm the match.
- Add a framework-specific fix (e.g., "use
@react-aria/button" vs "addaria-label"). - Mark confidence —
definitivefor regex matches,heuristicfor co-occurrence / absence / target-size estimation. - Skip false positives when context shows the concern is addressed (e.g., aria-label set via intl translation key).
Step 5: Report
Present findings sorted by severity (HIGH → WARN → INFO), then file path. State which findings came from the script and which from the manual pass — a reader needs to know how much of the result is deterministic.
Scanner Reference
scripts/a11y-scanner.py gives a deterministic baseline over 13 WCAG success criteria. Everything else in each category is a manual pass, and the full pattern tables for it live in reference/scanner-categories.md.
| # | Category | Covered by the script | Manual pass | |
|---|---|---|---|---|
| 1 | Semantic Structure & Landmarks | 1.3.1, 3.1.1 | rest of the category | |
| 2 | Text Alternatives & Non-Text Content | 1.1.1 | rest of the category | |
| 3 | Keyboard & Focus | 2.1.1, 2.4.3, 2.4.7 | rest of the category | |
| 4 | Color, Contrast & Visual Cues | 1.4.3 | rest of the category | |
| 5 | Forms, Labels & Errors | 3.3.2 | rest of the category | |
| 6 | Media (Audio, Video, Embeds) | 1.2.1, 1.2.2, 1.4.2 | rest of the category | |
| 7 | ARIA, Live Regions & Dynamic Content | 4.1.2 | rest of the category | |
| 8 | Motion, Target Size, Mobile & EAA Docs | 2.5.8 | rest of the category |
The script never covers a whole category. Treat its output as the floor, not the result: a run that reports only script findings has skipped most of WCAG 2.1 AA.
Output Format
Confidence values:
definitive— regex match against a known-bad pattern.heuristic— co-occurrence, absence, ordering, or derived inference (target size from CSS, contrast from hardcoded colors, ATF detection).
Exit codes (when --output json):
0— no HIGH findings.1— one or more HIGH findings.
Out of Scope (Static Analysis Cannot Detect)
The skill explicitly does NOT verify the following — pair with runtime tools:
- Actual contrast ratios under runtime CSS cascade, theme switching, custom properties (use
axe-core, Lighthouse, or manual tooling). - Zoom / reflow behavior at 200% / 400% (WCAG 1.4.10, 1.4.4) — requires rendering.
- Screen reader announcement order and quality (NVDA, JAWS, VoiceOver, TalkBack).
- Cognitive accessibility (WCAG 3.x is mostly process/content-driven, not pattern-matchable).
- Actual keyboard trap behavior — requires interaction.
- Pronunciation / lang switches at runtime.
- Real-time caption accuracy.
- Usability / comprehension — requires user studies.
For these, use: axe-core, pa11y, Lighthouse accessibility audit, manual assistive-tech testing, and user research with disabled participants.
Rules
- Read-only: Never modify any files.
- Framework-aware: Detect framework first; apply correct pattern set.
- Standards citation: Every HIGH/WARN finding cites a WCAG success criterion (e.g., "1.3.1") or EN 301 549 clause.
- Skip non-source files: Binary files, lock files, vendored directories (
node_modules/,vendor/,dist/,build/,.next/,.nuxt/,.svelte-kit/,ios/Pods/,android/build/,.dart_tool/). - No false confidence: Label heuristic findings clearly. Color contrast and target size are ALWAYS heuristic in static analysis.
- EAA docs category is LEGAL risk: Missing accessibility statement when
--standard eaais selected is HIGH — this is a regulatory finding, not a code-quality suggestion. - No auto-fix: A11y fixes often require design/content decisions that exceed pattern matching.
- Don't flag missing ARIA when native semantics suffice: Prefer native HTML elements; flag redundant ARIA, not absence when the native element is already there.
Gotchas
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapp/skills/a11y-validate/SKILL.md
Popularity
- Repository stars
- 162
- Repository forks
- 21
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/softspark/ai-toolkit/a11y-validate)