/design-system-ops:accessibility-per-componentfrom design-system-ops
Audits a single design system component against WCAG 2.2 AA across keyboard, screen reader, contrast, focus, ARIA, and target size. Produces PASS/FAIL/WARN with remediation guidance.
Ships in design-system-ops. 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.
None: SKILL.md is the whole skill.
A skill for running a structured accessibility audit on a design system component, covering five dimensions: keyboard navigation, screen reader experience, colour and contrast, focus management, and ARIA implementation. Produces a PASS/FAIL/WARN per criterion with specific remediation guidance.
Confirm that every path in this skill's frontmatter references: exists relative to this SKILL.md. If any is missing, stop: the install is incomplete, usually because a flattening installer (for example npx skills install) dropped the repo-root knowledge-notes/ directory. Tell the user to reinstall by a method in 1-INSTALL.md and run verify-install.sh from the install root. Proceed without the references only if the user explicitly says to, and then say in the output that it was produced without the pack's reference material.
Accessibility audits at the component level are more valuable than page-level or system-level assessments because they fix the problem at its source. A component with a correct accessibility implementation propagates that correctness to every product that uses it. A component with an accessibility bug propagates that bug at the same scale.
This skill audits against WCAG 2.2 AA as the baseline. Some legal baselines (e.g. EN 301 549) still reference WCAG 2.1 AA; use that if it's the team's obligation. Where a criterion is more stringent at AAA and the difference matters practically (particularly around colour contrast and keyboard accessibility), this is noted. 4.1.1 Parsing is obsolete in WCAG 2.2 — don't cite it. The output is not a compliance report — it is a practical guide to what needs to change and why.
Evidence rule. PASS requires evidence from the running component or a computed ratio. Code-only inference is ⚠️ WARN (unverified). Overall status = the worst criterion result.
If .ds-ops-config.yml exists, follow the configuration-and-recurring knowledge note (../../knowledge-notes/configuration-and-recurring.md) for loading, integration fallbacks and recurring runs. This skill reads:
severity.missing_aria — severity for missing or incorrect ARIA findings (default: critical)gates.accessibility.keyboard_blocks_release and gates.accessibility.contrast_blocks_release — whether keyboard and contrast FAILs block release (both default: true). If a gate is set to false, still report the FAIL, and note that it does not block release under the team's config.This skill audits a single component at a time. If the request is for a page-level or full-product accessibility audit, escalate to a dedicated accessibility review process — this skill is not designed for that scope. If no specific component is identified, ask which component to audit before proceeding. If the component has no implementation yet (design only, no code), note that the audit covers design intent only and flag code-level checks as pending.
Ask for or confirm:
Find the runtime evidence before auditing. PASS needs the running component, so look for what can run it: a Storybook with the test-runner or the a11y addon (npx test-storybook --url <storybook> runs axe per story), jest-axe or vitest-axe tests in the repo, a Playwright setup with @axe-core/playwright, or a dev server. If any exists, run it for this component and use its output as evidence. If none exists, ask the user for one of: a Storybook URL, a screen-reader transcript of the primary task, or screenshots of each state. Without any of these, every keyboard, screen-reader and focus criterion is ⚠️ WARN (unverified), the report says so in its first line, and only contrast (computed from the resolved token values) can be PASS or FAIL. Don't run the whole audit from source and present it as verified.
If the component can only be assessed from a design file rather than a live implementation, note that the keyboard and screen reader dimensions are being assessed against the specification rather than the built behaviour. These findings should be verified against the implementation before being marked as passing.
Every interactive component must be fully operable by keyboard alone. Assess:
Tab order
Activation
Arrow key navigation
Escape key
Reaching past large content
Result per criterion: PASS / FAIL / WARN (warn = partially implemented, needs verification in a specific context, or inferred from code without running the component)
Assess the experience for a screen reader user navigating with keyboard focus:
Role announcement
<div> with no role — announces as nothingrole="combobox" on an autocomplete inputState announcement
aria-checked — the state is not communicatedaria-checked="true" toggling to aria-checked="false" with a live region or label changeName computation
for/id, aria-labelledby, or aria-label)?aria-label or visually hidden text?Group labelling
Live regions
aria-live or an appropriate role?Instructions and descriptions
aria-describedby?Result per criterion: PASS / FAIL / WARN
Text contrast
Non-text contrast (UI components)
Focus indicator contrast
Colour as the only means of conveying information
Result per criterion: PASS / FAIL / WARN with specific contrast ratio figures where assessable
Focus management is a component-level concern whenever a component opens, closes, moves, or otherwise changes the focus context.
Assess:
Focus on open
Focus trap
Focus on close
Focus visibility
Focus not obscured
Result per criterion: PASS / FAIL / WARN
Assess the correctness of ARIA usage:
Role appropriateness
Required ARIA attributes
aria-expanded for a disclosure, aria-selected for a tab, aria-controls linking a trigger to its content)Prohibited ARIA patterns
Landmark regions
Result per criterion: PASS / FAIL / WARN
Check these where the component type makes them relevant, and report them under the closest dimension:
aria-live or role="status"/role="alert". This is the criterion behind the live-region check in Dimension 2; cite it.@media (forced-colors: active) the component's boundaries, focus indicator and state indicators survive, because backgrounds and box-shadows are removed. Check for forced-color-adjust and system-colour keywords where a border or outline carries meaning.prefers-reduced-motion (2.3.3 is AAA; note it as a recommendation, and flag any flashing over three times a second as 2.3.1, which is A).When Dimension 2 has any FAIL or WARN, include a short verification guide so the team can confirm the fix:
Open with a headline sentence that tells the reader the overall state and where to focus.
Audit date: [date] WCAG level: 2.2 AA (or 2.1 AA where that is the team's legal obligation) Assessment method: [live component / design specification / Storybook] Additional context: [e.g. tested with VoiceOver/macOS, NVDA/Windows — if applicable]
✅ PASS / ⚠️ WARN / ❌ FAIL — the worst result across all criteria. Criteria inferred from code alone are ⚠️ WARN (unverified), never PASS.
| Dimension | Criterion | Result | Severity | Evidence | Finding | Remediation |
|---|---|---|---|---|---|---|
| Keyboard | Tab order | ✅ PASS / ⚠️ WARN / ❌ FAIL | 🔴/🟠/🟡/⚪ or — | [file:line, story id, axe rule id, computed ratio, or transcript line] | [specific finding] | [specific fix] |
| ... |
Status key: ✅ PASS / ⚠️ WARN / ❌ FAIL. Severity applies to FAIL and WARN rows:
Evidence is where the result came from: the source line, the Storybook story or axe rule, the computed ratio with both colours, or the transcript line. A row with no evidence is WARN, never PASS.
Pull out any FAIL results that create significant barriers — particularly any that prevent a user from completing a task using only a keyboard or screen reader. These need to be fixed before the component ships or remains in the system.
For each FAIL or WARN finding, include the relevant WCAG criterion (e.g. 1.4.3 Contrast Minimum, 2.1.1 Keyboard). This makes it easier to prioritise against compliance requirements and to communicate findings to stakeholders.
Scope
If any of these findings are deliberate decisions (for example, a pattern that departs from the APG for a documented reason), tell me and I'll treat them as accepted in future runs.
For every FAIL or WARN finding, include a concrete code example showing the fix, placed directly under the finding it fixes, before the Scope block. Remediation guidance without code is advice; remediation guidance with code is a pull request waiting to happen. Write the example against the component's own source and stack, not a generic one, and don't replace the consumer's existing handlers: a fix that clones a child element must merge onFocus, onBlur, onMouseEnter and the rest with any the child already had.
Format for each code example:
Finding: [finding ID and short description]
Before (violation):
[The exact code pattern that causes the failure]
After (fixed):
[The corrected code with the specific change highlighted]
Why this fixes it:
[One sentence explaining what changed and which WCAG criterion it satisfies]
Examples by dimension:
Screen reader — missing accessible name on icon button:
Before:
<button><Icon name="close" /></button>
After:
<button aria-label="Close dialog"><Icon name="close" aria-hidden="true" /></button>
Why: aria-label provides the accessible name. aria-hidden on the icon prevents
the icon name from being announced alongside the label. (WCAG 4.1.2)
Include the appropriate code example pattern for every FAIL finding. For WARN findings, include the example if the fix is clear; omit it if the finding requires contextual judgment that code alone cannot resolve.
Simple components (buttons, badges, basic inputs) tend to pass most checks. The real value of this skill is exposed on complex, high-CR components where accessibility failures are subtle and compound. When the target component is one of the following types, apply the extended protocol:
Additional checks beyond the standard five dimensions:
aria-activedescendant conveys the active option, not the count)Additional checks:
role="grid" with correct row/cell roles?Additional checks:
scope="col" or equivalent ARIA?role="grid"), can the user navigate cell-by-cell with arrow keys? A static <table> should not add arrow-key cell navigation — screen readers already provide table navigation.Additional checks:
aria-modal="true" set, and is background content made inert? A native <dialog> opened with showModal() satisfies both — don't flag it for missing aria-modal.Additional checks:
role="tablist", role="tab", role="tabpanel" correctly?aria-selected state correctly toggled between tabs?aria-disabled or removed from the arrow-key sequence; check the implementation picks one, applies it consistently, and announces the disabled stateFor any component matching these types, run both the standard five-dimension audit AND the extended protocol. The extended protocol findings should be interleaved into the main report by dimension, not presented as a separate section.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
36 skills in this plugin
/adoption-reportAdoption report: coverage (what the system provides), reach (teams with access) and adoption (teams shipping with it), design vs engineering, trend and at-risk teams. Triggers: adoption report, usage metrics, which teams use the system. Not docs coverage — use docs-coverage./agent-instructionsWrite the AGENTS.md that tells coding agents how to use this design system: where things live, sourced rules, how to check work, what not to do; Claude, Cursor or Copilot pointers on request. Triggers: AGENTS.md for our system, make it AI-navigable, agent instructions. Inventory: codebase-index./ai-component-descriptionWrite a six-section prose description (purpose, props, anti-patterns, composition, accessibility, examples) for a Figma component's description field so LLMs read it via MCP. Triggers: describe this component for AI, Figma MCP description. JSON metadata files: use metadata-schema-generator.Generated from the plugin's indexed repository (murphytrueman/design-system-ops) — no native marketplace selected
npx claudepluginhub p/murphytrueman-design-system-opsOther plugins' skills for the same job