Accessibility Engineering Skill
- Installs
- 8.1k
- Repo stars
- 122k
- Security scans passed
- 2/3
- Repo updated
- Dec 3, 2026
TL;DR
Audits an existing page or component against WCAG 2.2 AA and fixes the violations it finds before a release.
npx skills add https://github.com/addyosmani/agent-skills --skill accessibility-engineeringTry it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add the remote connector:
claude mcp add --transport http skillselion https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:addyosmani/agent-skills#accessibility-engineering (Accessibility Engineering) and follow it.Try it first through the Skillselion MCP - nothing to install, nothing on disk.
1. Add this URL as a custom connector (Claude.ai, ChatGPT or Cursor):
https://mcp.skillselion.com/mcp2. Ask your agent:
Use Skillselion load_skill to load skill:addyosmani/agent-skills#accessibility-engineering (Accessibility Engineering) and follow it.What accessibility-engineering covers
- Runs axe-core and pa11y against WCAG 2.2 AA
- Adds keyboard, screen reader and contrast checks
- Triages violations by severity before fixing
accessibility-engineering by the numbers
| All-time installs | 8,114 | skills.sh registry |
|---|---|---|
| Repo stars | ★ 122k | GitHub |
| Security audit | 2 / 3 scanners passed | skills.sh audit |
| Repo last updated | December 3, 2026 | GitHub |
| Repository | addyosmani/agent-skills ↗ | |
Data as of Dec 4, 2026 (Skillselion catalog sync)
What files ship with accessibility-engineering?
Accessibility Engineering
Overview
Accessibility is not a polish step — it's a legal requirement in many jurisdictions, an engineering quality standard, and a prerequisite for shipping. This skill audits existing interfaces, triages the findings, and remediates verified violations. The goal is WCAG 2.2 AA compliance supported by automated tools and manual testing.
When to Use
- Before shipping a user-facing change that needs an accessibility audit
- When a11y issues are reported (e.g., "screen reader can't read this", "keyboard navigation broken")
- When auditing an existing interface for compliance
- When triaging axe-core or pa11y findings
- When remediating verified accessibility violations
Do NOT use for building new UI components from scratch; use frontend-ui-engineering for construction guidance. Do not use for backend-only changes, CLIs, or library code with no UI output.
Workflow
Phase 1: Route New UI Work
For component construction, interaction patterns, and focus-management guidance, use ../frontend-ui-engineering/SKILL.md. Do not restate that skill here. Return to this workflow once an interface exists and needs auditing or remediation.
Phase 2: Run Automated Audit
Execute accessibility checks in this order:
# axe-core rules through pinned @axe-core/cli (the axe-core package ships no CLI)
npx --yes @axe-core/cli@4.13.0 http://localhost:3000 --exit
# Keep the JSON for the accessibility-auditor
npx --yes @axe-core/cli@4.13.0 http://localhost:3000 --dir ./a11y-reports --save axe.json
# Pinned pa11y for HTML validation (WCAG2AA rules via HTML_CodeSniffer)
npx --yes pa11y@9.1.1 http://localhost:3000For a combined report, run bash skills/accessibility-engineering/scripts/audit-a11y.sh url <url> --json. It runs both pinned tools, records their status and versions, and fails rather than reporting a clean result when either tool does not produce a valid report.
Review the violations grouped by severity:
- Critical — Blocks screen reader access entirely (missing alt text on info images, empty buttons)
- Serious — Makes content difficult or impossible to access (low contrast, missing labels)
- Moderate — Causes confusion or extra effort (heading level skips, redundant ARIA)
- Minor — Cosmetic or progressive enhancement (missing lang attribute on inner elements)
For each violation, verify it's a real issue (not a false positive) by inspecting the element in the browser.
Phase 3: Manual Testing
Automated checks are a smoke test, not proof of conformance. Complete the audit manually.
Keyboard audit:
- Tab through every interactive element — can you see where you are?
- Activate buttons and links with Enter/Space
- Close modals with Escape
- Navigate lists with Arrow keys
- Verify no keyboard traps exist
Screen reader audit (VoiceOver on macOS, NVDA on Windows):
- Navigate by heading (VoiceOver: Ctrl+Option+Cmd+H) — is the structure logical?
- Navigate by landmark (open the rotor with Ctrl+Option+U, choose Landmarks) — are regions labeled?
- Navigate by link (open the rotor with Ctrl+Option+U, choose Links) — do link descriptions make sense out of context?
- Interact with a form — are labels announced? Are error messages read?
- Navigate a dynamic update — are changes announced?
Visual audit:
- Verify color contrast (4.5:1 text, 3:1 large text, 3:1 UI components)
- Zoom to 200% — does layout break or overlap?
- Test with forced colors / high contrast mode (Windows High Contrast)
- Reduce motion (prefers-reduced-motion) — are animations disabled?
- Test focus visibility — is the focus ring visible against all backgrounds?
Phase 4: Fix Violations
For each finding, apply the remediation in order:
- Fix the root cause — Replace a
<div>with<button>, add<label>, setalttext - Add ARIA as bridge — If native HTML can't express the pattern, add ARIA attributes
- Test the fix — Re-run the automated check and manual verification
Apply the accessibility checklist (../../references/accessibility-checklist.md) as a minimal baseline.
Common Rationalizations
| Rationalization | Reality |
|---|---|
| "We'll fix a11y later" | Delayed remediation compounds across components and can create legal liability. Audit before shipping. |
| "Automated tools caught everything" | Automated checks cannot prove keyboard or screen reader behavior. Manual testing is mandatory. |
| "Screen reader users are a tiny minority" | Accessibility is a requirement, not a usage-share calculation. Keyboard navigation, captions, and clear structure also help users across contexts. |
| "This is an internal tool, it doesn't need a11y" | Internal tools are subject to the same regulations. Disabled employees and contractors need access. |
| "I'll just use aria-label everywhere" | ARIA is a bridge, not a foundation. Semantic HTML first. Overusing ARIA creates maintenance burden and can make things worse. |
| "The design system handles accessibility" | Design systems provide accessible primitives. How you compose them determines whether the result is accessible. |
| "The audit passed axe-core, so we're done" | Pass axe-core as a smoke test, then test with screen readers and keyboard. A green lighthouse score is not a clean bill of health. |
Red Flags
- Elements that look clickable but aren't keyboard-focusable
- Color as the sole indicator of state (red for error, green for success)
- Focus outline removed without a visible replacement
- Missing labels on form inputs
- No heading hierarchy or skipped heading levels
- Empty or unlabeled buttons and links
- Modals that don't trap focus or restore focus on close
- No
alttext on meaningful images (oralt=""missing on decorative ones) - Touch targets that fail SC 2.5.8's 24x24 CSS px size-or-spacing requirement and do not qualify for an exception (AA; 44x44 is the AAA target, SC 2.5.5)
- Autoplaying video or audio without controls
- Low contrast text (especially on hover, disabled states, placeholders)
See Also
../../references/accessibility-checklist.md— Quick reference for WCAG 2.2 AA../frontend-ui-engineering/SKILL.md— Building accessible components from the start../../agents/accessibility-auditor.md— Dedicated a11y audit persona for deep reviews
Verification
After completing the accessibility workflow:
- [ ] Automated audit passes with no Critical or Serious violations
- [ ] All interactive elements are keyboard accessible (Tab, Enter, Escape, Arrow keys)
- [ ] Screen reader navigation by heading, landmark, and link verified with a named browser + AT pair (or recorded as
manualand untested — never reported as verified) - [ ] Focus order matches visual order
- [ ] Color contrast passes 4.5:1 text / 3:1 large text / 3:1 UI components
- [ ] All form inputs have associated labels
- [ ] All images have appropriate
alttext - [ ] Dynamic content changes are announced (aria-live)
- [ ] Page is usable at 200% zoom with no content loss
- [ ] Touch targets satisfy SC 2.5.8's 24x24 CSS px size-or-spacing requirement or a normative exception (AA); 44x44 is the enhanced AAA target (SC 2.5.5)
#!/bin/bash
set -e
# accessibility-engineering: audit-a11y.sh
# Runs automated accessibility checks on a given URL or file.
# Outputs structured JSON with violations grouped by severity.
#
# Usage:
# bash audit-a11y.sh url <url> [--json]
# bash audit-a11y.sh file <path> [--json]
#
# Requires: npx (@axe-core/cli and pa11y are fetched at the pinned versions below)
SCRIPT_NAME="audit-a11y"
AXE_VERSION="4.13.0"
PA11Y_VERSION="9.1.1"
TEMP_DIR=$(mktemp -d)
trap 'rm -rf "$TEMP_DIR"' EXIT
MODE="${1:-}"
TARGET="${2:-}"
FORMAT="${3:-text}"
if [ -z "$MODE" ] || [ -z "$TARGET" ]; then
echo "Usage: bash audit-a11y.sh url <url> [--json]" >&2
echo " bash audit-a11y.sh file <path> [--json]" >&2
exit 1
fi
case "$MODE" in
url)
echo "Running axe-core audit on $TARGET..." >&2
if npx --yes "@axe-core/cli@$AXE_VERSION" "$TARGET" --dir "$TEMP_DIR" --save axe-report.json >&2; then
AXE_EXIT=0
else
AXE_EXIT=$?
fi
echo "Running pa11y audit on $TARGET..." >&2
if npx --yes "pa11y@$PA11Y_VERSION" "$TARGET" --reporter json 2>/dev/null > "$TEMP_DIR/pa11y-report.json"; then
PA11Y_EXIT=0
else
PA11Y_EXIT=$?
fi
;;
file)
AXE_EXIT=-1
echo "Running pa11y on file $TARGET..." >&2
if npx --yes "pa11y@$PA11Y_VERSION" "$TARGET" --reporter json > "$TEMP_DIR/pa11y-report.json" 2>/dev/null; then
PA11Y_EXIT=0
else
PA11Y_EXIT=$?
fi
echo "File-based axe analysis limited; prefer URL mode for full coverage." >&2
;;
*)
echo "Unknown mode: $MODE. Use 'url' or 'file'." >&2
exit 1
;;
esac
report_status() {
local tool="$1"
local report="$2"
local exit_code="$3"
if [ ! -s "$report" ]; then
printf 'failed'
return
fi
# axe runs without --exit, so any non-zero status is an execution failure.
# pa11y uses exit 2 when a valid report contains violations; other non-zero
# statuses mean the audit itself failed.
if { [ "$tool" = "axe" ] && [ "$exit_code" -ne 0 ]; } || \
{ [ "$tool" = "pa11y" ] && [ "$exit_code" -ne 0 ] && [ "$exit_code" -ne 2 ]; }; then
printf 'failed'
elif node -e "
const fs = require('fs');
const tool = process.argv[1];
const report = JSON.parse(fs.readFileSync(process.argv[2], 'utf8'));
const valid = tool === 'axe'
? Array.isArray(report) && report.length > 0 && report.every(run => run && Array.isArray(run.violations))
: Array.isArray(report);
if (!valid) process.exit(1);
" "$tool" "$report" >/dev/null 2>&1; then
printf 'completed'
else
printf 'invalid-report'
fi
}
if [ "$MODE" = "url" ]; then
AXE_STATUS=$(report_status axe "$TEMP_DIR/axe-report.json" "$AXE_EXIT")
else
AXE_STATUS="not-run"
fi
PA11Y_STATUS=$(report_status pa11y "$TEMP_DIR/pa11y-report.json" "$PA11Y_EXIT")
# A URL audit promises both engines. A valid report is the success signal because
# pa11y may return non-zero when it found violations. Never turn a partial run
# into a clean result just because the remaining engine returned an empty list.
if [ "$PA11Y_STATUS" != "completed" ] || { [ "$MODE" = "url" ] && [ "$AXE_STATUS" != "completed" ]; }; then
echo "$SCRIPT_NAME: incomplete audit; refusing to report a violation total" >&2
echo "$SCRIPT_NAME: tool status: @axe-core/cli@$AXE_VERSION=$AXE_STATUS (exit $AXE_EXIT), pa11y@$PA11Y_VERSION=$PA11Y_STATUS (exit $PA11Y_EXIT)" >&2
exit 1
fi
# Merge results into structured JSON output
RESULT_FILE="$TEMP_DIR/result.json"
cat > "$RESULT_FILE" << RESULT_EOF
{
"tool": "audit-a11y",
"tools": [
{"name": "@axe-core/cli", "version": "$AXE_VERSION", "status": "$AXE_STATUS", "exitCode": $AXE_EXIT},
{"name": "pa11y", "version": "$PA11Y_VERSION", "status": "$PA11Y_STATUS", "exitCode": $PA11Y_EXIT}
],
"summary": {
"violations": 0,
"critical": 0,
"serious": 0,
"moderate": 0,
"minor": 0
},
"violations": [],
"recommendations": []
}
RESULT_EOF
# Parse axe results
if [ -f "$TEMP_DIR/axe-report.json" ]; then
node -e "
const fs = require('fs');
const result = JSON.parse(fs.readFileSync('$TEMP_DIR/result.json', 'utf8'));
try {
const axe = JSON.parse(fs.readFileSync('$TEMP_DIR/axe-report.json', 'utf8'));
// @axe-core/cli saves an array with one result per URL, and no results wrapper.
for (const run of (Array.isArray(axe) ? axe : [axe])) {
const violations = run.violations || [];
result.summary.violations += violations.length;
for (const v of violations) {
const sev = v.impact || 'minor';
if (result.summary[sev] !== undefined) result.summary[sev]++;
result.violations.push({
source: 'axe-core',
id: v.id,
impact: sev,
description: v.description,
help: v.help,
helpUrl: v.helpUrl,
tags: v.tags || [],
nodes: (v.nodes || []).map(n => ({
html: n.html,
target: n.target,
failureSummary: n.failureSummary
}))
});
}
}
} catch (e) {
// An empty report is covered by the guard above; a non-empty one that does
// not parse is a tool failure, not a clean result.
if (fs.statSync('$TEMP_DIR/axe-report.json').size > 0) {
console.error('$SCRIPT_NAME: axe-report.json is not valid JSON: ' + e.message);
process.exit(1);
}
}
fs.writeFileSync('$TEMP_DIR/result.json', JSON.stringify(result, null, 2));
"
fi
# Parse pa11y results
if [ -f "$TEMP_DIR/pa11y-report.json" ]; then
node -e "
const fs = require('fs');
const result = JSON.parse(fs.readFileSync('$TEMP_DIR/result.json', 'utf8'));
try {
const pa11y = JSON.parse(fs.readFileSync('$TEMP_DIR/pa11y-report.json', 'utf8'));
const issues = Array.isArray(pa11y) ? pa11y : (pa11y.issues || []);
result.summary.violations += issues.length;
for (const issue of issues) {
// pa11y has no impact scale: typeCode 1 is "error", and by default pa11y
// reports only errors. Mapping that to critical would turn every pa11y
// result into a /ship NO-GO, because axe rates the same failure serious.
const sev = (issue.typeCode === 1 ? 'serious' : issue.typeCode === 2 ? 'moderate' : 'minor');
if (result.summary[sev] !== undefined) result.summary[sev]++;
result.violations.push({
source: 'pa11y',
code: issue.code,
impact: sev,
message: issue.message,
selector: issue.selector,
context: issue.context,
type: issue.type
});
}
} catch (e) {
// Same as the axe block: an empty report is covered by the guard above.
if (fs.statSync('$TEMP_DIR/pa11y-report.json').size > 0) {
console.error('$SCRIPT_NAME: pa11y-report.json is not valid JSON: ' + e.message);
process.exit(1);
}
}
fs.writeFileSync('$TEMP_DIR/result.json', JSON.stringify(result, null, 2));
"
fi
if [ "$FORMAT" = "--json" ]; then
cat "$RESULT_FILE"
else
node -e "
const r = JSON.parse(require('fs').readFileSync('$RESULT_FILE', 'utf8'));
console.log('Accessibility Audit Results');
console.log('===========================');
console.log('Tools:');
for (const tool of r.tools) {
console.log(' ' + tool.name + '@' + tool.version + ': ' + tool.status + ' (exit ' + tool.exitCode + ')');
}
console.log('');
console.log('Total violations: ' + r.summary.violations);
console.log(' Critical: ' + r.summary.critical);
console.log(' Serious: ' + r.summary.serious);
console.log(' Moderate: ' + r.summary.moderate);
console.log(' Minor: ' + r.summary.minor);
console.log('');
for (const v of r.violations) {
console.log('[' + v.impact.toUpperCase() + '] ' + (v.help || v.message || v.id));
if (v.nodes && v.nodes[0]) console.log(' → ' + v.nodes[0].target);
if (v.selector) console.log(' → ' + v.selector);
console.log('');
}
"
fi
Which skills are related to accessibility-engineering?
Accessibility Engineering skill FAQ
Is Accessibility Engineering safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
Add a accessibility-engineering badge
Show developers this skill is listed on Skillselion. Paste this into your README.