a11y-audit-react

a11y-audit-react is a command for Claude Code, Cursor from vanessamarely/ai-playbook-reposito. It costs 0 tokens per session (936 once invoked), scanned A, original, MIT.

An accessibility audit workflow for React components, which are reusable interface parts built with a JavaScript library. It checks them against WCAG 2.2 Level AA, a widely used accessibility standard.

In plain words
What is it for?
Use it to audit individual React files, folders, or whole projects for semantic HTML, keyboard navigation, missing landmarks, and related accessibility problems.
Why use it?
It finds barriers that can prevent people from using an interface with keyboards, screen readers, or other assistive tools. The report groups issues by severity and suggests fixes.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

Good fit Use it to audit individual React files, folders, or whole projects for semantic HTML, keyboard navigation, missing landmarks, and related accessibility problems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/vanessamarely/ai-playbook-reposito/a11y-audit-react
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/vanessamarely/ai-playbook-reposito

Made for: Claude Code, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for a11y-audit-react

README.md
[![agentmods](https://agentmods.dev/badge/commands/vanessamarely/ai-playbook-reposito/a11y-audit-react/github.svg)](https://agentmods.dev/commands/vanessamarely/ai-playbook-reposito/a11y-audit-react)
Your own site
<a href="https://agentmods.dev/commands/vanessamarely/ai-playbook-reposito/a11y-audit-react"><img src="https://agentmods.dev/badge/commands/vanessamarely/ai-playbook-reposito/a11y-audit-react/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for a11y-audit-react

Your own site · 80×15
<a href="https://agentmods.dev/commands/vanessamarely/ai-playbook-reposito/a11y-audit-react"><img src="https://agentmods.dev/badge/commands/vanessamarely/ai-playbook-reposito/a11y-audit-react.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00936
Opus 5 $0.00000 $0.00468
Sonnet 5 $0.00000 $0.00187
Haiku 4.5 $0.00000 $0.00094

Measured 10d ago against content hash c1856476a78c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

a11y-audit-react scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ai-playbook/.cursor/commands/a11y-audit-react.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Accessibility Audit (React)

Identify accessibility violations in React components and provide actionable remediation aligned with WCAG 2.2 Level AA. This is the guided audit workflow that applies the standards defined in the a11y-automation and react-components rules.

Inputs

  • targetPath: path to component file(s) or directory to audit.
  • auditScope: single-file, directory, or full-project.

Outputs

  • Summary of violations by severity (critical, serious, moderate, minor).
  • Actionable code fixes with minimal diffs.
  • Verification commands to confirm the fixes.

Procedure

  1. Validate scope — confirm targetPath exists, determine files to audit per auditScope, filter to .tsx/.jsx.
  2. Run automated lint — execute the project's eslint-plugin-jsx-a11y checks over targetPath and capture violations (see the a11y-automation rule for setup guidance if it's not configured).
  3. Analyze each component manually:
    • Semantic HTML: flag <div>/<span> used for buttons/links; flag missing landmarks (<header>, <nav>, <main>, <footer>).
    • Keyboard navigation: verify interactive elements have both onClick and onKeyDown; check for keyboard traps in modals/focus-managed sections.
    • ARIA usage: flag missing aria-label/aria-labelledby on icon buttons, invalid ARIA combinations, redundant ARIA on already-semantic elements.
    • Focus management: verify modals trap and restore focus; verify dynamic content announces via aria-live where needed.
    • Contrast and motion: flag hardcoded colors that may violate contrast ratios; flag animations without prefers-reduced-motion handling.
  4. Categorize violations:
    • Critical: component unusable via keyboard or screen reader.
    • Serious: missing required ARIA or semantic structure.
    • Moderate: suboptimal patterns that hinder usability.
    • Minor: best-practice improvements.
  5. Summarize findings in chat — total counts, per-file breakdown with line numbers, brief description per violation.
  6. Propose fixes — for each violation, show the problematic snippet, the corrected version, and the accessibility benefit; apply as minimal diffs.
  7. Suggest automated regression tests — if Playwright/axe-core is available in the project, suggest wiring the checks into the test suite (see a11y-automation).

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 61 lines · 0 tokens per session scan A c1856476a78c

Subscribe to this mod's changes

a11y-audit-react is a command published in the GitHub repository vanessamarely/ai-playbook-reposito (2 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 936 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.