agentleFS
sohaibdevvsohaibdevv/AI-AGENT-SKILLS/skills/accessibility-engineering/SKILL.md

accessibility-engineering

Skill2 starsChanged 6 months agoMITView on GitHub

Build UIs that work for all users including keyboard navigation, screen readers, and WCAG 2.2

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before implementing any UI component

    line 14
  2. Distinctive:

    Before any UI is marked complete

    line 15
  3. Distinctive:

    Use the right HTML elements before reaching for ARIA:

    line 21
  4. Distinctive:

    Every interactive element must be:

    line 31
  5. Distinctive:

    Not trapped in a dead end (modals must trap focus.

    line 36
  6. Distinctive:

    Test: complete the key user journeys using only the keyboard.

    line 38
  7. Distinctive:

    Test with at least one screen reader:

    line 41
  8. Distinctive:

    Verify: can a screen reader user complete the same tasks as a sighted user?

    line 46
  9. Distinctive:

    Do not convey information by color alone (use icons, patterns, text)

    line 50
  10. Distinctive:

    Test in grayscale mode

    line 51
  11. Very specific:

    All meaningful images have descriptive alt text

    line 60
  12. Distinctive:

    No flashing content above 3Hz (seizure risk)

    line 67
  13. Distinctive:

    Run axe-core, Lighthouse, or WAVE on every page.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

Overview

Accessibility is not a checklist - it is a commitment to not excluding users. 1 in 4 adults has some form of disability. Inaccessible software is defective software. This skill bakes accessibility in during development, not as a retrofit.

When to Use

  • Before implementing any UI component
  • Before any UI is marked complete
  • As part of the /review workflow for frontend changes

Process

Step 1: Semantic HTML first

Use the right HTML elements before reaching for ARIA:

  • Buttons for actions (<button>), links for navigation (<a href>)
  • Headings for document structure (<h1>–<h6> in correct order)
  • Lists for lists (<ul>, <ol>)
  • Form labels associated with inputs (<label for>)
  • Landmark regions (<nav>, <main>, <header>, <footer>, <aside>)

ARIA only when native semantics are insufficient.

Step 2: Keyboard navigation

Every interactive element must be:

  • Reachable by Tab
  • Activatable by Enter/Space
  • Part of a logical tab order
  • Visually focused (:focus-visible style)
  • Not trapped in a dead end (modals must trap focus; must release on close)

Test: complete the key user journeys using only the keyboard.

Step 3: Screen reader testing

Test with at least one screen reader:

  • VoiceOver (macOS/iOS) + Safari
  • NVDA or JAWS (Windows) + Chrome
  • TalkBack (Android)

Verify: can a screen reader user complete the same tasks as a sighted user?

Step 4: Color and contrast

  • Text contrast ratio: ≥ 4.5:1 for normal text, ≥ 3:1 for large text (WCAG AA)
  • Do not convey information by color alone (use icons, patterns, text)
  • Test in grayscale mode

Step 5: Dynamic content

  • Announce dynamic updates with aria-live regions
  • Focus management after navigation (move focus to new content)
  • Loading states must be communicated to screen readers
  • Errors must be associated with their form fields

Step 6: Images and media

  • All meaningful images have descriptive alt text
  • Decorative images have alt=""
  • Videos have captions and transcripts
  • Audio content has transcripts

Step 7: Motion and animation

  • Respect prefers-reduced-motion
  • No flashing content above 3Hz (seizure risk)
  • Animation should not distract or interfere with content

Step 8: Automated testing

Run axe-core, Lighthouse, or WAVE on every page. Automate in CI. These catch ~30–40% of accessibility issues.

Verification Requirements

  • Semantic HTML used (not <div> for everything)
  • All user journeys completable by keyboard only
  • Tested with a screen reader
  • Color contrast ratios meet WCAG AA
  • Dynamic updates announced
  • All images have appropriate alt text
  • Reduced motion respected
  • Automated accessibility tests pass in CI

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.