agentleFS
amajoraiamajorai/skills/skills/others/a11y/SKILL.md

a11y

Skill3 starsChanged 6 months agoMITView on GitHub

Audit and fix accessibility issues in any web app to WCAG 2.2 AA standard. Covers keyboard navigation, screen reader support, color contrast, focus management, and ARIA. Use when preparing an app for launch or fixing reported accessibility issues.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use migrate, onboard and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • genomewalkerSkill

    migrate

    Import soul data from SQLite or shared chitta files

    Also in 3 projects that use this

  • SentrySkill

    onboard

    Onboard a service to sentry-options. Use when integrating a new service, creating schemas, or setting up the multi-repo sentry-options workflow.

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 3 projects that use this

  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    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:

    Run automated tools first to find the easy wins:

    line 16
  2. Very specific:

    Run against all key pages (the @axe-core/cli binary is axe, and --save writes JSON results):

    line 25
  3. Distinctive:

    Document all violations with severity (critical, serious, moderate, minor)

    line 30
  4. Distinctive:

    Use WebAIM Contrast Checker

    line 99
  5. Distinctive:

    Test with at least one screen reader:

    line 110

“Common” is measured: kept by at least 6 in 10 of the 6 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

A11y

You are auditing and fixing accessibility issues to WCAG 2.2 AA. Work through each phase in order.

Target: {{args}}

Phase 1: Automated Audit

Run automated tools first to find the easy wins:

On Windows, run these bash snippets via the Bash tool / Git Bash; the package-manager detection and $PM expansion are POSIX-shell syntax that does not work in PowerShell.

command -v bun >/dev/null 2>&1 && PM=bun || (command -v pnpm >/dev/null 2>&1 && PM=pnpm || PM=npm)
  1. Install the axe CLI: $PM add -d @axe-core/cli (provides the axe binary) or run via browser extension
  2. Run against all key pages (the @axe-core/cli binary is axe, and --save writes JSON results):
    npx axe <URL> --include "main" --save axe-report.json
  3. Also run Lighthouse accessibility audit: score and findings
  4. Document all violations with severity (critical, serious, moderate, minor)

Automated tools catch ~30% of issues. Manual testing is required for the rest.

Phase 2: Manual Audit

Spawn 3 parallel subagents to check different categories:

SubagentCategories
1Keyboard navigation: Tab order logical? All interactive elements focusable? No keyboard traps? Focus visible at all times?
2Semantic HTML & ARIA: Headings hierarchical (h1→h2→h3)? Landmark regions present? Images have alt text? Forms have labels? Buttons have accessible names?
3Visual: Color contrast ≥ 4.5:1 for normal text, ≥ 3:1 for large text? No information conveyed by color alone? Text resizes to 200% without breaking?

Each subagent returns: specific violations with file locations and WCAG criteria violated.

Phase 3: Prioritize

Classify all findings:

  • Critical (P0): Users with disabilities cannot complete core tasks: fix before launch
    • Form fields without labels
    • Images without alt text (if content-bearing)
    • Keyboard traps
    • Missing page <title>
  • Serious (P1): Significant barriers: fix in first sprint
    • Contrast failures on body text
    • Missing focus indicators
    • Interactive elements not keyboard accessible
  • Moderate (P2): Inconvenient but workaround exists: fix in first month
    • Missing skip navigation link
    • Inconsistent focus order
    • Missing ARIA labels on icon buttons
  • Minor (P3): Best practice improvements: backlog

Fix all P0 and P1 findings. Present P2 and P3 for user decision.

Phase 4: Fix

For each finding, apply the standard fix:

Missing label on input:

<label for="email">Email address</label>
<input id="email" type="email" />
<!-- or: aria-label="Email address" if no visible label -->

Missing alt text:

<img src="..." alt="Description of image" />
<!-- decorative images: alt="" -->

No focus indicator:

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
/* Never use: outline: none without a replacement */

Keyboard trap (modal):

  • Trap focus inside modal when open using focus-trap-react or equivalent
  • Return focus to trigger element when modal closes
  • Close on Escape key

Contrast failure:

Missing skip link:

<a href="#main-content" class="sr-only focus:not-sr-only">Skip to main content</a>

Phase 5: Screen Reader Testing

Test with at least one screen reader:

  • Windows: NVDA (free) + Chrome
  • macOS/iOS: VoiceOver (built-in) + Safari
  • Test: Navigate each key user flow using only the keyboard and screen reader

Verify:

  • Page title announced on navigation
  • Form labels read correctly
  • Error messages announced when validation fails
  • Modal open/close announced
  • Dynamic content changes announced via aria-live regions

Phase 6: Verify

Re-run automated audit after fixes:

  • axe-core reports zero critical/serious violations
  • Lighthouse accessibility score ≥ 90
  • All interactive elements reachable by Tab key
  • Focus visible on all interactive elements
  • Core user flows completable with keyboard only

Completion Report

  • Automated findings: total count, fixed count, deferred count
  • Manual findings by category
  • P0/P1 fixes applied (list with WCAG criteria)
  • Screen reader test results
  • Lighthouse score before and after

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.