/awesome-agent-skills:awesome-accessibility-auditfrom awesome-agent-skills
Performs a read-only WCAG audit of UI and markup, providing concrete fixes per finding. Activates on requests for accessibility, a11y, keyboard, screen-reader support, or contrast checks.
Ships in awesome-agent-skills. 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.
Review UI and markup for accessibility and give the concrete fix for each finding, aligned with WCAG, so all users can perceive, operate, and understand the interface.
Read-only: it reports findings, each with the markup or attribute change that resolves it, and never applies them. A snippet in a report is reviewable next to the criterion it satisfies; the same edit applied silently is not. Hand the report to whoever owns the component.
axe-core with .withTags(['wcag2a','wcag2aa']) targets a specific WCAG tier and can fail CI on violations; Playwright's page.ariaSnapshot() (1.59+) asserts the accessibility tree of dialogs, menus, and composite widgets — coverage beyond what axe/Lighthouse give.Done when: the scope is stated, every checklist area below has been walked, each finding carries its location, its WCAG criterion and its fix, and whatever only a screen reader or a second viewport could settle is named as untested rather than assumed.
<h1> per page; heading levels in order (no skipping 2 → 4).user-scalable=no and maximum-scale=1 (WCAG 1.4.4).<title> that describes its topic or purpose, and it changes on SPA route changes (2.4.2 Page Titled, A).lang on <html> (3.1.1, A); passages in another language carry their own lang (3.1.2 Language of Parts, AA).overflow: hidden on text (1.4.12, AA).<main>, <nav>, <aside>, <footer> where appropriate.<ul>/<ol>/<li>; tables use <th>, scope, and caption if applicable.<button> or <input type="submit">; links are <a href="...">. Do not use <div onclick> for actions without role, keyboard, and focus.<fieldset>, <legend> for groups).tabindex="-1" on buttons/links unless managed for modal).outline: none without replacement. Prefer :focus-visible (no ring on mouse click) and :focus-within for compound controls.<label> or aria-label; labels are associated (e.g. for/id or wrapping).type/inputmode and autocomplete attributes (WCAG 1.3.5 Identify Input Purpose).aria-describedby (without it a screen reader doesn't read the error when the field gets focus). On submit, focus moves to the first error; for long forms, add a keyboard-focusable error summary at the top that links to each errored field (GOV.UK pattern).onPaste + preventDefault is an anti-pattern) — anywhere, not just password fields.aria-label). No "Click here" or "Read more" without context.aria-label that replaces visible text with different words fails.alt describing content; decorative images have alt="" or role="presentation". Decorative icons (inline SVG, icon fonts) get aria-hidden="true".title or aria-label.aria-live="assertive" only for urgent interruptions (errors, toasts requiring action); aria-live="polite" for feed updates and result counts.aria-live="polite" region or move focus to the new page's <h1>.autoFocus per pattern.aria-expanded), selected (aria-selected), current (aria-current), disabled (disabled or aria-disabled).prefers-reduced-motion (reduced or disabled); flag motion that ignores it (2.3.3 Animation from Interactions, AAA — report as Medium).scroll-margin-top helps).For each issue:
**[Location: file or component/element]**
- **Issue:** [What is wrong.]
- **WCAG / principle:** [Criterion or principle, e.g. 1.3.1 Info and Relationships, 2.1.1 Keyboard.]
- **Impact:** [Who is affected and how.]
- **Recommendation:** [Concrete fix: code or attribute. For contrast findings, cite computed ratios: "#aaa on #fff = 2.32:1, needs 4.5:1 → use #595959 (7.0:1)".]
- **Severity:** Critical | High | Medium
Example of a populated finding:
**[src/components/LoginForm.tsx — error message]**
- **Issue:** The "Invalid email" error renders visually below the field but is not associated with the input and is never announced.
- **WCAG / principle:** 3.3.1 Error Identification; 4.1.3 Status Messages.
- **Impact:** A screen-reader user submits, hears nothing, and cannot tell the form failed or which field to fix.
- **Recommendation:** Link it: `<input aria-describedby="email-err" aria-invalid="true">` + `<p id="email-err" role="alert">Invalid email</p>`; on submit, move focus to the first invalid field.
- **Severity:** Critical
Summary: "Reviewed: [scope]. Found X critical, Y high, Z medium. Recommend automated scan (axe/Lighthouse) and keyboard/screen reader testing."
Button:
<!-- BAD -->
<div onclick="submit()">Submit</div>
<!-- GOOD -->
<button type="submit">Submit</button>
Image:
<!-- Decorative -->
<img src="decoration.svg" alt="" role="presentation">
<!-- Meaningful -->
<img src="chart.png" alt="Bar chart showing revenue up 20% in Q4">
Form:
<!-- BAD -->
<input type="email" placeholder="Email">
<!-- GOOD -->
<label for="email">Email</label>
<input id="email" type="email" placeholder="[email protected]">
Each checklist item encodes a default that prevents the most common failure mode. When the context inverts the failure mode, the rule may invert too — a decorative element that a screen reader should skip wants aria-hidden, not a label; a native <button> must not also get a keydown handler (double activation). The work is recognizing the inversion, not memorizing exceptions. Never let an exception breach the correctness/a11y floor: keyboard operability, a programmatic name, and sufficient contrast are not negotiable.
<button>, <label>, <main>, etc. Use ARIA when semantics cannot be expressed with HTML (e.g. aria-expanded on a custom accordion).| Anti-pattern | Better approach |
|---|---|
| Only checking color contrast | Cover keyboard, labels, structure, and dynamic content |
| Suggesting "add aria-label" everywhere | Prefer visible labels and semantic HTML; use ARIA when necessary |
| Ignoring focus order in modals | Document focus trap and return focus behavior |
| Claiming compliance after code review only | Recommend axe/Lighthouse and real assistive tech testing |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub khasky/awesome-agent-skills --plugin awesome-agent-skills49 skills in this plugin
/awesome-agents-md-generatorMines a codebase's real commands, conventions and boundaries into an agent-agnostic AGENTS.md, nested per package in monorepos, every rule backed by counted evidence. Use when asked to write, generate or refresh AGENTS.md or agent instructions for a repo./awesome-api-designDesigns or reviews an HTTP API's shape before code: resources, versioning, pagination, idempotency, filtering. Use when asked to design an API or an endpoint./awesome-architecture-auditRead-only audit of a whole codebase's design: module boundaries, dependency direction, docs-vs-code drift, extensibility, with a verdict. Use when asked to audit the architecture./awesome-bug-fixFixes a bug through a runnable reproduction and its root cause. Use for errors, crashes, failing tests or builds, flaky behavior, or repeated failed fixes./awesome-claims-auditChecks public claims (site, README, store listing, privacy policy, structured data) against the code and config that decide them, then fixes drift. Use when asked whether the site still matches the product./awesome-code-cleanupBehavior-preserving cleanup of AI-like code noise: narrating comments, dead code, vague names, over-abstraction. Use when asked to clean up code or comments, de-slop, or apply a slop-audit report.Other plugins' skills for the same job