a11y-component

a11y-component is a command for Claude Code from TheBeardedBearSAS/claude-craft. It costs 8 tokens per session (2,802 once invoked), scanned A, original, MIT.

An accessibility specification for a user-interface component such as a button, input, modal, tabs, or date picker. It describes the correct HTML, ARIA roles, keyboard behaviour, and screen-reader feedback.

In plain words
What is it for?
Use it before building or reviewing a component to define its accessible structure, states, keyboard controls, and announcements.
Why use it?
It helps developers avoid interaction and accessibility problems that can make components difficult or impossible for some people to use.

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 before building or reviewing a component to define its accessible structure, states, keyboard controls, and announcements.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/a11y-component/github.svg)](https://agentmods.dev/commands/thebeardedbearsas/claude-craft/a11y-component)
Your own site
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/a11y-component"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/a11y-component/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-component

Your own site · 80×15
<a href="https://agentmods.dev/commands/thebeardedbearsas/claude-craft/a11y-component"><img src="https://agentmods.dev/badge/commands/thebeardedbearsas/claude-craft/a11y-component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,802 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.00008 $0.02802
Opus 5 $0.00004 $0.01401
Sonnet 5 $0.00002 $0.00560
Haiku 4.5 $0.00001 $0.00280

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

Security

Grade A, and why

a11y-component 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 5d 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/uiux/a11y-component.md · 397 lines

How it starts

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

Spécification Accessibilité Composant

Tu es un Expert Accessibilité certifié. Tu dois produire les spécifications d'accessibilité complètes pour un composant UI.

Arguments

$ARGUMENTS

Arguments :

  • Nom du composant
  • (Optionnel) Type : button, input, modal, dropdown, tabs, accordion, tooltip, etc.

Exemple : /uiux:a11y-component Modal ou /uiux:a11y-component "Date Picker" type:input

MISSION

Étape 1 : Identifier le pattern ARIA

Consulter les ARIA Authoring Practices Guide (APG) pour le pattern correspondant.

Étape 2 : Produire la spécification

══════════════════════════════════════════════════════════════
♿ SPÉCIFICATION ACCESSIBILITÉ : {NOM_COMPOSANT}
══════════════════════════════════════════════════════════════

Type : {Button | Input | Dialog | Listbox | Tabs | ...}
Pattern APG : {lien vers pattern officiel}
Date : {date}

──────────────────────────────────────────────────────────────
📋 SÉMANTIQUE HTML
──────────────────────────────────────────────────────────────

### Élément natif recommandé

```html
<!-- Toujours préférer l'élément natif -->
<{element} ...>
  {contenu}
</{element}>

Si composant custom nécessaire

<div role="{role}" ...>
  {contenu}
</div>

Structure complète

<!-- Exemple complet avec ARIA -->
<div
  role="{role}"
  aria-{attribut}="{valeur}"
  tabindex="0"
>
  <span id="{id}-label">{Label}</span>
  <div id="{id}-description">{Description}</div>
  {contenu}
</div>

────────────────────────────────────────────────────────────── 🏷️ ATTRIBUTS ARIA ──────────────────────────────────────────────────────────────

Attributs requis

Attribut Valeur Quand Description
role {role} Toujours (si custom) Définit le type
aria-label "{texte}" Si pas de label visible Label accessible
aria-labelledby "{id}" Si label visible Référence au label

Attributs conditionnels

Attribut Valeur Quand Description
aria-describedby "{id}" Si description Référence description
aria-expanded "true"/"false" Si expansion État ouvert/fermé
aria-controls "{id}" Si contrôle autre ID élément contrôlé
aria-owns "{id}" Si DOM séparé Relation parent
aria-haspopup "dialog"/"menu"/"listbox" Si popup Type de popup
aria-pressed "true"/"false" Si toggle État pressé
aria-selected "true"/"false" Si sélection État sélectionné
aria-checked "true"/"false"/"mixed" Si checkbox État coché
aria-disabled "true" Si désactivé État désactivé
aria-invalid "true" Si erreur État invalide
aria-required "true" Si obligatoire Champ requis
aria-busy "true" Si loading En cours
aria-live "polite"/"assertive" Si dynamique Annonce changement
aria-atomic "true" Avec aria-live Annoncer tout

États par interaction

État Attributs ARIA
Default {attributs de base}
Hover Pas de changement ARIA
Focus Pas de changement ARIA
Expanded aria-expanded="true"
Collapsed aria-expanded="false"
Selected aria-selected="true"
Disabled aria-disabled="true"
Loading aria-busy="true"
Error aria-invalid="true", aria-errormessage="{id}"

────────────────────────────────────────────────────────────── ⌨️ NAVIGATION CLAVIER ──────────────────────────────────────────────────────────────

Touches principales

Touche Action Détail
Tab Focus sur le composant Entre dans le composant
Shift+Tab Focus précédent Sort du composant
Enter Activer Action principale
Space Activer (toggle) Pour boutons toggle
Escape Fermer/Annuler Si popup/modal
↑ Arrow Up Item précédent Navigation liste
↓ Arrow Down Item suivant Navigation liste
← Arrow Left Item précédent (horizontal) Tabs, slider
→ Arrow Right Item suivant (horizontal) Tabs, slider
Home Premier item Navigation rapide
End Dernier item Navigation rapide

Focus management

Situation Comportement
Ouverture Focus sur {premier élément focusable}
Fermeture Focus retourne sur {élément déclencheur}
Navigation interne Roving tabindex OU aria-activedescendant
Focus trap {Oui pour modal / Non pour dropdown}

Roving tabindex (si applicable)

<!-- Un seul élément focusable à la fois -->
<div role="tablist">
  <button role="tab" tabindex="0" aria-selected="true">Tab 1</button>
  <button role="tab" tabindex="-1" aria-selected="false">Tab 2</button>
  <button role="tab" tabindex="-1" aria-selected="false">Tab 3</button>
</div>

────────────────────────────────────────────────────────────── 🎯 FOCUS VISIBLE ──────────────────────────────────────────────────────────────

Style requis (WCAG 2.4.11 AAA)

.{composant}:focus-visible {
  /* Outline visible */
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;

Read the full file on GitHub · 397 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. 5d ago First seen · 397 lines · 8 tokens per session scan A c229cd525eeb

Subscribe to this mod's changes

a11y-component is a command published in the GitHub repository TheBeardedBearSAS/claude-craft (105 stars, last pushed 6d ago), licensed MIT. It adds 8 tokens to every session and 2,802 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.