jmservera/aithena/accessibility-wcag-react
Claude Code and agent skill by jmservera/aithena
- community
Checking that the SKILL.md file is still in the repository.
WCAG 2.1 AA accessibility patterns for React applications
Install
npx vskill@latest install jmservera/aithena/accessibility-wcag-reactSKILL.md
The same SKILL.md was published earlier as jmservera/aithena/accessibility-wcag-react.
Overview
Accessibility patterns established in the aithena frontend to achieve WCAG 2.1 AA compliance. Covers skip navigation, focus management, color contrast, motion preferences, ARIA attributes, and static analysis.
Skip-to-Content Link
i18n: Add app.skipToContent key to all 4 locale files.
Focus Management on Route Changes
Why: Screen readers need focus moved to main content when routes change in SPAs.
Color Contrast (WCAG AA 4.5:1)
Minimum Opacity Rules
- Primary text:
rgba(255, 255, 255, 1.0)on dark backgrounds - Secondary text:
rgba(255, 255, 255, 0.7)minimum (never below 0.65) - Tertiary/muted text:
rgba(255, 255, 255, 0.65)minimum
Before (failing): color: rgba(255, 255, 255, 0.3) — fails 4.5:1 ratio After (passing): color: rgba(255, 255, 255, 0.65) — passes 4.5:1 ratio
Checking Contrast
Use browser DevTools color picker or https://webaim.org/resources/contrastchecker/
Media Queries for User Preferences
Reduced Motion
High Contrast
ARIA Attributes
Modal Dialogs
Health Indicator Dots
Table Headers
Redundant Roles to Remove
- ❌
<section role="region">—<section>already has implicit region role - ❌
<nav role="navigation">—<nav>already has implicit navigation role
Static Analysis: eslint-plugin-jsx-a11y
In eslint.config.js (flat config):
What It Catches (~70%)
- Missing
alton images - Redundant ARIA roles
- Missing keyboard handlers on interactive elements
- Invalid ARIA attributes
- Missing form labels
What It Can't Catch (~30%)
- Color contrast violations
- Focus management correctness
- Screen reader announcement quality
- Keyboard navigation flow
- Visual layout accessibility
For the remaining 30%: Use axe DevTools in browser, or @axe-core/react as dev dependency.
Checklist for New Components
- ☐ Keyboard navigable (Tab, Enter, Escape)
- ☐ Appropriate ARIA roles and labels
- ☐ Color contrast ≥ 4.5:1 (text) or ≥ 3:1 (large text/UI)
- ☐ No information conveyed by color alone
- ☐ Animations respect
prefers-reduced-motion - ☐ Focus visible on interactive elements
- ☐ Form inputs have associated labels
- ☐ Error messages announced to screen readers
References
- eslint-plugin-jsx-a11y: Integrated in
eslint.config.js - @axe-core/react: Dev dependency for runtime a11y checks
- PR #597: Original WCAG 2.1 AA implementation
- WCAG 2.1 Quick Reference: https://www.w3.org/WAI/WCAG21/quickref/
Security
- Security scanPassed, 90 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 repositoryChecking.squad/skills/accessibility-wcag-react/SKILL.md
Popularity
- 7-day trend score
- 0
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/jmservera/aithena/accessibility-wcag-react)