Comprehensive accessibility audit with WCAG 2.1 Level AA compliance using accessibility specialist
From cms-cultivatornpx claudepluginhub kanopi/claude-toolbox --plugin cms-cultivator[options]Spawn the accessibility-specialist agent using:
Task(cms-cultivator:accessibility-specialist:accessibility-specialist,
prompt="Perform a comprehensive WCAG 2.1 Level AA accessibility audit with the following parameters:
- Depth mode: [quick/standard/comprehensive - parsed from arguments, default: standard]
- Scope: [current-pr/module/file/entire - parsed from arguments, default: entire]
- Format: [report/json/summary/checklist - parsed from arguments, default: report]
- Focus area: [use legacy focus argument if provided, otherwise 'complete audit']
- Files to analyze: [file list based on scope]
Check semantic HTML, ARIA, keyboard navigation, color contrast, and screen reader compatibility for both Drupal and WordPress patterns. Save the comprehensive audit report to a file (audit-a11y-YYYY-MM-DD-HHMM.md) and present the file path to the user.")
This command supports flexible argument modes for different use cases:
--quick - Critical WCAG AA failures only (~5 min) - Focus on Level A violations and high-severity issues--standard - Full WCAG AA audit (default, ~15 min) - Comprehensive Level AA compliance check--comprehensive - WCAG AA + AAA + best practices (~30 min) - Deep analysis including AAA and recommendations--scope=current-pr - Only files changed in current PR (uses git diff)--scope=module=<name> - Specific module/directory (e.g., --scope=module=src/components)--scope=file=<path> - Single file (e.g., --scope=file=src/Button.tsx)--scope=entire - Full codebase (default)--format=report - Detailed markdown report with examples and recommendations (default)--format=json - Structured JSON for CI/CD integration--format=summary - Executive summary with high-level findings--format=checklist - Simple pass/fail checklist with issue countsFor backward compatibility, single-word focus areas without -- prefix are treated as legacy focus filters:
contrast - Focus on color contrast checks (WCAG 1.4.3)keyboard - Focus on keyboard navigation checksaria - Focus on ARIA usage checkssemantic-html - Focus on HTML structure checksheadings - Focus on heading hierarchyforms - Focus on form accessibilityalt-text - Focus on image alt text# Quick pre-commit check on your changes
/audit-a11y --quick --scope=current-pr
# Quick check with checklist output
/audit-a11y --quick --scope=current-pr --format=checklist
# Quick check on specific module
/audit-a11y --quick --scope=module=user-profile
# Standard audit (same as legacy `/audit-a11y`)
/audit-a11y
# Standard audit on PR changes
/audit-a11y --scope=current-pr
# Standard audit with JSON output for CI/CD
/audit-a11y --standard --format=json
# Comprehensive pre-release audit
/audit-a11y --comprehensive
# Comprehensive audit with executive summary
/audit-a11y --comprehensive --format=summary
# Comprehensive audit on specific file
/audit-a11y --comprehensive --scope=file=src/components/Header.tsx
# Focus on specific area (legacy)
/audit-a11y contrast
/audit-a11y keyboard
/audit-a11y aria
# Combine legacy focus with new modes
/audit-a11y contrast --quick
/audit-a11y forms --scope=current-pr
Full Audit:
/audit-a11y - Complete WCAG 2.1 AA audit with detailed findingsFocused Checks:
/audit-a11y contrast - Check color contrast only (WCAG 1.4.3)/audit-a11y aria - Check ARIA attributes only/audit-a11y headings - Check heading hierarchy only/audit-a11y forms - Check form accessibility only/audit-a11y alt-text - Check image alt text only/audit-a11y keyboard - Check keyboard navigation onlyReporting & Fixes:
/audit-a11y checklist - Generate WCAG 2.1 AA compliance checklist/audit-a11y report - Generate stakeholder-friendly compliance report/audit-a11y fix - Generate specific code fixes for identified issuesQuick Element Checks:
For quick accessibility checks on specific buttons, forms, or elements during conversation, the accessibility-checker Agent Skill auto-activates when you ask "is this accessible?" See: skills/accessibility-checker/SKILL.md
Allowed operations:
Not allowed:
The accessibility-specialist agent performs all audit operations.
This command spawns the accessibility-specialist agent, which uses the accessibility-checker skill and performs comprehensive WCAG 2.1 Level AA audits.
The command first parses the arguments to determine the audit parameters:
Depth mode:
--quick, --standard, or --comprehensive flags--standard (if not specified)Scope:
--scope=<value> flag--scope=current-pr: Get changed files using git diff --name-only origin/main...HEAD--scope=module=<name>: Target specific directory--scope=file=<path>: Target single file--scope=entire (analyze entire codebase)Format:
--format=<value> flagreport (default), json, summary, checklist--format=reportLegacy focus area:
--, treat as legacy focus areacontrast, keyboard, aria, forms, headings, alt-text/audit-a11y contrast --quickBased on the scope parameter:
For current-pr:
git diff --name-only origin/main...HEAD | grep -E '\.(php|tsx?|jsx?|twig|html|css|scss)$'
For module=<name>:
find <module-path> -type f -name "*.php" -o -name "*.tsx" -o -name "*.jsx" -o -name "*.twig"
For file=<path>:
Analyze the single specified file.
For entire:
Analyze all relevant files in the codebase.
Pass all parsed parameters to the agent:
Task(cms-cultivator:accessibility-specialist:accessibility-specialist,
prompt="Run WCAG 2.1 Level AA accessibility audit with:
- Depth mode: {depth}
- Scope: {scope}
- Format: {format}
- Focus area: {focus or 'complete audit'}
- Files to analyze: {file_list}")
Run comprehensive WCAG checks across all 4 principles:
Analyze platform-specific patterns:
Test keyboard navigation:
Validate color contrast:
Check ARIA usage:
Generate actionable reports:
Images & Non-Text Content (1.1.1):
alt=""Color & Contrast (1.4.1, 1.4.3, 1.4.11):
Multimedia (1.2.1, 1.2.2, 1.2.5):
Adaptable Content (1.3.1, 1.3.2, 1.3.3):
Keyboard Access (2.1.1, 2.1.2):
Navigation (2.4.1-2.4.7):
Timing (2.2.1, 2.2.2):
No Seizures (2.3.1):
Readable (3.1.1, 3.1.2):
Predictable (3.2.1-3.2.4):
Input Assistance (3.3.1-3.3.4):
Compatible (4.1.1, 4.1.2, 4.1.3):
The accessibility specialist checks:
The accessibility specialist checks:
# Accessibility Audit Report
**Scope**: [files/urls audited]
**Date**: [date]
**WCAG Version**: 2.1 Level AA
## Executive Summary
- Total Issues: [count]
- Critical: [count] | Serious: [count] | Moderate: [count] | Minor: [count]
- Overall Status: [Pass/Partial/Non-Conformance]
## Critical Issues 🔴
[Issues that completely block access - must fix immediately]
## Serious Issues 🟡
[Major barriers to access - high priority]
## Moderate Issues 🟠
[Significant inconveniences - medium priority]
## Minor Issues 🔵
[Minor improvements - low priority]
## Accessibility Wins ✅
[Things done well - positive reinforcement]
## WCAG Principle Summary
[Compliance status by Perceivable, Operable, Understandable, Robust]
## Testing Recommendations
[Manual and automated testing steps]
## Priority Actions
[Ordered list with time estimates and impact]
When using focused checks (/audit-a11y contrast, /audit-a11y aria, etc.), the accessibility specialist provides targeted reports for that specific area only.
Generate a comprehensive WCAG 2.1 Level AA checklist for project sign-off and ongoing compliance tracking.
Executive-friendly report with business impact, legal considerations, remediation roadmap, and ROI analysis.
Code-level fixes with before/after examples, implementation steps, and effort estimates prioritized by impact.
# Check code quality first
ddev composer code-check # Drupal
ddev composer phpstan # WordPress
# Check dependencies
ddev composer audit
ddev exec npm audit
# Install testing tools
ddev exec npm install --save-dev @axe-core/cli pa11y lighthouse
# Run automated tools
ddev exec npx axe [url]
ddev exec npx pa11y [url]
ddev exec npx lighthouse [url] --only-categories=accessibility
Automated Tools (catch ~30-40% of issues):
Manual Testing Required (for full WCAG compliance):
Remember: Automated tools catch less than half of issues. Manual testing with actual assistive technologies is essential for true WCAG 2.1 AA compliance.
/pr-create - PR creation includes a11y checks for UI changes/pr-review - PR reviews include accessibility analysis/audit-live-site - Comprehensive audits include accessibilityaccessibility-specialist - WCAG 2.1 Level AA compliance specialist with platform-specific knowledge for Drupal and WordPress.
Before (manual a11y review):
With accessibility-specialist:
After audit completes, export findings as CSV:
/export-audit-csv [report-filename]
Generates Teamwork-compatible CSV for importing tasks into project management tools (also works with Jira, Monday, Linear).
/audit-a11yRun comprehensive accessibility audit on the current page