agentleFS
erumkatzwanerumkatzwan/agentic-product-starter/.agents/skills/accessibility/SKILL.md

accessibility

Skill5 starsChanged 19 days agoMITView on GitHub

Use when building or changing any screen, component or colour, when an accessibility check is red, before a release, or on request ("is this accessible", "add VoiceOver labels", "fix contrast"). Keeps every app at WCAG 2.2 AA.

143 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tool-rename-deprecation, author-contributions and 10 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.
  • gitpod-ioSkill

    tool-rename-deprecation

    Ensure renamed built-in tool references preserve backward compatibility. Use when renaming a toolReferenceName, tool set referenceName, or any tool identifier. Run on ANY change to tool registration code. Covers legacyToolReferenceFullNames for tools and legacyFullNames for tool sets.

    Also in 5 projects that use this

  • MicrosoftSkill

    author-contributions

    Identify all files a specific author contributed to on a branch vs its upstream, tracing code through renames. Use when asked who edited what, what code an author contributed, or to audit authorship before a merge. This skill should be run as a subagent — it performs many git operations and returns a concise table.

    Also in 7 projects that use this

  • MicrosoftSkill

    auto-perf-optimize

    Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

    Also in 6 projects that use this

  • DepressionCenterSkill

    project-preferences

    Apply repository-specific preferences when planning, implementing, or reviewing changes in this project.

    Also in 6 projects that use this

  • DepressionCenterSkill

    create-media-pack

    Create a coordinated project branding and media pack with three accessible design options, approved vector artwork, image exports, a branding guide, and README integration. Use when asked for a repository media pack, brand kit, or complete project visual identity.

    Also in 5 projects that use this

  • +7 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 129 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Names: every control has a visible label or an accessible name.

    line 13
  2. Distinctive:

    Text size: use the design system fonts, which scale with Dynamic Type and Android font size.

    line 16
  3. Very specific:

    Web app / back office: add the new screen to src/accessibility.test.tsx and to e2e/accessibility.spec.ts.

    line 23
  4. Very specific:

    Website: add new pages to apps/website/e2e/accessibility.spec.ts.

    line 24
  5. Very specific:

    All of these run unless the repository variable ACCESSIBILITY_CHECKS is off.

    line 28

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

Accessibility

The standard is WCAG 2.2 AA in every app (ADR-0011). Checks enforce most of it; this skill covers how to build so they pass and what to check by hand.

1. While building a screen

  • Colours come only from semantic tokens (textPrimary, controlBorder, …). If you change design/tokens.json, node design/build.mjs fails when a pair drops below 4.5:1 (text) or 3:1 (control borders) in light or dark mode. Fix the token, never the check.
  • Names: every control has a visible label or an accessible name. Icon-only buttons: aria-label (web), .accessibilityLabel (iOS), contentDescription (Android).
  • Structure: one h1 per web page, headings in order, landmarks (main, nav). On iOS mark titles with .accessibilityAddTraits(.isHeader); on Android Modifier.semantics { heading() }.
  • Touch targets: at least 44×44 pt on iOS, 48×48 dp on Android, 24×24 CSS px on the web.
  • Text size: use the design system fonts, which scale with Dynamic Type and Android font size. Never fix a height that clips text.
  • State is not colour only: errors have text, not just a red border. Link errors to fields (aria-describedby on the web).
  • Keyboard and focus (web): everything works with Tab, Enter and Space, focus is visible, dialogs trap and return focus.
  • Motion: respect reduced motion settings.

2. Test it

  • Web app / back office: add the new screen to src/accessibility.test.tsx and to e2e/accessibility.spec.ts.
  • Website: add new pages to apps/website/e2e/accessibility.spec.ts.
  • iOS: visit the new screen in AgenticAppUITests/AccessibilityUITests.swift and call audit("screen").
  • Android: visit it in AccessibilityUiTest.kt and call showsThenCheck("tag").

All of these run unless the repository variable ACCESSIBILITY_CHECKS is off. Never turn it off to make a pull request green; only the product owner decides that, for the whole product.

A failing check prints the rule and the element. Fix the app; only skip a rule for a known platform false positive, with a comment saying why.

3. By hand, before a release

Automated tools catch about a third to a half of issues. Once per release, on one real device each:

  1. VoiceOver (iOS) and TalkBack (Android): sign in, sign up and the main flow, eyes closed. Is every element announced with a sensible name, in a sensible order?
  2. Largest text size: nothing clipped or overlapping.
  3. Web with only a keyboard: complete the main flow; focus is always visible.
  4. Dark mode and increased contrast settings.

Record each finding as an issue.

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.