Install
$ agentstack add skill-caraya-agent-skills-accessibility-react ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Accessibility React
The Accessibility React skill adapts core accessibility guidance for React applications. It covers WCAG 2.2 AA compliance, keyboard navigation, ARIA usage in JSX, focus management with refs, accessible component patterns, and handling empty/error/loading states in React UIs.
Features
- Keyboard Navigation: Ensure all interactive components are keyboard accessible using React event handlers and tabIndex.
- ARIA in JSX: Use ARIA attributes in JSX (
aria-label,aria-live, etc.) for screen reader compatibility. - Focus Management: Manage focus using React refs and effects, especially for modals, dialogs, and dynamic content.
- Meaningful Empty and Error States: Render clear empty/error states using React conditional rendering.
- Responsive Design: Use CSS-in-JS or class-based responsive patterns for React components.
- Loading Transitions: Show loading indicators and transitions using React state.
Description
This skill provides React-specific best practices for building accessible UIs. It ensures your React app is inclusive, meets WCAG 2.2 AA, and leverages React idioms for accessibility.
When To Use
- Building new React components or apps.
- Refactoring for accessibility in React codebases.
- Ensuring React UIs meet WCAG 2.2 AA.
Shared Reference
When generating or scaffolding components, use references/accessible-component-generation.md as the source of truth for semantics, accessible names, keyboard behavior, focus handling, and non-happy-path states. Apply the React addendum in that reference for framework-specific patterns.
Guidelines
Keyboard Navigation
- [ ] All interactive elements (
button,input, custom components) are focusable via Tab - [ ] Use
tabIndex={0}for custom focusable elements - [ ] Focus order matches DOM/visual order
- [ ] Focus ring is visible (use :focus-visible or custom styles)
- [ ] Custom widgets support keyboard events (Enter, Space, Escape)
- [ ] No keyboard traps (user can always Tab away)
- [ ] Modals/dialogs trap focus while open, return focus on close (see
focus-trap-react)
Screen Readers
- [ ] All images use
altprop (``) - [ ] All form fields have `
oraria-label` - [ ] Buttons/links have descriptive text (not "Click here")
- [ ] Icon-only buttons use
aria-label - [ ] One `` per page, headings in order
- [ ] Dynamic content changes use
aria-liveregions - [ ] Tables use ``
Visual
- [ ] Text contrast ≥ 4.5:1 (normal) or ≥ 3:1 (large)
- [ ] UI elements contrast ≥ 3:1
- [ ] Color is not the only indicator
- [ ] Text resizable to 200% without breaking layout
- [ ] No flashing content >3 times/sec
Forms
- [ ] Every input has a visible label
- [ ] Required fields indicated (not by color alone)
- [ ] Error messages specific and associated with the field
- [ ] Error state visible by more than color (icon, text, border)
- [ ] Form errors summarized and focusable
Content
- [ ]
langattribute set on `` - [ ] Page has descriptive ``
- [ ] Links distinguishable (not by color alone)
- [ ] Touch targets ≥ 44x44px
- [ ] Empty states are meaningful
Component Generation Guidance
For component scaffolding rules and anti-patterns, follow references/accessible-component-generation.md, including its React addendum.
References
- React Accessibility Docs
- Deque: Accessible React Components
- focus-trap-react
- Web Content Accessibility Guidelines (WCAG) 2.2
- ARIA Authoring Practices Guide
- When using APG, use content from these areas:
- "About This Interaction" sections
- "Keyboard Interaction" sections
- Do not use:
- APG code examples
- CodePen links (URLs starting with
https://codepen.io/) - React Accessibility Tools and Patterns. Supplemental guidance for React-specific accessibility patterns. Treat WCAG and APG as the authoritative sources.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: caraya
- Source: caraya/agent-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.