/as2-skills:accessibilityfrom as2-skills
Run a WCAG 2.2 AA accessibility audit on recently changed files or a specific file, and fix what it finds when asked. Analyzes React components, HTML structure, ARIA usage, CSS, and keyboard/focus patterns. Groups findings by severity and outputs a review under `.tmp/` in the workspace. Optionally opens a browser for visual checks (contrast, focus rings, screen reader). Use for any accessibility audit, review, check, or fix, in any repo.
Ships in as2-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.
Authored by Jo Wolff (Newdle).
Audit source files for WCAG 2.2 Level AA violations. Produce a severity-grouped review file under .tmp/ and wait for the user before applying fixes.
If the user specifies a file or directory — use that.
Otherwise — discover recently changed files:
git diff --name-only HEAD
git diff --cached --name-only
If nothing changed, fall back to git diff --name-only HEAD~1 HEAD.
Filter to auditable files: .tsx, .ts, .jsx, .js, .css, .module.css, .html.
For every file in scope:
git diff HEAD -- <file>) to understand what changedFor the full WCAG 2.2 AA criteria reference, see WCAG-AA-CHECKLIST.md. The categories below are what to actively check in code.
<img> must have meaningful alt (or alt="" + aria-hidden="true" if decorative)aria-label or visually-hidden text<svg> needs role="img" + <title>, or aria-hidden="true" if decorativearia-label or be wrapped in <span role="img"><button> not <div onClick>, <a href> not <span onClick>h1 → h2 → h3)<ul>/<ol>/<li>, not styled divs<th>, scope, <caption> — not divs with grid layout for tabular data<main>, <nav>, <header>, <footer>, <aside><label> (via htmlFor/id or wrapping)aria-describedby for supplementary help textaria-required="true" or required attributearia-describedby, aria-errormessage)<fieldset> + <legend>autocomplete="email", etc.):focus-visible styles are present and have 3:1 contrastoutline: none or outline: 0 without a replacement focus style is a violationtabIndex > 0 is almost always wrong — flag itonClick need onKeyDown/onKeyUp with Enter/Space handlingrole="dialog", role="tablist", etc.)aria-expanded on disclosure triggers)aria-live regions for dynamic content updates (toasts, loading states, search results)aria-pressed, not just visual state changesrole="status" or aria-live="polite"role="button" on <button>)aria-label should include visible text)prefers-reduced-motion media queryprefers-reduced-motion: reduce fallbackIf the app is running locally (dev server), or can be started:
Location: Active project workspace root (not the ai-skills repo). Create .tmp/ if missing. Ensure .gitignore contains .tmp/ (add it if absent). Filename: .tmp/newdle-a11y-audit-YYYY-MM-DD-HHmmss.md using the local timestamp at write time (include hours, minutes, and seconds). If that path already exists, append -2, -3, … before .md until unused.
Verdict line: before writing anything else, compute finding counts by severity (Critical→blocking, Warning→advisory, Suggestion→minor) and write this exact HTML comment as the file's first line, before the # heading — it's for tooling, not the human reader, so it must not otherwise appear in the rendered review:
<!-- accessibility-audit-verdict: skill=accessibility date=YYYY-MM-DD scope=<short-scope-slug> blocking=<n> advisory=<n> minor=<n> verdict=<clean|minor-only|findings> -->
scope is a short slug for what was audited (e.g. working-tree, or a filename stem), no spaces. verdict=clean when blocking, advisory, and minor are all 0; verdict=minor-only when blocking=0 and advisory=0 and minor>0; verdict=findings otherwise.
Write to that path:
<!-- accessibility-audit-verdict: skill=accessibility date=YYYY-MM-DD scope=... blocking=N advisory=N minor=N verdict=... -->
# Accessibility Audit — [date]
> Auditing [N] files against WCAG 2.2 AA. [one-line scope summary]
## Critical (A violations)
Issues that make content inaccessible to entire groups of users.
### [C1] filename.tsx — Short description
**WCAG:** 1.1.1 Non-text Content
**Line(s):** NN–NN
**Issue:** Clear explanation of the violation.
**Fix:** Concrete remediation.
```diff
- <img src="hero.jpg" />
+ <img src="hero.jpg" alt="Team collaborating around a whiteboard" />
Impact: Who is affected and how (e.g., screen reader users cannot identify the image).
Issues that degrade the experience for users with disabilities.
WCAG: 2.4.7 Focus Visible Line(s): NN–NN Issue: Explanation. Fix: Description. Impact: Who is affected.
Not strict violations, but improvements to accessibility posture.
WCAG: Best practice Line(s): NN–NN Issue: Explanation. Fix: Description.
| Severity | Count |
|---|---|
| Critical | N |
| Warning | N |
| Suggestion | N |
Reply with the IDs to fix (e.g. "fix C1, W1, W3") or "fix all". Say "skip" for any you want to leave.
### 6. Severity Classification
| Severity | Criteria |
|----------|----------|
| **Critical** | Content completely inaccessible: missing alt text, no keyboard access, zero-contrast text, keyboard traps, missing form labels |
| **Warning** | Degraded experience: poor contrast (close to threshold), missing focus styles, non-descriptive link text, missing ARIA live regions, heading hierarchy skips |
| **Suggestion** | Best practices: redundant ARIA, `prefers-reduced-motion` absent, `tabIndex` cleanup, semantic element upgrades, autocomplete attributes |
### 7. Output Rules
- Every finding gets a unique ID: `C1`, `W1`, `S1`, etc.
- Always cite the WCAG criterion number and name
- Include diff snippets showing the exact fix
- Include **Impact** on Critical and Warning items (which users are affected)
- Keep descriptions concise — one or two sentences per issue
- Omit empty severity sections
- If no issues found, say so clearly
### 8. Present to User
After writing the review file, tell the user:
- The full file path
- Summary count (e.g., "Found 3 critical, 5 warnings, 2 suggestions across 4 files")
- Which WCAG criteria were most frequently violated
- Remind them they can reply with IDs to fix selectively
**Do NOT start fixing anything until the user explicitly asks.**
## How it fails
- The audit tool, browser or axe run the workflow names is missing or refuses to start: say so in the first line of the report and list every check that needed it under "Not checked"; a severity list with no tool behind it is a guess, never a finding.
- A page needs a login, a cookie or a feature flag the audit cannot supply: the unreached routes go under "Not checked" with the reason, not under "passes".
- Nothing is flagged: that is not a clean bill. Say which checks ran, against which URLs, and that manual checks (focus order by hand, screen-reader pass) were not done unless they were.
- A finding cannot be tied to a DOM node, a file or a line: report it as an observation with the receipt it does have; never invent a selector.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub thewolff/jo-wolff-plugins --plugin as2-skills22 skills in this plugin
/api-and-interface-designGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend./code-review-and-qualityConducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline./cross-model-reviewFans a judge slice across the three providers (Claude, Codex/GPT, Kimi) so no single lab's priors decide alone. Two entry points, one skill. Review a code diff (triad) when a change needs an independent read before it stands, a second opinion on a branch or PR, or an adversarial pass on your own work. Generate a plan (quorum) when a brief needs independent plans drafted blind by three labs and compared. Use for any cross-model, second-opinion, red-team, or "are we sure" request on code, plans, specs, or documents; the doubt-driven adversarial pass and the plan-refutation stage live here too./ctxUse when earlier agent sessions may hold a decision, diagnosis or attempt./debugging-and-error-recoveryGuides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing./deprecation-and-migrationManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.Other plugins' skills for the same job