badi: Command for Claude Code

.claude/commands/a11y-audit.md

a11y-audit is a command for Claude Code from fatihkan/badi. It costs 0 tokens per session (455 once invoked), scanned A, original, MIT.

A web accessibility checker for finding barriers that can make a site harder to use, including for people using assistive technology. It checks pages against WCAG 2.1, a common set of accessibility guidelines.

In plain words
What is it for?
Use it to audit a web page on mobile or desktop, review accessibility scores, and get concrete fixes for failed checks.
Why use it?
It helps reveal problems such as poor color contrast, missing image descriptions, unlabeled form fields, and unclear buttons or links before users encounter them.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is fatihkan/badi's own configuration. It tells Claude Code how to work on badi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything badi configures →

Part of the badi plugin — 81 skills, 86 commands, 30 agents, 7 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to fatihkan/badi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fatihkan/badi/main/.claude/commands/a11y-audit.md
Clone the repo
git clone --depth 1 https://github.com/fatihkan/badi

Made for: Claude Code.

Or install badi, the plugin that ships this one along with the rest of its 81 skills, 86 commands, 30 agents, 7 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-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/fatihkan/badi/a11y-audit.svg)](https://agentmods.dev/commands/fatihkan/badi/a11y-audit)
Your own site
<a href="https://agentmods.dev/commands/fatihkan/badi/a11y-audit"><img src="https://agentmods.dev/badge/commands/fatihkan/badi/a11y-audit.svg" alt="Measured on agentmods" 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 455 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.00455
Opus 5 $0.00000 $0.00228
Sonnet 5 $0.00000 $0.00091
Haiku 4.5 $0.00000 $0.00046

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

Security

Grade A, and why

a11y-audit 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 8d 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/a11y-audit.md · 55 lines

What it actually says

Web accessibility (WCAG 2.1) audit command. axe-core-based checks via PageSpeed Insights.

Required Tools

  • Bash (badi a11y command invocation)

Procedure

Step 1: Get the URL

Take the URL to test from the user.

Step 2: Run the Badi CLI

badi a11y [url]              # Mobile audit
badi a11y [url] --desktop    # Desktop audit

Step 3: Interpret the Results

Score bands:

  • 90-100: Excellent
  • 70-89: Good but improvable
  • < 70: Serious problems

Step 4: Common Failures and Fixes

Give concrete fixes per failed audit:

  • color-contrast: "Foreground/background contrast ratio must be 4.5:1 (AA), 7:1 (AAA)"
  • image-alt: "Add meaningful alt to every <img>; alt=\"\" when decorative"
  • label: "Pair form inputs with <label for=\"\">"
  • link-name: "Link texts must be descriptive — the real action instead of 'click here'"
  • button-name: "Buttons need accessible names (aria-label or text content)"
  • heading-order: "Heading hierarchy h1->h2->h3 (no skips)"
  • landmark-one-main: "Every page needs one <main> landmark"
  • html-has-lang: "Define <html lang=\"en\"> (or the page language)"

Step 5: Manual Testing Reminder

Axe-core tests what can be automated. Areas needing manual tests:

  • Keyboard navigation (Tab, Enter, Space, Arrow keys)
  • Screen reader testing (VoiceOver, NVDA)
  • 200% zoom readability
  • Video/audio captioning

Step 6: Comprehensive Audit

  • Full Lighthouse report with /lighthouse [url] (performance + SEO + a11y)
  • Provide the WCAG quickref link

Example

/a11y-audit https://example.com
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. 8d ago First seen · 55 lines · 0 tokens per session scan A 833f270c5670

Subscribe to this mod's changes

a11y-audit is a command published in the GitHub repository fatihkan/badi (7 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 455 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.