nvlabs/skill2env/a11y-audit
Claude Code and agent skill by nvlabs/skill2env
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.
Install
npx vskill@latest install nvlabs/skill2env/a11y-auditSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as mhassan0000/skills/a11y-audit.
Accessibility Audit
WCAG 2.2 Accessibility Audit and Remediation Skill
Description
The a11y-audit skill provides a complete accessibility audit pipeline for modern web applications. It implements a three-phase workflow -- Scan, Fix, Verify -- that identifies WCAG 2.2 Level A and AA violations, generates exact fix code per framework, and produces stakeholder-ready compliance reports.
For every violation it finds, it provides the precise before/after code fix tailored to your framework (React, Next.js, Vue, Angular, Svelte, or plain HTML).
What this skill does:
- Scans your codebase for every WCAG 2.2 Level A and AA violation, categorized by severity (Critical, Major, Minor)
- Fixes each violation with framework-specific before/after code patterns
- Verifies that fixes resolve the original violations and introduces no regressions
- Reports findings in a structured format suitable for developers, PMs, and compliance stakeholders
- Integrates into CI/CD pipelines to prevent accessibility regressions
Features
| Feature | Description | |
|---|---|---|
| Full WCAG 2.2 Scan | Checks all Level A and AA success criteria across your codebase | |
| Framework Detection | Auto-detects React, Next.js, Vue, Angular, Svelte, or plain HTML | |
| Severity Classification | Categorizes each violation as Critical, Major, or Minor | |
| Fix Code Generation | Produces before/after code diffs for every issue | |
| Color Contrast Checker | Validates foreground/background pairs against AA and AAA ratios | |
| Compliance Reporting | Generates stakeholder reports with pass/fail summaries | |
| CI/CD Integration | GitHub Actions, GitLab CI, Azure DevOps pipeline configs | |
| Keyboard Navigation Audit | Detects missing focus management and tab order issues | |
| ARIA Validation | Checks for incorrect, redundant, or missing ARIA attributes |
Severity Definitions
| Severity | Definition | Example | SLA | |
|---|---|---|---|---|
| Critical | Blocks access for entire user groups | Missing alt text, no keyboard access to navigation | Fix before release | |
| Major | Significant barrier that degrades experience | Insufficient color contrast, missing form labels | Fix within current sprint | |
| Minor | Usability issue that causes friction | Redundant ARIA roles, suboptimal heading hierarchy | Fix within next 2 sprints |
Usage
Quick Start
Slash Command
Three-Phase Workflow
Phase 1: Scan -- Walk the source tree, detect framework, apply rule set.
Phase 2: Fix -- Apply framework-specific fixes for each violation.
See references/framework-a11y-patterns.md for the complete fix patterns catalog.
Phase 3: Verify -- Re-run the scanner to confirm fixes and check for regressions.
Example: React Component Audit
| # | WCAG | Severity | Issue | |
|---|---|---|---|---|
| 1 | 1.1.1 | Critical | <img> missing alt attribute | |
| 2 | 2.1.1 | Critical | <div onClick> not keyboard accessible | |
| 3 | 1.4.3 | Major | Color #aaa on white fails contrast (2.32:1, needs 4.5:1) | |
| 4 | 1.4.3 | Major | Color #999 on white fails contrast (2.85:1, needs 4.5:1) | |
| 5 | 4.1.2 | Major | Interactive element missing role and accessible name |
See references/examples-by-framework.md for Vue, Angular, Next.js, and Svelte examples.
Tools Reference
a11y_scanner.py
contrast_checker.py
Common Pitfalls
| Pitfall | Correct Approach | |
|---|---|---|
role="button" on a <div> | Use native <button> -- includes keyboard handling for free | |
tabindex="0" on everything | Only interactive elements need focus; use native elements | |
aria-label on non-interactive elements | Use aria-labelledby pointing to visible text | |
display: none for screen reader hiding | Use .sr-only class instead | |
| Color alone to convey meaning | Add icons, text labels, or patterns alongside color | |
| Placeholder as only label | Always provide a visible <label> | |
outline: none without replacement | Always provide a visible focus indicator via focus-visible | |
Empty alt="" on informational images | Informational images need descriptive alt text | |
| Skipping heading levels (h1 -> h3) | Heading levels must be sequential | |
onClick without onKeyDown | Add keyboard support or prefer native elements | |
Ignoring prefers-reduced-motion | Wrap animations in @media (prefers-reduced-motion: no-preference) |
Related Skills
| Skill | Relationship | |
|---|---|---|
| senior-frontend | Frontend patterns used in a11y fixes | |
| code-reviewer | Include a11y checks in code review workflows | |
| senior-qa | Integration of a11y testing into QA processes | |
| playwright-pro | Automated browser testing with accessibility assertions | |
| epic-design | WCAG 2.1 AA compliant animations and scroll storytelling | |
| tdd-guide | Test-driven development patterns for a11y test cases |
Reference Documentation
| Reference | Description | |
|---|---|---|
| wcag-quick-ref.md | WCAG 2.2 Level A & AA criteria quick reference | |
| wcag-22-new-criteria.md | New WCAG 2.2 success criteria (Focus Appearance, Target Size, etc.) | |
| aria-patterns.md | ARIA patterns, keyboard interaction, and live regions | |
| framework-a11y-patterns.md | Framework-specific fix patterns (React, Vue, Angular, Svelte, HTML) | |
| color-contrast-guide.md | Color contrast checker details, Tailwind palette mapping, sr-only class | |
| ci-cd-integration.md | GitHub Actions, GitLab CI, Azure DevOps, pre-commit hook configs | |
| audit-report-template.md | Stakeholder-ready audit report template | |
| testing-checklist.md | Manual testing checklist (keyboard, screen reader, visual, forms) | |
| examples-by-framework.md | Full audit examples for Vue, Angular, Next.js, and Svelte |
Resources
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSkillHub/skills/engineering-team/a11y-audit/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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/nvlabs/skill2env/a11y-audit)