Skip to content
Back to skills

Accessibility

ASecurity

Accessibility — WCAG 2.2 AA, semantic HTML and ARIA only when needed, keyboard operability and focus management, focus visibility and focus not obscured, accessible names and errors, text and non-text contrast, colour not the only cue, target size, reflow, text resize and spacing, content on hover or focus, motion, screen reader testing, automated checks (axe) in CI, accessibility statements. Use to build or test accessible UIs (accessibility, a11y, WCAG, ARIA, keyboard, contrast, screen read...

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgotesting

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add vectora-os/kit --skill accessibility --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Accessibility?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Accessibility
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectora-os-accessibility/badge)](https://www.skillsdirectory.com/skills/vectora-os-accessibility)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: accessibility
description: Accessibility — WCAG 2.2 AA, semantic HTML and ARIA only when needed, keyboard operability and focus management, focus visibility and focus not obscured, accessible names and errors, text and non-text contrast, colour not the only cue, target size, reflow, text resize and spacing, content on hover or focus, motion, screen reader testing, automated checks (axe) in CI, accessibility statements. Use to build or test accessible UIs (accessibility, a11y, WCAG, ARIA, keyboard, contrast, screen reader).
metadata:
  category: quality
---

# Accessibility

## Purpose

Make the product usable by everyone and verifiable against WCAG.

**Use when:** UI implementation and testing.

**Not for:** visual design decisions (`ui-design`) — but accessibility wins every conflict with them.

## Inputs

- Screens, components, target level.

## Outputs

- Accessible implementation or audit with WCAG references.

## Read first

- [Project Brain](../../../project-brain/README.md) — `npm run brain -- query "accessibility"` for prior decisions, patterns and anti-patterns.
- [Accessibility standard](../../../standards/accessibility.md) — the target level and required checks.

## Steps

1. **Semantics.** Native elements first; ARIA to fill gaps. Headings follow document structure, not visual size; landmarks and a skip link to the main content (2.4.1, 1.3.1).
   Done when roles, names and heading levels are correct.
2. **Keyboard and focus.** Everything operable with no keyboard trap (2.1.1, 2.1.2); logical order (2.4.3); focus indicator always visible (2.4.7) and not entirely hidden by sticky headers, banners or overlays (2.4.11; fully visible is 2.4.12, AAA); focus moved into dialogs and returned on close.
   Done when a keyboard-only pass completes every flow with focus visible at each step.
3. **Contrast and colour.** Text contrast (1.4.3) and non-text contrast for control boundaries, focus indicators, icons and chart marks (1.4.11), checked in every state and theme. Colour is never the only cue: errors, required fields, links in text and chart series get a second cue — text, icon, pattern or underline; links may instead differ from surrounding text by contrast and get a non-colour cue on hover and focus (1.4.1).
   Done when contrast is measured for each state and theme and no information depends on colour alone.
4. **Resize and reflow.** Text resizes without loss (1.4.4); content reflows at narrow widths without two-dimensional scrolling, except data tables, maps and similar (1.4.10); layout survives increased letter, word, line and paragraph spacing (1.4.12); zoom is never disabled.
   Done when the flow works at 400% zoom, with text alone resized to 200%, and with increased text spacing.
5. **Pointer and hover.** Targets meet the minimum size or have enough spacing (2.5.8); content shown on hover or focus is dismissible, hoverable and persistent (1.4.13); nothing is reachable only by hover, and path or multipoint gestures have a single-pointer alternative (2.5.1).
   Done when tooltips and popovers pass 1.4.13 and small targets are measured.
6. **Perception and motion.** Text alternatives, labelled inputs; errors identified and described in text (3.3.1) and programmatically associated with the field (1.3.1); status messages announced (4.1.3); motion respects reduced-motion preferences per the standard; nothing flashes more than three times a second (2.3.1).
   Done when automated checks are clean and reduced motion is honoured.
7. **Verify.** Automated checks (axe) in component and E2E tests — they miss focus, order, announcements and most contrast in states; a screen reader pass on key flows.
   Done when findings cite WCAG criteria and manual checks are recorded.

## Best practices

- axe in component and E2E tests.
- Announce async changes with live regions.
- Measure contrast with the actual tokens of each state (hover, focus, selected, error) and theme, not only the default; disabled controls are exempt from 1.4.3 and 1.4.11, so their contrast is a design note, not a conformance finding.
- Give small icon buttons a larger hit area instead of a larger icon.

## Common mistakes

- `div` buttons.
- Placeholder as label.
- Removing the focus outline without an equivalent indicator.
- Errors shown only as a red border.
- Input borders and icons too faint to see as controls (1.4.11).
- Sticky headers that cover the focused element when tabbing.

## Example

Signup: associated errors (3.3.1), focus to first error (2.4.3), contrast fix (1.4.3), input border made visible (1.4.11), required marker gets text, not only red (1.4.1), error text associated with its field (1.3.1).

## Reusable prompt

```text
Apply the Accessibility skill (.agents/skills/accessibility/SKILL.md).
Context: {{task card or question; links to PRD, ADRs, code paths}}
Constraints: {{approved thresholds, deadlines, allowed files}}
Implement or audit the UI against WCAG 2.2 AA: semantics, keyboard and focus, text and non-text contrast, colour as a cue, reflow and resize, target size, hover content, motion; automated and screen reader checks.
Return: Accessible implementation or audit with WCAG references.
Cite evidence (file:line, command output, source) for every claim; list open questions separately.
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.