/w3ag-audit:w3ag-auditfrom w3ag-audit
Audits React/TypeScript web3 frontends for accessibility using the w3ag-audit CLI, which checks wallet, transaction-signing, address-display, and DeFi UI against W3AG guidelines. Provides static heuristic rules and fix guidance.
Ships in w3ag-audit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
W3AG (Web3 Accessibility Guidelines) extends WCAG for wallets, addresses, signing and DeFi UIs. The w3ag-audit CLI (npm, version 0.1.0, no dependencies) scans source files with regex rules. It is a static heuristic, so confirm each finding by reading the code.
npx w3ag-audit ./src # a directory (scans .tsx .jsx .ts .js, skips node_modules .git dist build .next coverage)
npx w3ag-audit ./src/App.tsx # one file
npx w3ag-audit ./src --json # machine-readable output
npx w3ag-audit ./src --no-color # plain text for logs
npx w3ag-audit --help
Exit codes: 0 no Level A violations, 1 Level A violations found, 2 error (bad path, permission). Level AA and AAA findings are reported but never change the exit code.
1.1.1-raw-address, 1.1.1-hex-string, 1.3.1-img-alt, 1.3.1-input-label, 2.1.1-div-onclick, 2.1.1-keyboard, 4.1.1-button-name, 4.1.1-link-name, 4.1.2-live-region, 3.3.1-tx-type.1.4.1-color-only, 1.4.1-status-color, 1.2.3-wei-amount, 2.4.7-focus-visible, 2.4.7-custom-focus, 4.1.2-modal-aria, 3.2.2-auto-tx, 1.4.3-contrast, 3.4.1-unlimited-approval.3.1.1-jargon, 2.2.1-time-limit.Each violation prints file, line, criterion, the matching code and a suggested fix.
--json, group findings by file.aria-label, or use the reference AddressDisplay component in components/AddressDisplay.tsx (the repo also has WalletModal, TransactionSummary, GasEstimator, TokenApprovalDialog, RiskWarning, NetworkSwitcher, TokenSelector, PriceChange, Timer).guidelines/ (perceivable/, operable/, understandable/, robust/, indexed in guidelines/INDEX.md) and the how-to in techniques/ (address-display.md, gas-estimation.md, network-switching.md, token-approval.md, transaction-signing.md, wallet-connection.md). guides/react-wagmi.md covers wagmi apps.npx w3ag-audit ./src --no-color # fails the job when Level A violations exist
The tool cannot check real contrast, screen-reader output or focus order. Recommend manual testing with a screen reader for those.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nirholas/w3ag --plugin w3ag-auditOther plugins' skills for the same job