agentleFS
basidiocarpbasidiocarp/pileus/.claude/skills/accessibility/SKILL.md

accessibility

Skill0 starsChanged 6 months agoMITView on GitHub

Implements and audits accessible frontend experiences.

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

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

  • 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

  • DepressionCenterSkill

    project-preferences

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

    Also in 6 projects that use this

  • MicrosoftSkill

    chat-perf

    Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

    Also in 5 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

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

  • 0

    Common

    Most of the 112 edited versions we read keep these.

  • 2

    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:

    Rule of thumb: Use native HTML first. Only add ARIA when no semantic equivalent exists.

    line 61
  2. Distinctive:

    All interactive elements must be focusable

    line 66

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

Contents

  • When to Use
  • Core Principles (POUR)
  • WCAG 2.2 Quick Reference
  • ARIA Essentials
  • Keyboard Navigation
  • Color Contrast
  • Common Patterns
  • Testing
  • Best Practices
  • References

When to Use

  • Implementing WCAG 2.2 Level AA or AAA compliance
  • Building screen reader accessible interfaces
  • Adding keyboard navigation to interactive components
  • Conducting accessibility audits and fixing violations
  • Supporting reduced motion and high contrast preferences
  • Building mobile accessibility features (VoiceOver, TalkBack)

Core Principles (POUR)

PrincipleQuestionKey Criteria
PerceivableCan users perceive the content?Alt text, captions, contrast
OperableCan users operate the interface?Keyboard access, timing, navigation
UnderstandableCan users understand the content?Readable, predictable, error help
RobustDoes it work with assistive tech?Valid markup, ARIA, name/role/value

WCAG 2.2 Quick Reference

LevelCriterionDescription
A1.1.1Non-text content has text alternatives
A1.3.1Info and relationships programmatically determinable
A2.1.1All functionality keyboard accessible
A2.4.1Skip to main content mechanism
AA1.4.3Contrast ratio 4.5:1 (text), 3:1 (large text)
AA1.4.11Non-text contrast 3:1
AA2.4.7Focus visible
AA2.5.8Target size minimum 24x24px (NEW in 2.2)

For full per-principle checklists, see references.

ARIA Essentials

  • Roles: Define element purpose (button, dialog, navigation)
  • States: Indicate condition (aria-expanded, aria-selected, aria-disabled)
  • Properties: Describe relationships (aria-labelledby, aria-describedby)
  • Live regions: Announce dynamic changes (aria-live="polite")

Rule of thumb: Use native HTML first. Only add ARIA when no semantic equivalent exists.

Keyboard Navigation

  • Tab order must follow visual order
  • All interactive elements must be focusable
  • Focus indicators must be visible (never outline: none without replacement)
  • Modals must trap focus and restore it on close
  • Skip links for bypassing repetitive content
  • Touch targets: minimum 44x44px (AAA) or 24x24px (AA in 2.2)

Color Contrast

Text TypeAA RatioAAA Ratio
Normal text (<18pt)4.5:17:1
Large text (≥18pt or ≥14pt bold)3:14.5:1
UI components and graphics3:1—

Common Patterns

Accessible Button

<button
  disabled={disabled || isLoading}
  aria-busy={isLoading}
  aria-disabled={disabled || isLoading}
  className="focus-visible:ring-2 focus-visible:ring-offset-2 min-h-[44px] min-w-[44px]"
>
  {isLoading ? <><span className="sr-only">Loading</span><Spinner aria-hidden /></> : children}
</button>

Skip Navigation

<a href="#main-content" className="sr-only focus:not-sr-only focus:absolute focus:z-50">
  Skip to main content
</a>

Live Region

<div role="status" aria-live="polite" aria-atomic="true" className="sr-only">
  {message}
</div>

Accessible Form Field

<label htmlFor="email">
  Email <span className="sr-only">(required)</span>
</label>
<input
  id="email" type="email" required
  aria-required="true"
  aria-invalid={!!error}
  aria-describedby={error ? "email-error" : "email-hint"}
/>

Testing

Automated Tools

npx @axe-core/cli https://example.com
npx pa11y https://example.com
npx lighthouse https://example.com --only-categories=accessibility

Note: Automated testing catches only ~30-50% of issues. Manual testing required.

Screen Reader Testing

Screen ReaderPlatformBrowserMarket Share
JAWSWindowsChrome/IE~40%
NVDAWindowsFirefox/Chrome~31%
VoiceOvermacOS/iOSSafari~15%
TalkBackAndroidChrome~10%

For screen reader commands and testing checklists, see references/screen-reader-testing.md.

Best Practices

  1. Use semantic HTML first — prefer native elements over ARIA
  2. Keyboard first — design interactions to work without a mouse
  3. Don't disable focus styles — style them, don't remove them
  4. Provide text alternatives — all non-text content needs descriptions
  5. Support zoom — content should work at 200% zoom
  6. Announce changes — use live regions for dynamic content
  7. Respect preferences — honor prefers-reduced-motion and prefers-contrast
  8. Test with real assistive tech — not just automated tools

References

Audit & Compliance

  • wcag-audit-patterns.md — Audit methodology, violation checklist, remediation patterns
  • perceivable-checklist.md — WCAG Principle 1 checklist
  • operable-checklist.md — WCAG Principle 2 checklist
  • understandable-checklist.md — WCAG Principle 3 checklist
  • robust-checklist.md — WCAG Principle 4 checklist
  • remediation-patterns.md — Fix patterns for common issues
  • automated-testing.md — axe-core integration examples

ARIA & Screen Readers

  • screen-reader-testing.md — VoiceOver, NVDA, JAWS commands and testing checklists
  • screen-reader-commands.md — Full command reference
  • aria-patterns.md — Modal, live region, and tab patterns

Mobile & Guidelines

  • mobile-accessibility.md — Mobile accessibility guidance for iOS, Android, and React Native
  • wcag-guidelines.md — WCAG 2.2 routing guide into the per-principle checklists

Additional Resources

  • Testing Checklists

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.