Skip to content
Back to skills

Accessibility

ASecurity

Audit and fix web accessibility (WCAG 2.2 AA, Lighthouse a11y, ARIA, focus, contrast, keyboard, screen readers) in apps/ui and the other Next.js frontends. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", "make accessible", or to fix Lighthouse accessibility failures.

  • 1,773 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsgonextjsnodefrontend

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add theopenco/llmgateway --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/theopenco-accessibility/badge)](https://www.skillsdirectory.com/skills/theopenco-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: Audit and fix web accessibility (WCAG 2.2 AA, Lighthouse a11y, ARIA, focus, contrast, keyboard, screen readers) in apps/ui and the other Next.js frontends. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", "make accessible", or to fix Lighthouse accessibility failures.
---

# Accessibility

Adapted from addyosmani/web-quality-skills (MIT). Target WCAG 2.2 AA.

## Repo anchors

- Main frontend: `apps/ui`; the same rules apply to the other apps in the `frontend` skill.
- Build dialogs, sheets, menus, popovers, selects and tooltips from the Radix-based primitives in `apps/ui/src/lib/components` or `packages/shared/src/components/ui`. They handle focus trap, Escape and ARIA state; never hand-roll them.
- Icon-only buttons get `aria-label` (or `sr-only` text) and `aria-hidden` on the icon.
- `next/image` needs a real `alt`; use `alt=""` only for decorative images.
- Themes come from `next-themes` (class on `html`): check contrast and focus rings in light and dark.
- Audit against the local stack (`apps/ui` on `UI_PORT`, default 3002); see the `local-stack` skill.

## Workflow

1. Run a live Lighthouse Accessibility audit: Chrome DevTools MCP `lighthouse_audit`, navigation mode for public pages, snapshot mode for signed-in or stateful dashboard pages. Fallback: `npx lighthouse <url> --only-categories=accessibility` or `npx @axe-core/cli <url>`. These start signed out: for dashboard pages pass the session to Lighthouse with `--extra-headers '{"Cookie":"<session>"}'` and confirm the report's final URL is not the login page. They cannot keep open dialogs, so audit those with the MCP.
2. Map failed nodes to their component; don't grep the repo for generic patterns.
3. Inspect the accessibility tree (`take_snapshot`) for names, roles, states, landmarks and headings, then run the flow by keyboard.
4. Fix the source, then re-run the same audit and the manual pass.

Automated tools catch only a subset: a score of 100 is not WCAG conformance.

## Rules

- Prefer native elements (`button`, `a href`, `input` with `label`) over ARIA roles on a `div`. Never add Enter or Space handlers to a native button; it already activates on them. Other keys (toolbar arrow keys) are fine.
- Every input has a programmatic label. Errors set `aria-invalid` and `aria-describedby`, are announced via `role="alert"` or `aria-live`, and submit focuses the first error.
- Contrast: 4.5:1 for normal text, 3:1 for large text, UI components and focus indicators. Never convey state by color alone.
- Never remove focus outlines without a `focus-visible:` replacement.
- WCAG 2.2 additions:
  - 2.4.11: sticky headers must not hide the focused element (use `scroll-margin`).
  - 2.5.7: every drag action has a single-pointer alternative.
  - 2.5.8: targets are at least 24 x 24 CSS px.
  - 3.2.6: repeated help keeps the same relative order across pages.
  - 3.3.7: don't ask again for data already entered in the same flow.
  - 3.3.8: password fields allow paste and autofill; any other cognitive test (puzzle, typed one-time code) needs a mechanism that solves it or an alternative with no unassisted cognitive test (passkey, email link).
- Respect `prefers-reduced-motion` (Tailwind `motion-safe:` and `motion-reduce:`).

## Manual checklist

- [ ] Tab through the flow: Enter and Space activate, no traps, focus order matches visual order.
- [ ] Screen reader pass (VoiceOver) on the changed components.
- [ ] Usable at 200% zoom and at mobile width.
- [ ] Reduced motion honored.
- [ ] Light and dark both meet contrast.

## References

- [WCAG 2.2 criteria by level and what changed from 2.1](references/WCAG.md)
- [Code patterns](references/A11Y-PATTERNS.md): focus trap, skip link, forms, errors, dragging, tabs, live regions, alt text, contrast, focus, target size, reduced motion, authentication, issues by impact, screen reader shortcuts.
- [WCAG 2.2 Quick Reference](https://www.w3.org/WAI/WCAG22/quickref/), [WAI-ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/), [axe rules](https://dequeuniversity.com/rules/axe/)

Files in this skill

  • SKILL.md14 KB
  • references/A11Y-PATTERNS.md5.9 KB
  • references/WCAG.md8.9 KB

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.