agentleFS
kumaran-iskumaran-is/claude-code-onboarding/.claude/skills/fixing-accessibility/SKILL.md

fixing-accessibility

Skill36 starsChanged 6 months agoMITView on GitHub

Audits and fixes WCAG 2.1 AA accessibility violations in Angular and Flutter — ARIA labels, keyboard navigation, focus management, color contrast, and form error patterns. Use when writing or reviewing UI components, or after completing any screen that has interactive elements.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 1

    Common

    Most of the 9 edited versions we read keep these.

  • 4

    Distinctive

    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:

    After writing any UI screen with interactive elements

    line 25
  2. Distinctive:

    Before opening a PR that touches components

    line 26
  3. Distinctive:

    When a screen reader test reveals issues

    line 27
  4. Distinctive:

    Prefer native HTML elements over ARIA role workarounds

    line 53
  5. Common:

    Do not add ARIA when native semantics already solve the problem

    line 54

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

Iron Law: Fix only the violation — never refactor unrelated code during an accessibility audit, and prefer native HTML/widget semantics over ARIA role workarounds.

Fixing Accessibility

Audits and fixes WCAG 2.1 AA accessibility violations in Angular and Flutter. Produces targeted, minimal fixes — no collateral changes.

When to Use

  • After writing any UI screen with interactive elements
  • Before opening a PR that touches components
  • When a screen reader test reveals issues
  • As a pre-submission gate for App Store / Play Store

Platform Detection

File typeAudit approach
*.dartFlutter — Semantics widgets, touch targets (48dp), focus traversal
*.html, *.ts, *.scssAngular — ARIA, keyboard nav, touch targets (44px), aria-live
No argumentSession mode — apply constraints to all subsequent UI work

Priority Reference

PriorityCategoryWCAG Level
1Accessible names (button, icon, input)AA
2Keyboard access — all interactive elements reachableAA
3Focus management — dialogs trap focus, restore on closeAA
4Semantics — correct roles and structureAA
5Form errors — aria-invalid + aria-describedbyAA
6Announcements — aria-live for dynamic contentAA
7Contrast — 4.5:1 normal text, 3:1 large textAA

Fix Discipline

  • Fix only the violation — do not refactor unrelated code
  • Prefer native HTML elements over ARIA role workarounds
  • Do not add ARIA when native semantics already solve the problem

Output Format

## Accessibility Audit: [file or scope]

### Violations
| Priority | Rule | Line | Snippet | Fix |
|----------|------|------|---------|-----|
| CRITICAL | Accessible name missing | :42 | `<button><svg>...</svg></button>` | Add `aria-label="Close"` |

### Summary
- Critical: N | High: N | Medium: N | Low: N
- Status: PASS / FAIL

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.