agentleFS
anandartinanandartin/celestial-skills/skills/accessibility-audit-engineering/AGENTS.md

celestial-skills / accessibility-audit-engineering

AGENTS.md1 starsChanged 18 days agoApache-2.0View on GitHub

Combine automated scans with hands-on keyboard and screen-reader passes, so a UI meets WCAG 2.2 AA for the people who actually use assistive technology. Generated from the Celestial engineering practice “Accessibility audit”.

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use native HTML elements and platform controls before reaching for ARIA roles.

    line 25
  2. Distinctive:

    Every input has a programmatic label, and every error message is associated with its field and announced.

    line 26
  3. Distinctive:

    Never remove focus outlines without a visible replacement that meets contrast.

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — Accessibility audit

Combine automated scans with hands-on keyboard and screen-reader passes, so a UI meets WCAG 2.2 AA for the people who actually use assistive technology.

How to do it

  1. Pick the journeys to audit — List the screens and states that make up the key tasks (sign in, search, checkout, form submit, error and empty states). Audit states, not just pages: open menus, dialogs, validation errors and loading.
  2. Run automated checks — Run axe (or the platform's audit tool) on every listed state, in light and dark themes. Fix all violations; treat 'needs review' items as inputs to the manual passes.
  3. Keyboard-only pass — Unplug the mouse. Tab through each journey: every interactive element is reachable, focus order follows the visual order, focus is always visible and not hidden behind sticky headers, dialogs trap focus and return it on close, and nothing traps focus permanently.
  4. Screen-reader pass — Complete each journey with at least one screen reader (VoiceOver on macOS or iOS, NVDA on Windows, TalkBack on Android). Check that headings form an outline, controls announce name, role and state, images have useful text or are hidden, and errors and status changes are announced.
  5. Visual and zoom pass — Check text contrast at 4.5:1 (3:1 for large text and UI component edges), zoom to 200% and reflow at 320px width without horizontal scrolling or lost content, and confirm information is not conveyed by colour alone.
  6. Target size and motion — Confirm pointer targets are at least 24 by 24 CSS pixels or have equivalent spacing, dragging actions have a single-pointer alternative, and animation respects reduced-motion preferences.
  7. Log findings against success criteria — Record each issue with the screen, steps to reproduce, the WCAG 2.2 criterion number, the user impact and a proposed fix. Severity: blocker (task cannot be completed), major, minor.
  8. Fix and add regression tests — Fix blockers before release. Add automated assertions (axe in component and end-to-end tests, focus-order checks) so fixed issues stay fixed.

Checklist (before a pull request)

  • Automated scan shows zero violations on every audited state in both themes
  • Every journey completes with keyboard only and visible focus throughout
  • Every journey completes with at least one screen reader
  • Text and UI contrast meet AA ratios
  • Content reflows at 320px width and 200% zoom without loss
  • Form errors are announced and linked to their fields
  • All blocker and major findings are fixed or have a dated plan

Rules

  • Use native HTML elements and platform controls before reaching for ARIA roles. (Native controls carry correct keyboard and assistive-technology behaviour without extra code.)
  • Every input has a programmatic label, and every error message is associated with its field and announced. (Placeholder-only fields and silent errors are the most common blockers in forms.)
  • Never remove focus outlines without a visible replacement that meets contrast. (Keyboard users cannot tell where they are without it.)
  • Move focus deliberately on route changes and when dialogs open or close. (Single-page apps otherwise leave screen-reader users stranded on stale content.)
  • Bake accessible behaviour into shared components so every screen inherits it. (Fixing a component once is cheaper than fixing every page that uses it.)

Checks

GateToolThresholdWhen
Accessibilityaxe in component and end-to-end tests, plus a manual keyboard and screen-reader pass on changed journeysWCAG 2.2 AA · zero automated violations · manual pass recorded for every changed journeyEvery pull request (automated); every release (manual)

Generated from the Celestial engineering practice “Accessibility audit”.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.