agentleFS
milad-ahmdmilad-ahmd/agent-skills/skills/a11y-fixer/SKILL.md

a11y-fixer

Skill5 starsChanged 17 days agoMITView on GitHub

Audits web and mobile UI code against WCAG 2.2 AA and fixes accessibility issues directly in the source, including alt text, labels, contrast, keyboard navigation, focus, ARIA, and semantics. Use when the user asks for an accessibility audit, a11y fixes, WCAG compliance, or screen-reader support.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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. Very specific:

    Run any available tooling first: eslint-plugin-jsx-a11y, npx @axe-core/cli <url>, Lighthouse, or the platform's accessibility inspector.

    line 12
  2. Distinctive:

    Don't change visual design beyond what compliance requires.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

A11y Fixer

Find accessibility issues and fix them in code. Don't just list them.

1. Audit

Run any available tooling first: eslint-plugin-jsx-a11y, npx @axe-core/cli <url>, Lighthouse, or the platform's accessibility inspector. Then review the components manually against this checklist:

AreaCheck (WCAG 2.2 AA)
ImagesMeaningful alt; decorative → alt=""; icon buttons have accessible names
FormsEvery input has a <label>/aria-label; errors linked via aria-describedby; required fields marked
SemanticsReal <button>/<a> (no clickable <div>), one <h1>, ordered headings, landmarks (main, nav)
KeyboardEverything reachable & operable with Tab/Enter/Space/Esc; no keyboard traps; logical order
FocusVisible focus style (never bare outline: none); focus moves into modals and returns on close
ColorText contrast ≥ 4.5:1 (3:1 large text/UI); info not conveyed by color alone
ARIAPrefer native HTML; no invalid roles; aria-expanded/aria-controls on toggles; live regions for async updates
Motion & mediaRespect prefers-reduced-motion; captions for video; no autoplay with sound
TargetsTouch targets ≥ 24×24 CSS px (44pt iOS / 48dp Android recommended)
MobileReact Native accessibilityLabel/accessibilityRole; Flutter Semantics; SwiftUI .accessibilityLabel

2. Report

A table with severity (🔴 blocks users · 🟠 serious · 🟡 moderate), file:line, the WCAG criterion and the fix.

3. Fix

  • Apply the fixes in the project's own style: existing components, design tokens, i18n for any new strings.
  • For contrast problems, suggest the closest compliant color from the existing palette.
  • Don't change visual design beyond what compliance requires. Flag larger design decisions for the user instead.
  • Re-run the linters and tests afterwards. Report what was fixed and what still needs manual testing with a screen reader (VoiceOver, NVDA or TalkBack).

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.