Docs a11y

From pglejzer/timepicker-ui · View interactive version

Docs a11y is an AI agent skill from the GitHub repository pglejzer/timepicker-ui. Audit and improve the accessibility of the timepicker-ui documentation site (docs-app/) - landmarks, heading order, skip links, keyboard nav, focus management in the command menu / sidebar / dialogs, color contrast, alt text, ARIA on custom components (tabs, native dialogs), reduced motion - against

How to use this skill

Skill file

Docs Accessibility (a11y)

Make the timepicker-ui documentation site (docs-app/, Next.js 16) usable by keyboard and

assistive technology. This skill is a thin orchestrator: the real work is done by the

docs-accessibility subagent. The skill exists to hold the approval gate the subagent

can't run itself.

Standard: WCAG 2.2 AA. Scope is docs-app/ only - the library is /a11y.

Arguments (optional)

/docs-a11y contrast, /docs-a11y headings, /docs-a11y keyboard. No argument = full audit.

Workflow

Phase 1 — Audit (read-only)

Dispatch the docs-accessibility subagent (Task tool, subagent_type: docs-accessibility) in

audit mode, with the focus area if given. Ask for a prioritized, file-level plan grouped into:

  1. Structure & landmarks (one <main>, nav/header/footer, skip link, heading order)
  2. Keyboard & focus (command menu, mobile sidebar, dialogs: trap/Escape/focus-return, visible focus,

aria-expanded/aria-current)

  1. Names, roles, contrast (icon-button labels, decorative aria-hidden, ≥4.5:1 text contrast in

light AND dark)

  1. Content & media (lang, descriptive links, labelled copy buttons, alt text)
  2. Motion & responsiveness (prefers-reduced-motion, reflow at 320px / 400% zoom)

Each finding cites its WCAG reference and the exact file + change. No edits.

Phase 2 — Present & approve (gate)

Relay the plan concisely (grouped, with references). Use AskUserQuestion to approve all, pick

which groups/items to apply, or skip. Capture the approved set. Do not skip this gate unless

--apply-all was passed.

Phase 3 — Apply

Dispatch docs-accessibility again in apply mode with the exact approved list. It implements

fixes (landmarks, headings, aria-*, focus management, labels, contrast/markup) in docs-app's own

TS/App-Router style and line endings, using native elements and the WAI-ARIA patterns correctly

and adding no heavy deps.

Phase 4 — Verify & report

tooling is available), then /verify per HARD RULES §5. Report real output; never assume green.

page), Escape/focus-return on the menus, a screen-reader pass on one page, and a contrast check in

both light and dark themes.

visual/content redesign for docs-site.

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.