/skillry-frontend-web-design:accessibility-auditfrom skillry-frontend-web-design
Audits pages and components against WCAG 2.2 Level AA, producing violation reports with criterion references, severity ratings, and remediation steps.
Ships in skillry-frontend-web-design. 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.
Read when SKILL.md points to them.
Skillry 3.0.0 folded the upstream accessibility skill (addyosmani/web-quality-skills) into this one. When a request names it or needs code-level WCAG 2.2 patterns, open the reference; the rest of this file stays the default audit procedure.
| Old skill name | Reference | Use it for |
|---|---|---|
accessibility | references/accessibility.md | WCAG 2.2 POUR walkthrough with copy-ready patterns (focus trap, skip link, form errors, ARIA tabs, live regions), testing checklist, screen-reader commands |
Audit a page or component against WCAG 2.2 Level AA. Covers semantic HTML structure, keyboard navigation and focus order, ARIA roles and labels, color contrast ratios, form field labeling, image alt text, motion and media controls, and screen reader compatibility signals. Produces specific violation reports with WCAG criterion references, severity ratings, and concrete remediation steps. The goal is actionable findings — not a checklist to tick, but a precise map of what breaks for which users and the exact code change that fixes it.
Gather the artifact. Obtain HTML source, a live URL, or a component file. Confirm whether JavaScript renders the DOM dynamically (React/Vue/Svelte CSR) or statically (SSR/SSG) — CSR apps require runtime browser inspection rather than source reading alone, because the rendered DOM may differ substantially from the source.
Check document structure (WCAG 1.3.1, 2.4.6). Verify exactly one <h1> per page. Confirm
heading levels do not skip — jumping from <h1> to <h3> leaves an implied empty <h2> that
assistive technology reads aloud. Verify <main>, <nav>, <header>, <footer>, and <aside>
landmarks are present where appropriate. Each <nav> should have a distinct aria-label when
multiple navigation regions exist on the page. Flag <div> soup: interactive content wrapped
in unsemantic divs with no landmark or role.
Audit keyboard navigation (WCAG 2.1.1, 2.1.2). Trace the expected Tab order through all
interactive elements. Confirm focus never gets trapped outside an intentionally open modal.
Inside an open modal, focus must be trapped — Tab and Shift+Tab cycle only within it. Verify
all interactive elements — links, buttons, inputs, custom dropdowns, date pickers, sliders,
tab panels — are reachable by Tab and activatable by Enter or Space, and that arrow keys work
where the ARIA authoring practices require them (e.g., radio groups, listboxes, tree views).
Flag any tabindex > 0 — these create artificial tab sequences that almost always break.
Inspect focus visibility (WCAG 2.4.7, 2.4.11 new in 2.2). Confirm that focus-visible or
an equivalent produces a visible, high-contrast outline on every interactive element. A CSS rule
like *:focus { outline: none } with no replacement is an immediate WCAG 2.4.7 violation
affecting every keyboard user. WCAG 2.4.11 (new in 2.2) requires that the focus indicator has
a minimum area of the perimeter of the focused element times 2 CSS pixels and a contrast ratio
of at least 3:1 against adjacent colors.
Evaluate ARIA usage (WCAG 4.1.2). Flag role attributes that misrepresent the element —
<div role="button"> without tabindex="0" and keyboard handlers makes an element that looks
interactive but is not. Check that aria-label or aria-labelledby is present on icon-only
buttons, dialogs (role="dialog"), and landmark regions that share a role with siblings.
Flag redundant ARIA (<button role="button">). Verify aria-expanded, aria-haspopup, and
aria-controls are set and toggled correctly on dropdown triggers. Verify role="alert" or
aria-live="polite" is used for dynamic status messages (form errors, toast notifications)
so screen readers announce them without requiring the user to find the message.
Check color contrast (WCAG 1.4.3, 1.4.11). Contrast requirements by text size:
Audit form fields (WCAG 1.3.1, 3.3.1, 3.3.2). Every <input>, <select>, and <textarea>
must have a programmatically associated <label> via for/id pairing, aria-label, or
aria-labelledby. Placeholder text is not a label substitute — placeholder disappears on focus.
Error messages must be programmatically linked to the field via aria-describedby so a screen
reader announces both the label and the error when the user focuses the field. Required fields
must be indicated by text or an icon accompanied by text (not color alone — WCAG 1.4.1).
Group related fields (<fieldset> + <legend>) for radio buttons, checkboxes, and date parts.
Review images and icons (WCAG 1.1.1). Every <img> must have an alt attribute. Decorative
images must have alt="" — an absent alt causes screen readers to read the file path or URL.
SVGs used as standalone icons must have either an accessible name via <title> + aria-labelledby
or aria-label, or be hidden with aria-hidden="true" when accompanied by visible text. <img>
inside an <a> or <button> with no other text must have meaningful alt — the button label
comes entirely from that attribute.
Check motion and media (WCAG 2.2.2, 1.2.2, 1.2.3). Any animation that runs for more than
5 seconds or auto-starts must be pausable, stoppable, or hideable. Implement or verify
prefers-reduced-motion media query support: @media (prefers-reduced-motion: reduce).
Carousels that auto-advance must have a pause control. Video content with dialogue must have
synchronized captions. Audio content must have a transcript. Decorative auto-playing video with
no audio is exempt from captions but must be pausable.
Simulate screen reader reading order (WCAG 1.3.2). Read the DOM in source order and confirm
it makes sense without CSS. Visually repositioned content (CSS order, grid, float) that
changes the visual order without changing DOM order creates a disconnect between reading order
and tab order. Data tables must use <th scope="col|row"> headers; layout tables must have
role="presentation" or aria-hidden="true".
<h1> per page; heading levels never skip.<main>, <nav> (labeled if multiple), <header>, <footer>.tabindex value greater than 0 anywhere in the codebase.<input>, <select>, <textarea> has a programmatically associated <label> — not only a placeholder.aria-describedby.alt text; decorative images have alt="" (not absent).aria-label or visually hidden text (<span class="sr-only">).aria-expanded toggled correctly on accordion/dropdown triggers; aria-controls points to the controlled element.prefers-reduced-motion: reduce.aria-live or role="alert" present on dynamic status messages so screen readers announce them.# Run axe-core via the CLI against a local server
# (install once: npm install -g @axe-core/cli)
axe http://localhost:3000/page-to-audit --exit
# Run axe-core headlessly via Playwright (Node)
# In a test file:
# import { checkA11y } from 'axe-playwright';
# await checkA11y(page, undefined, { runOnly: { type: 'tag', values: ['wcag2a', 'wcag2aa', 'wcag22aa'] } });
# Lighthouse CLI: accessibility score and violations
# (install once: npm install -g lighthouse)
lighthouse http://localhost:3000 --only-categories=accessibility --output=json --quiet \
| python3 -m json.tool | grep -A 3 '"score"'
# Check for tabindex > 0 in the codebase (instant red flag)
grep -rn 'tabindex="[1-9]' src/ components/ pages/ 2>/dev/null
# Find outline:none without a replacement (focus visibility risk)
grep -rn "outline:\s*none\|outline:\s*0" src/ styles/ 2>/dev/null | grep -v "focus-visible"
# Find inputs without a for/id label association
grep -n "<input" *.html src/**/*.{jsx,tsx,vue,svelte} 2>/dev/null | grep -v 'aria-label\|aria-labelledby'
# Find images missing alt attribute entirely (absent alt is not the same as alt="")
grep -rn '<img ' src/ 2>/dev/null | grep -v 'alt='
# Find <div onClick or <span onClick without role or tabindex
grep -rn 'onClick\|on:click' src/ 2>/dev/null | grep '<div\|<span' | grep -v 'role=\|tabindex'
# Contrast check: extract color pairs from CSS custom properties
grep -n '\-\-color\|\-\-bg\|\-\-text\|\-\-fg' src/styles/*.css 2>/dev/null | head -20
# Check for prefers-reduced-motion support
grep -rn "prefers-reduced-motion" src/ styles/ 2>/dev/null | wc -l
# 0 results = no support; add it if any animations exist
# Find aria-live or role=alert for dynamic messages
grep -rn 'aria-live\|role="alert"\|role="status"' src/ 2>/dev/null | head -10
# Validate heading structure in an HTML file
grep -noE '<h[1-6][^>]*>' index.html 2>/dev/null
# jest-axe: add to a React component test
# import { axe, toHaveNoViolations } from 'jest-axe';
# expect.extend(toHaveNoViolations);
# const { container } = render(<MyComponent />);
# expect(await axe(container)).toHaveNoViolations();
outline: none in a global CSS reset with no replacement — fails WCAG 2.4.7 for every interactive element on the site. The fix is always *:focus-visible { outline: 2px solid <brand-color>; outline-offset: 2px; }, not removing the reset.<input placeholder="Email"> with no <label> — placeholder disappears on focus, leaving screen reader users and memory-impaired users without context. Fails WCAG 1.3.1 and 3.3.2.<div onClick> button: custom clickable <div> without role="button", tabindex="0", and keyboard event handlers (keydown for Enter and Space) — invisible to screen readers and unreachable by keyboard. Always prefer <button>.<h1> product name then <h3> section title — assistive technology reads an implied missing <h2>. Restructure heading levels; do not use headings for their visual size.<a> tags: <a href="/dashboard"><img src="icon.svg"></a> where the SVG has no <title> and the <img> has no alt — screen reader announces "link" with no destination or purpose.aria-label on the wrong element: labeling a <div> wrapper instead of the interactive <button> inside it — the label never reaches the control. ARIA attributes apply to the element they are on, not to child elements.<span> near the input with no aria-describedby link — a screen reader user may not discover the error unless they re-read the entire form.aria-hidden: a decorative icon SVG inside a labeled <button> that has its own <title> — the screen reader reads both the <title> and the button text, doubling the announcement.Return a report with:
aria-live for dynamic content): same format.jest-axe for CI, Lighthouse accessibility panel, or a browser screen reader test (NVDA + Firefox, VoiceOver + Safari) — whichever fits the project's stack and CI environment.aria-label to elements where the ARIA in HTML specification prohibits it — check the allowed roles for the element type first.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
wcag, a11y, accessibility-audit, screen-reader, keyboard-navigation
npx claudepluginhub fluxonlab/skillry --plugin skillry-frontend-web-design6 skills in this plugin
/web-design-reviewReview built UI: hierarchy, consistency, polish, responsive layout, dashboards, design-system drift, prototypes./landing-page-conversion-reviewConversion: landing pages, offer clarity, trust, CRO, forms, signup and onboarding activation, page copy./i18n-locale-parity-reviewLocalization: locale parity, missing keys, i18n setup, hreflang and multilingual SEO, cultural adaptation./next-app-router-rsc-reviewNext.js App Router: server/client component boundaries, caching, streaming, parallel routes, data fetching./design-captureCapture live reference motion, adapt UI components under source license rules, generate fresh exclusive media, and run unslop checks. Use when sourcing or adapting reference site designs.Other plugins' skills for the same job