/a11y-enforcer:a11y-enforcerfrom A11y Enforcer: WCAG Accessibility Checker
Scans HTML, React, Vue, Svelte, and Astro files for WCAG 2.2 AA violations including missing alt text, unlabeled inputs, keyboard traps, and color contrast issues. Runs static analysis scripts and guides manual review of focus management, live regions, and form accessibility.
Ships in A11y Enforcer: WCAG Accessibility Checker. 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.
Scripts: ${CLAUDE_SKILL_DIR} is the folder that contains this file. If your agent does not define it, use the folder where this SKILL.md is located.
Find and fix accessibility problems against WCAG 2.2 level AA.
python3 ${CLAUDE_SKILL_DIR}/scripts/a11y_scan.py <path> # folder or files
python3 ${CLAUDE_SKILL_DIR}/scripts/a11y_scan.py src --errors-only
It reads .html, .jsx, .tsx, .vue, .svelte and .astro files and reports, with file, line and WCAG criterion:
alt, icon-only buttons and empty links without an accessible namearia-label or aria-labelledbydiv/span click handlers without a role, tabindex and keyboard handler, and <a> without href used as a buttontabindex, role="button" and similar without focus, accesskeylang on <html>, viewport meta that blocks zoom, iframes without a titleThe scan is static, so it cannot see text added at runtime, props passed into custom components (<Icon>, <Button>), or CSS from stylesheets. Check those by reading the component: if a custom Button renders a native <button> and forwards aria-label, an icon-only usage still needs that prop.
Read the colors from the theme, CSS variables or Tailwind config and check each text and background pair:
python3 ${CLAUDE_SKILL_DIR}/scripts/contrast.py "#6b7280" "#ffffff" "#9ca3af" "#111827"
Requirements: 4.5:1 for normal text, 3:1 for large text (24px, or 18.66px bold) and for icons, borders of inputs and focus indicators. Check both light and dark themes, and hover, disabled-looking-but-enabled and placeholder text.
Review the code for:
:focus-visible styles exist wherever outline: none is used; the focused element is not hidden under a sticky header (WCAG 2.4.11).role="status", role="alert" or aria-live; errors are linked to fields with aria-describedby.autocomplete is set on personal data fields.prefers-reduced-motion.role on elements that already have it; aria-hidden="true" never on focusable elements.If the user wants a browser check, an installed axe-core setup (@axe-core/playwright, jest-axe, vitest-axe) or Lighthouse's accessibility category gives runtime results. Use what the project already has; ask before adding a dependency.
aria-label, real alt text that says what the image means in context (empty alt="" only for decoration).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub petrovicistefan/claude-code-plugins --plugin a11y-enforcerOther plugins' skills for the same job