murphytrueman/design-system-ops/accessibility-per-component
Claude Code and agent skill by murphytrueman/design-system-ops
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Audit one design system component's accessibility against WCAG 2.2 AA: keyboard, screen reader, contrast, focus, ARIA, target size. Trigger: a11y audit, is this accessible, WCAG check, screen reader support, keyboard navigation check. Not for page- or product-wide audits.
Install
npx vskill@latest install murphytrueman/design-system-ops/accessibility-per-componentSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as murphytrueman/design-system-ops/accessibility-per-component.
Accessibility per component
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.
Before you begin: verify references
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.
Context
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.
Configuration
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_releaseandgates.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.
Boundaries
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.
Step 1: Gather component information
Ask for or confirm:
- Component name and its design system context
- Access to the component for testing: Storybook, a live implementation, or a design file
- The component's interactive states (default, hover, focus, active, disabled, error, etc.)
- Any existing accessibility documentation for the component
- Whether the component is used in any assistive technology-sensitive contexts (financial, medical, government — these warrant extra rigour)
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.
Step 2: Run the five-dimension audit
Dimension 1: Keyboard navigation
Every interactive component must be fully operable by keyboard alone. Assess:
Tab order
- Does the component receive keyboard focus in a logical order relative to surrounding content?
- If the component is a composite widget (e.g. a modal, a menu, a tab panel), is the internal tab order logical?
Activation
- Can the component's primary action be triggered with Enter?
- If the component behaves like a button (not a link), can it also be triggered with Space?
- For components with multiple actions (e.g. a dropdown with options), are all actions keyboard accessible?
Arrow key navigation
- For composite widgets (menus, tab panels, radio groups, listboxes), is arrow key navigation implemented correctly per the ARIA Authoring Practices Guide (APG) pattern for this widget type?
Escape key
- For components that open a layer (modal, popover, tooltip, dropdown), does Escape close it and return focus correctly?
Reaching past large content
- If the component contains a large block of focusable content (a data table, a long list), can a keyboard user reach the controls after it without tabbing through every cell? (This is a 2.1.1 usability check at component level; 2.4.1 Bypass Blocks is page-level and isn't cited here.)
Result per criterion: PASS / FAIL / WARN (warn = partially implemented, needs verification in a specific context, or inferred from code without running the component)
Dimension 2: Screen reader experience
Assess the experience for a screen reader user navigating with keyboard focus:
Role announcement
- Does the component announce the correct ARIA role? Is the role appropriate for how the component behaves?
- FAIL example: a custom dropdown built from a
<div>with no role — announces as nothing - PASS example:
role="combobox"on an autocomplete input
State announcement
- Are interactive states announced correctly? Expanded/collapsed, checked/unchecked, selected, disabled, required, invalid
- FAIL example: a toggle switch with no
aria-checked— the state is not communicated - PASS example:
aria-checked="true"toggling toaria-checked="false"with a live region or label change
Name computation
- Does the component have an accessible name? Is it descriptive enough to be meaningful out of context?
- For form elements: is the label correctly associated (via
for/id,aria-labelledby, oraria-label)? - For icon-only buttons: is there an accessible name via
aria-labelor visually hidden text? - FAIL example: an icon button with no accessible name — announces only as "button"
Group labelling
- If the component is part of a group (radio group, checkbox group, fieldset), is the group correctly labelled?
Live regions
- If the component produces dynamic content changes (error messages appearing, status updates), are these communicated via
aria-liveor an appropriate role?
Instructions and descriptions
- If the component requires usage instructions to be usable (e.g. a date picker, a password field with requirements), are these instructions programmatically associated via
aria-describedby?
Result per criterion: PASS / FAIL / WARN
Dimension 3: Colour and contrast
Text contrast
- All text within the component must meet a minimum 4.5:1 contrast ratio against its background at WCAG AA (3:1 for large text — 18pt regular or 14pt bold).
- Check all text at all states: default, hover, disabled, error, success.
- Note: disabled state text is exempt from WCAG AA contrast requirements, but low-contrast disabled text should still be flagged as a WARN if it is likely to be read by users with low vision.
Non-text contrast (UI components)
- Active UI component boundaries (input borders, checkbox borders, button outlines where the shape communicates the control) must meet a 3:1 minimum contrast ratio against adjacent colours. (WCAG 1.4.11)
Focus indicator contrast
- The focus indicator must meet 3:1 contrast against adjacent colours (WCAG 1.4.11 Non-text Contrast) and be visible (2.4.7 Focus Visible). 2.4.13 Focus Appearance (AAA) sets a stricter size and contrast-change bar — note it as an AAA recommendation, not an AA failure.
Colour as the only means of conveying information
- If the component uses colour to convey state or meaning (e.g. a red border for an error, a green icon for success), is colour supplemented by another indicator (icon, text label, pattern)?
Result per criterion: PASS / FAIL / WARN with specific contrast ratio figures where assessable
Dimension 4: Focus management
Focus management is a component-level concern whenever a component opens, closes, moves, or otherwise changes the focus context.
Assess:
Focus on open
- When the component opens a layer (modal, dialog, drawer, dropdown), where does focus move?
- Correct: focus moves to the first focusable element within the layer, or to the layer container if it has a defined ARIA role that accepts focus
- Incorrect: focus stays on the trigger, leaving keyboard users unable to interact with the new content
Focus trap
- For modal dialogs: is focus trapped within the modal while it is open? Can a keyboard user accidentally tab out of the modal into the obscured page content behind it?
Focus on close
- When the component closes, where does focus return?
- Correct: focus returns to the trigger element that opened the layer
- Incorrect: focus moves to the top of the page, loses position, or becomes undefined
Focus visibility
- Is the focus indicator visible at all focusable elements within the component?
- Is the focus indicator styled in a way that clearly distinguishes it from the hover state?
Focus not obscured
- When an element receives focus, is it at least partly visible — not hidden behind a sticky header, cookie banner, or the component's own overlay? (WCAG 2.4.11 Focus Not Obscured (Minimum), AA)
Result per criterion: PASS / FAIL / WARN
Dimension 5: ARIA implementation
Assess the correctness of ARIA usage:
Role appropriateness
- Are the ARIA roles used appropriate for the component's function? (Reference the APG for the correct role pattern for each widget type)
- Are any roles being used in ways that conflict with their defined semantics?
Required ARIA attributes
- Are all required attributes for the component's ARIA role present? (e.g.
aria-expandedfor a disclosure,aria-selectedfor a tab,aria-controlslinking a trigger to its content)
Prohibited ARIA patterns
- Is ARIA being used to fix an inaccessible native implementation when a semantic HTML element would be more appropriate? (First rule of ARIA: do not use ARIA if a native HTML element provides the correct semantics)
- Are there redundant or conflicting ARIA attributes?
Landmark regions
- If the component occupies a significant section of a page (a navigation, a main content area, a complementary region), is it correctly wrapped in the appropriate landmark element or role?
Result per criterion: PASS / FAIL / WARN
Other component-level criteria
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/accessibility-per-component/SKILL.md
Popularity
- Repository stars
- 212
- Repository forks
- 7
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/murphytrueman/design-system-ops/accessibility-per-component)