agentleFS
fworks-techfworks-tech/agenthood/skills/accessibility-auditor/SKILL.md

accessibility-auditor

Skill3 starsChanged 2 months agoMITView on GitHub

Audits web interfaces for WCAG compliance — semantic HTML, ARIA, keyboard navigation, color contrast, screen reader compatibility, and accessible forms. Use when generating or reviewing HTML, or verifying an interface against accessibility standards.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 9 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use proper semantic elements: <nav>, <main>, <section>, <article>, <header>, <footer>

    line 23
  2. Very specific:

    Use one <h1> per page with descriptive heading text

    line 25
  3. Very specific:

    Add alt text to all images

    line 28
  4. Distinctive:

    Ensure interactive elements have accessible names

    line 30
  5. Very specific:

    Use aria-expanded for collapsible content

    line 31
  6. Very specific:

    Add role, aria-labelledby, and aria-describedby when semantic HTML is not sufficient

    line 32
  7. Distinctive:

    All interactive elements must be keyboard accessible

    line 35
  8. Distinctive:

    Use logical tab order that matches visual layout

    line 38
  9. Distinctive:

    Never rely on color alone to convey information — use color + icon + text

    line 43
  10. Distinctive:

    Add patterns or textures to distinguish chart elements.

    line 44
  11. Distinctive:

    Use descriptive link text — "Download the accessibility report (PDF, 2MB)", never "Click here"

    line 49
  12. Distinctive:

    Place labels above or to the left of form fields

    line 53
  13. Very specific:

    Use aria-required="true" for required fields

    line 56
  14. Distinctive:

    Automated: run axe-core scanner in CI/CD, test with lighthouse accessibility audit, validate HTML markup for semantic correctness

    line 60
  15. Distinctive:

    No keyboard test before calling a UI done

    line 71

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “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

The Accessibility Auditor

Overview

The Accessibility Auditor treats accessible HTML as a requirement, not a nice-to-have. It checks generated code against WCAG priorities — semantic structure, keyboard operability, contrast ratios, screen reader compatibility — and verifies with automated tools plus manual tests. A page that only works with a mouse is a page that does not work.

When to Use

  • Generating or reviewing HTML for accessibility compliance
  • Auditing an interface against WCAG standards
  • Designing forms, navigation, or dynamic content with accessibility in mind
  • Verifying that a UI passes automated and manual accessibility checks

Process

1. Semantic HTML First

  • Use proper semantic elements: <nav>, <main>, <section>, <article>, <header>, <footer>
  • Structure headings sequentially (h1 → h2 → h3, never skip levels)
  • Use one <h1> per page with descriptive heading text

2. Apply Essential ARIA Requirements

  • Add alt text to all images
  • Label form inputs with <label> or aria-label
  • Ensure interactive elements have accessible names
  • Use aria-expanded for collapsible content
  • Add role, aria-labelledby, and aria-describedby when semantic HTML is not sufficient

3. Verify Keyboard Navigation

  • All interactive elements must be keyboard accessible
  • Provide visible focus indicators (minimum 2px outline)
  • Include skip links: <a href="#main">Skip to main content</a>
  • Use logical tab order that matches visual layout

4. Check Color and Contrast

  • 4.5:1 contrast ratio for normal text (under 18pt); 3:1 for large text (18pt+ or 14pt+ bold)
  • 3:1 for UI components and graphics
  • Never rely on color alone to convey information — use color + icon + text
  • Add patterns or textures to distinguish chart elements; label graphs and data visualizations

5. Ensure Screen Reader Compatibility

  • Describe non-text content by function, not appearance: alt="Submit form", not alt="Blue button"
  • Associate every input with a <label> element
  • Use descriptive link text — "Download the accessibility report (PDF, 2MB)", never "Click here"
  • Announce dynamic content updates: aria-live="polite" for status, aria-live="assertive" for urgent notifications

6. Apply Form Design Standards

  • Place labels above or to the left of form fields
  • Group related fields with <fieldset> and <legend>
  • Display validation errors immediately after the field with aria-describedby
  • Use aria-required="true" for required fields
  • Provide clear instructions before users start filling out forms

7. Test, Automated Then Manual

Automated: run axe-core scanner in CI/CD, test with lighthouse accessibility audit, validate HTML markup for semantic correctness Manual: navigate the entire interface using only Tab/Shift+Tab/arrow keys; test with a screen reader (NVDA on Windows, VoiceOver on Mac); verify 200% zoom does not break layout or hide content; check contrast with a tool like the WebAIM Color Contrast Checker

Code Generation Rule: include accessibility comments explaining ARIA attributes and semantic choices; test code with keyboard navigation before suggesting it is complete.

Red Flags

  • Semantic HTML replaced by a mountain of divs and role attributes
  • Focus indicators removed "for aesthetics"
  • Color as the only status signal
  • Labels omitted, placeholder text used instead
  • No keyboard test before calling a UI done
  • Skip levels in heading structure

Rationalizations

What you thinkWhat The Accessibility Auditor knows
"Screen readers are rare, it's fine"Accessibility is not a niche. It is a legal, ethical, and quality requirement.
"aria-label on everything fixes it"ARIA is a patch for semantic HTML, not a replacement for it. Structure first.
"The contrast looks fine to me""Looks fine" is not 4.5:1. Measure it.
"We'll add alt text later"Later is never. Accessibility is a generation-time requirement.

Verification

The audit is complete when:

  • Semantic elements and sequential heading structure are used
  • Every image has functional alt text; every input has a label
  • Full interface is operable by keyboard alone with visible focus
  • Contrast ratios meet 4.5:1 (text) and 3:1 (large text/UI)
  • Dynamic content is announced via aria-live
  • Automated scans (axe/lighthouse) and manual tests (keyboard, screen reader, 200% zoom) pass

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.