/engineering-advanced-skills:a11y-auditfrom engineering-advanced-skills
Scans HTML files for WCAG 2.1 violations (alt text, headings, labels, ARIA, landmarks) and checks color contrast against AA/AAA. Use for accessibility audits, CI gates, or triaging bug reports.
Ships in engineering-advanced-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; scripts run unread.
Category: Engineering Domain: Web Accessibility
The agent uses this skill to scan HTML source for WCAG 2.1 violations (plus WCAG 2.2 SC 3.3.8, paste blocking on credential fields) and to check colour contrast against AA/AAA. It catches missing alt text, broken heading hierarchies, unlabeled form inputs and low contrast early, before a browser-based audit. The rule set targets WCAG 2.1 on purpose: the other WCAG 2.2 additions (target size, focus not obscured, dragging alternatives) depend on rendered layout and need a browser or manual check.
Before running the audit, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
--file/--dir/--css arguments).--strict gating and JSON output).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
# Scan HTML for WCAG 2.1 violations
python scripts/a11y_scanner.py --file index.html
# Scan a directory of HTML files
python scripts/a11y_scanner.py --dir ./src/templates
# Check color contrast
python scripts/contrast_checker.py --foreground "#333333" --background "#ffffff"
# Parse CSS file for contrast issues
python scripts/contrast_checker.py --css styles.css
# JSON output for CI
python scripts/a11y_scanner.py --file index.html --format json
# Bundled samples
python scripts/a11y_scanner.py --file examples/sample-page.html # many violations, exit 1
python scripts/a11y_scanner.py --file examples/sample-page-accessible.html # 0 findings, exit 0
Exit codes. a11y_scanner.py: 0 no Level A (critical) finding, or with --strict no finding
at all at the chosen --level; 1 otherwise; 2 missing file or directory, or a --file that is
not HTML. contrast_checker.py: 0 all checked pairs pass AA normal text, 1 a pair fails, 2 bad
input (invalid colour or unreadable CSS).
Scans HTML files for WCAG 2.1 violations including structural, semantic, and interactive element issues.
| Feature | Description |
|---|---|
| Image alt text | Detects missing or empty alt on non-decorative images |
| Heading hierarchy | Validates h1-h6 levels are sequential |
| Form labels | Ensures inputs have associated label elements |
| ARIA attributes | Checks ARIA usage correctness |
| Link text | Flags generic text like "click here" or "read more" |
| Language attribute | Checks for lang on html element |
| Tab order | Detects positive tabindex values |
| Landmarks | Validates semantic landmark usage |
Checks color contrast ratios against the WCAG 2.1 AA and AAA thresholds.
| Feature | Description |
|---|---|
| Ratio calculation | Computes relative luminance contrast ratio |
| AA compliance | 4.5:1 normal text, 3:1 large text |
| AAA compliance | 7:1 normal text, 4.5:1 large text |
| CSS parsing | Extracts color/background pairs from CSS |
| Color suggestions | Recommends nearest compliant color |
# Gate on Level A violations
python scripts/a11y_scanner.py --dir ./templates --format json --level A --strict
# Check CSS contrast
python scripts/contrast_checker.py --css ./static/css/main.css --format json
Mistake: Publishing "WCAG AA compliant" because the scanner found nothing. Why it happens: Zero findings reads like a pass. Instead: The scanner covers a subset of criteria in static source. State what was checked, then test keyboard navigation, focus order and a screen reader on the rendered page.
Mistake: alt="chart.png" or alt="image" to silence the missing-alt finding.
Why it happens: The fix is judged by the scanner going quiet.
Instead: Describe what the image tells the reader ("Revenue rose from 1.2M to 1.5M"), or use alt="" when it is decorative.
Mistake: Errors shown only by turning a field red, with contrast that passes.
Why it happens: Contrast checks pass, so the design looks accessible.
Instead: Pair colour with text or an icon and an aria-describedby message; contrast is necessary but not sufficient.
scripts/a11y_scanner.py, scripts/contrast_checker.py — the two CLIs above.examples/sample-page.html (deliberate violations, including paste blocking) and examples/sample-page-accessible.html (clean).references/wcag-guidelines.md — conformance levels, success criteria, fixes.In Scope:
.html/.htm files with a11y_scanner.py for WCAG 2.1 issues: image alt text, heading hierarchy, form labels, ARIA attributes, generic link text, the lang attribute, positive tabindex values and landmarks--level filtering and a --strict exit code for CI gatescontrast_checker.py for one foreground/background pair or for color pairs pulled from a CSS file, against the AA and AAA thresholds, with a suggested compliant colorOut of Scope:
engineering/qa-browser-automation/ and engineering/playwright-pro/)engineering/design-auditor/)product-team/apple-hig-expert/ for Apple platforms)Important Caveats:
color with background-color or background declared in the same rule. Inherited colors, CSS variables, images and gradients behind text are not resolved, so contrast results need visual confirmation.| Level | Description | Typical Requirement |
|---|---|---|
| A | Minimum baseline | Legal compliance |
| AA | Industry standard | Most regulations, ADA |
| AAA | Enhanced | Best practice goal |
| Context | AA | AAA |
|---|---|---|
| Normal text (<18pt) | 4.5:1 | 7:1 |
| Large text (>=18pt, or >=14pt bold) | 3:1 | 4.5:1 |
| UI components | 3:1 | 3:1 |
| Issue | Fix |
|---|---|
| Missing alt text | <img alt="Description of image"> |
| Skipped heading | Use sequential h1 through h6 |
| No form label | <label for="inputId">Label</label> |
| Generic link text | Replace "click here" with descriptive text |
| Missing lang | <html lang="en"> |
| Positive tabindex | Use tabindex="0" or tabindex="-1" only |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
/agenthubRuns a multi-agent job as a dependency graph: validates the DAG, tracks each agent's state on a board, then ranks and merges their outputs. Use when spawning parallel agents, monitoring a run, or merging results.
Other plugins' skills for the same job