agentleFS
pvnarppvnarp/agent-skills/skills/accessibility/SKILL.md

accessibility

Skill1 starsChanged 9 months agoMITView on GitHub

Audits web and mobile applications for accessibility compliance (WCAG 2.1). Checks keyboard navigation, screen reader support, color contrast, focus management, and semantic markup. Use when reviewing UI code, building new components, or preparing for accessibility audits.

70 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use web-quality-audit, core-web-vitals and 5 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.
  • RodrigoTomeESSkill

    web-quality-audit

    Comprehensive web quality audit covering performance, accessibility, SEO, and best practices. Use when asked to "audit my site", "review web quality", "run lighthouse audit", "check page quality", or "optimize my website".

    Also in 8 projects that use this

  • thisisAhsanIqbalSkill

    core-web-vitals

    Audits HTML patterns that affect Core Web Vitals (LCP, CLS, INP). Checks for layout shift causes, largest contentful paint blockers, and interaction responsiveness issues. Use when optimising page performance or fixing Google PageSpeed Insights warnings.

    Also in 10 projects that use this

  • agentset-aiCursor rule

    animations

    Animations Rules and Best Practices

    Also in 3 projects that use this

  • YepAPISkill

    background-jobs

    Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

    Also in 3 projects that use this

  • pluginagentmarketplaceSkill

    performance

    Optimize application performance through caching strategies, load balancing, database scaling, and monitoring. Build systems handling thousands of concurrent users.

    Also in 13 projects that use this

  • MindrallySkill

    prisma

    Expert in Prisma ORM with type-safe database operations and schema design

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 1

    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:

    Use the right element. It gets you keyboard and screen reader support for free.

    line 38
  2. Very specific:

    Rule: If you're adding ARIA attributes to make a <div> behave like a button, you should just use a <button>.

    line 51

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

Accessibility isn't a feature - it's a quality bar. If it doesn't work with a keyboard, a screen reader, or low vision, it's broken.

Quick Checks (Do These First)

1. Keyboard Navigation

  • Tab through the entire page - can you reach every interactive element?
  • Tab order follows visual order (no jumping around)
  • Focus indicator is visible on every focused element
  • Escape closes modals/popups and returns focus to trigger
  • Enter/Space activates buttons and links
  • Arrow keys work in menus, tabs, and custom widgets
  • No keyboard traps (can always Tab away from any element)

2. Screen Reader

  • Every image has alt text (or alt="" for decorative images)
  • Form inputs have associated <label> elements
  • Buttons and links have descriptive text (not "Click here")
  • Page has a single <h1>, heading hierarchy doesn't skip levels
  • Dynamic content changes announced (ARIA live regions)
  • Custom components have appropriate ARIA roles and states

3. Visual

  • Text contrast ratio ≥ 4.5:1 (normal text) or ≥ 3:1 (large text)
  • Information not conveyed by color alone (add icons, patterns, text)
  • Text resizable to 200% without loss of content
  • UI functional at 320px width (mobile) without horizontal scroll
  • Animations respect prefers-reduced-motion

Semantic HTML

Use the right element. It gets you keyboard and screen reader support for free.

NeedUseNOT
Navigation<nav><div class="nav">
Button<button><div onClick> or <a href="#">
Link (navigate)<a href="..."><button> or <span onClick>
List<ul>/<ol>Divs with bullet characters
Heading<h1>-<h6><div class="heading">
Form field<input> + <label><div contenteditable>
Table data<table> + <th>Divs in a grid layout
Main content<main><div id="content">

Rule: If you're adding ARIA attributes to make a <div> behave like a button, you should just use a <button>.

ARIA Usage

ARIA is a last resort, not a first choice. Semantic HTML first.

When ARIA Is Needed

  • Custom widgets with no HTML equivalent (tabs, combobox, tree view)
  • Dynamic content updates (live regions)
  • Relationships between elements that markup can't express

Common Patterns

<!-- Tabs -->
<div role="tablist">
  <button role="tab" aria-selected="true" aria-controls="panel-1">Tab 1</button>
  <button role="tab" aria-selected="false" aria-controls="panel-2">Tab 2</button>
</div>
<div role="tabpanel" id="panel-1">Content 1</div>

<!-- Modal -->
<div role="dialog" aria-modal="true" aria-labelledby="modal-title">
  <h2 id="modal-title">Modal Title</h2>
  <!-- Focus trapped inside modal -->
</div>

<!-- Live region (for dynamic updates) -->
<div aria-live="polite">
  <!-- Screen reader announces changes here -->
  3 items added to cart
</div>

<!-- Loading state -->
<button aria-busy="true" aria-disabled="true">
  <span aria-hidden="true">⏳</span> Loading...
</button>

Focus Management

ScenarioFocus Should Go To
Modal opensFirst focusable element inside modal
Modal closesElement that triggered the modal
Item deleted from listNext item in list (or previous if last)
Page navigation (SPA)Page heading or main content
Error on form submitFirst field with an error
Accordion expandsThe expanded content

Color Contrast

ElementMinimum RatioCheck
Normal text (< 18px)4.5:1Required
Large text (≥ 18px bold or ≥ 24px)3:1Required
UI components (borders, icons)3:1Required
Decorative elementsNo requirement-

Tools: Chrome DevTools (Inspect → color picker shows ratio), axe DevTools extension, WebAIM Contrast Checker.

Testing Tools

ToolWhat It Catches
axe DevTools (browser extension)~30-40% of WCAG issues automatically
Lighthouse AccessibilityHigh-level score + common issues
Keyboard (manual)Navigation, focus, traps
Screen reader (manual)Content order, announcements, labels
Zoom to 200% (manual)Layout issues at larger text sizes

Automated tools catch < 50% of issues. Manual testing with keyboard + screen reader is required.

Output

[CRITICAL] - [element/page] - [issue] - [WCAG criterion] - [fix]
[SERIOUS]  - [element/page] - [issue] - [WCAG criterion] - [fix]
[MODERATE] - [element/page] - [issue] - [WCAG criterion] - [fix]
[MINOR]    - [element/page] - [issue] - [WCAG criterion] - [fix]

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.