accessibility-check

accessibility-check is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 4 tokens per session (3,709 once invoked), scanned A, original, MIT.

A guide for checking a React application against web accessibility rules known as WCAG. It covers linting, automated tests, and Storybook-based checks.

In plain words
What is it for?
Use it to audit a whole React app or selected components at WCAG A, AA, or AAA levels.
Why use it?
Accessibility problems can prevent people using keyboards, screen readers, or other assistive technology from using an interface. The guide helps find common issues and suggests ways to correct them.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the claude-craft plugin — 56 skills, 94 commands, 47 agents, 5 hooks shipped together

Good fit Use it to audit a whole React app or selected components at WCAG A, AA, or AAA levels.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thebeardedbearsas/claude-craft/accessibility-check
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/TheBeardedBearSAS/claude-craft

Made for: Claude Code.

Or install claude-craft, the plugin that ships this one along with the rest of its 56 skills, 94 commands, 47 agents, 5 hooks.

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 accessibility-check

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/accessibility-check.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/accessibility-check)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/accessibility-check"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/accessibility-check.svg" alt="Measured on agentmods" height="20"></a>
Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,709 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.00004 $0.03709
Opus 5 $0.00002 $0.01854
Sonnet 5 $0.00001 $0.00742
Haiku 4.5 $0.00000 $0.00371

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

Security

Grade A, and why

accessibility-check 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 4d 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.

.claude/commands/react/accessibility-check.md · 609 lines

How it starts

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

Audit Accessibilité React

Tu es un expert accessibilité web. Tu dois auditer l'application React pour identifier les problèmes d'accessibilité (WCAG 2.1) et proposer des corrections.

Arguments

$ARGUMENTS

Arguments :

  • (Optionnel) Niveau WCAG : A, AA, AAA
  • (Optionnel) Chemin vers un composant spécifique

Exemple : /react:accessibility-check AA ou /react:accessibility-check AA src/components/

MISSION

Étape 1 : Outils d'Audit

# ESLint plugin
npm install --save-dev eslint-plugin-jsx-a11y

# Test automatisé
npm install --save-dev jest-axe @axe-core/react

# Storybook addon
npm install --save-dev @storybook/addon-a11y

Étape 2 : Configuration ESLint

// .eslintrc.js
module.exports = {
  extends: [
    'plugin:jsx-a11y/recommended',
    // ou 'plugin:jsx-a11y/strict' pour plus de règles
  ],
  plugins: ['jsx-a11y'],
  rules: {
    // Règles personnalisées
    'jsx-a11y/anchor-is-valid': [
      'error',
      {
        components: ['Link'],
        specialLink: ['to'],
      },
    ],
    'jsx-a11y/label-has-associated-control': [
      'error',
      {
        labelComponents: ['Label'],
        labelAttributes: ['label'],
        controlComponents: ['Input', 'Select'],
        depth: 3,
      },
    ],
    'jsx-a11y/no-autofocus': 'warn',
  },
};

Étape 3 : Tests Automatisés

// src/setupTests.ts
import { toHaveNoViolations } from 'jest-axe';

expect.extend(toHaveNoViolations);
// src/components/Button/Button.test.tsx
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';

import { Button } from './Button';

describe('Button Accessibility', () => {
  it('has no accessibility violations', async () => {
    const { container } = render(<Button>Click me</Button>);

    const results = await axe(container);

    expect(results).toHaveNoViolations();
  });

  it('has no violations when disabled', async () => {
    const { container } = render(<Button disabled>Disabled</Button>);

    const results = await axe(container);

    expect(results).toHaveNoViolations();
  });

  it('has no violations with icon', async () => {
    const { container } = render(
      <Button aria-label="Settings">
        <SettingsIcon />
      </Button>
    );

    const results = await axe(container);

    expect(results).toHaveNoViolations();
  });
});

Read the full file on GitHub · 609 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. 4d ago First seen · 609 lines · 4 tokens per session scan A 73eaecf5add3

Subscribe to this mod's changes

accessibility-check is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 5d ago), licensed MIT. It adds 4 tokens to every session and 3,709 once invoked, about $0.0000 per session on Opus 5. 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-09-03.