Accessibility Audit
Scan your site for accessibility issues like labels, contrast, and ARIA compliance.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/accessibility-audit-squirrelscan/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Works for every skill.What this command does
- Makes a new, empty temporary folder.
- Downloads the skill's folder,
skills/accessibility-audit, fromgithub.com/squirrelscan/skills(branchmain), the GitHub repository it's listed from. You get the version that is there now, not a copy we keep. - Copies that folder to
~/.claude/skills/accessibility-audit-squirrelscan/. - Deletes the temporary folder.
Installing runs none of the skill's files; it only downloads and copies them. When you later use the skill, Claude follows its SKILL.md and may run scripts that come with it. Read them first.
Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Audit a site with squirrelscan's accessibility audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, Codex, Cursor, and other coding agents, checking accessible names, labels, ARIA, headings, landmarks, contrast, language, zoom, and target sizes. It supports an optional WCAG level filter and checklist, fixes issues by component and template, and says plainly that automated checks cover only part of WCAG and what a person must still check. Use when asked "check my site's accessibility" or "run a WCAG audit".
What this skill does
Accessibility Audit
Find the accessibility problems a crawler can see (names, labels, ARIA, headings, landmarks, contrast, language, zoom, targets), fix them in templates and components, and be clear about what only a person can check.
squirrelscan's accessibility rules are hand-written checks that read each page's markup. They are not an axe-core run and they cover part of WCAG. A page with no findings has not been shown to conform: alt text quality, captions, keyboard flow, focus order and screen reader behaviour need a person.
Before the first audit
Run squirrel --version. If it fails, install the CLI from squirrelscan.com/download (the squirrelscan skill has references/install.md). Then run squirrel auth status:
- Signed out, or
--offline: the audit runs on this machine, is free, and nothing is published. - Signed in: the audit is billed in credits (50 plus 2 per audited page, plus 1 per distinct external link the cloud verifies), adds the site to the user's dashboard, can turn on recurring audits and publishes an unlisted report. Tell the user the cost (
squirrel credits) and get a yes. Offer--offlineor--no-publish. For a site the user does not own, add--ephemeral: nothing is added to the dashboard, scheduled or published.
Every flag below is checked against the squirrel CLI docs (https://docs.squirrelscan.com/cli/audit). Rule docs: https://docs.squirrelscan.com/rules/{category}/{rule_id}.
Run it
# every accessibility rule, plus the image and zoom rules that also affect access
squirrel audit https://example.com --level surface \
--rule-include a11y,images/alt-text,mobile/viewport-zoom --format json -o a11y.json
# narrow to a conformance level (WCAG success criteria at or below it)
squirrel audit https://example.com --level surface --rule-include a11y --wcag-level AA --format llm
--wcag-level A|AA|AAAkeeps the rules mapped to a success criterion at or below that level (AAkeeps A and AA). Rules with no WCAG criterion are not run under it. The report is marked partial and is not auto-published.- Use
--level surfaceorfull: accessibility problems live in templates, and surface samples one page per URL pattern first. - Print the criterion checklist from a stored audit (not a conformance claim):
squirrel report <audit-id> --wcag-checklist markdown(orcsv).
Reading the findings
- Export JSON for the full list;
llmsamples. Each finding names the element by selector, id or quoted text. ReadskippedChecksas well: a skipped rule is not a pass. - Group findings by template: one fix in a header, footer, card or form component clears many pages. Count affected pages, then fix the component, not each page.
- WCAG 2.2 adds criteria such as 2.4.11 Focus Not Obscured (Minimum) at Level AA, and removes 4.1.1 Parsing. Use the checklist output to see which criteria squirrelscan maps findings to, and do not claim one is met that it does not cover.
Fix order
- Page-level blockers:
a11y/aria-hidden-body,a11y/aria-hidden-focus,a11y/html-lang-valid,a11y/valid-lang,a11y/zoom-disabled,mobile/viewport-zoom. - Names for controls:
a11y/button-name,a11y/aria-labels,a11y/link-text,a11y/form-labels,a11y/select-name,a11y/input-image-alt,images/alt-text. - ARIA correctness:
a11y/aria-roles,a11y/aria-valid-attr,a11y/aria-valid-attr-value,a11y/aria-required-attr,a11y/aria-required-parent,a11y/aria-required-children,a11y/duplicate-id-aria. Fix by using the native element first; ARIA that contradicts the element is worse than none. - Structure:
a11y/heading-order,a11y/empty-heading,a11y/landmark-one-main,a11y/landmark-regions,a11y/skip-link,a11y/list-structure,a11y/table-headers. - Visual:
a11y/color-contrast(measures text with an inline color against the background the markup determines, and counts what it could not measure),a11y/focus-visible,a11y/touch-targets,a11y/reduced-motion.
Do not fix contrast or focus styles by guessing: ask for the design tokens, change the token, and re-audit.
Where the fix usually lives
| Stack | Look here |
|---|---|
| Next.js / React | shared components (Button, IconButton, Input), the root layout (<html lang>, skip link, one <main>), next/image alt props, global CSS (:focus-visible) |
| WordPress | theme templates (header.php, searchform.php), page-builder widgets, plugin output you cannot edit (replace the plugin), media library alt text |
| Shopify | theme Liquid (theme.liquid, header.liquid, product card snippets), product media alt text in the admin, apps that inject widgets |
| Webflow | element settings panel (alt text, custom attributes such as aria-label), Site settings language, heading tags set per element |
| Static sites and docs | layout templates and the markdown renderer's heading levels |
Stop condition
Stop when a --level full re-audit with --wcag-level AA has no error-severity accessibility findings, every skipped check is explained, and the user has the manual checklist for what the tool cannot check: keyboard-only walk through key flows, a screen reader pass on the main journey, captions and transcripts, meaningful alt text, focus order, and forms' error messages. Report it as "no automated findings", never "WCAG compliant".
Hand off
Non-accessibility findings: audit-website. A pre-release check across everything: launch-checklist. Gate in CI: website-ci-gate.
Related skills
Generative Code Art
anthropics
Create algorithmic art with p5.js using randomness and interactive parameters.
UI/UX Pro Max
anthropics
Build production-grade web components and interfaces with distinctive, polished design.
Artifact Theme Toolkit
anthropics
Apply professional color and font themes to slides, docs, and web pages.
Multi-Component Web Artifacts
anthropics
Build complex React artifacts with Tailwind CSS and shadcn/ui components.