agentleFS
agentsdanceagentsdance/agentskills/skills/accessibility-checker/SKILL.md

accessibility-checker

Skill3 starsChanged 11 months agoApache-2.0View on GitHub

Check and improve web accessibility. Use when the user needs to make websites accessible, fix WCAG violations, or add ARIA attributes.

  • Installs packages

5 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    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:

    Ensure web content is accessible to all users.

    line 8

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

Ensure web content is accessible to all users.

WCAG Checklist

Perceivable

<!-- Images need alt text -->
<img src="logo.png" alt="Company Name">

<!-- Decorative images -->
<img src="decoration.png" alt="" role="presentation">

<!-- Color contrast: 4.5:1 for normal text, 3:1 for large text -->
<p style="color: #595959; background: #fff;">Sufficient contrast</p>

<!-- Don't rely on color alone -->
<span class="error" aria-label="Error">
  <span class="error-icon">!</span> Error message
</span>

Operable

<!-- Keyboard navigation -->
<button onClick={handleClick}>Click me</button> <!-- Good -->
<div onClick={handleClick}>Click me</div> <!-- Bad -->

<!-- Skip link -->
<a href="#main-content" class="skip-link">
  Skip to main content
</a>

<!-- Focus visible -->
<style>
  button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
  }
</style>

<!-- Focus trap for modals -->
<div role="dialog" aria-modal="true" aria-labelledby="dialog-title">
  <h2 id="dialog-title">Dialog Title</h2>
</div>

Understandable

<!-- Form labels -->
<label for="email">Email Address</label>
<input id="email" type="email" aria-describedby="email-help">
<span id="email-help">We'll never share your email.</span>

<!-- Error messages -->
<input
  id="email"
  type="email"
  aria-invalid="true"
  aria-describedby="email-error"
>
<span id="email-error" role="alert">
  Please enter a valid email address
</span>

<!-- Language -->
<html lang="en">

Robust

<!-- Semantic HTML -->
<nav aria-label="Main navigation">
  <ul>
    <li><a href="/">Home</a></li>
    <li><a href="/about">About</a></li>
  </ul>
</nav>

<main id="main-content">
  <article>
    <header>
      <h1>Article Title</h1>
    </header>
    <section>...</section>
  </article>
</main>

ARIA 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>
<div role="tabpanel" id="panel-2" hidden>Content 2</div>

<!-- Accordion -->
<button
  aria-expanded="true"
  aria-controls="section-1"
>
  Section 1
</button>
<div id="section-1">Content</div>

<!-- Live regions -->
<div aria-live="polite" aria-atomic="true">
  {notification}
</div>

<!-- Progress -->
<div role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100">
  50%
</div>

Testing Tools

# axe-core
npm install @axe-core/cli
axe https://example.com

# Lighthouse
lighthouse https://example.com --only-categories=accessibility

# pa11y
npx pa11y https://example.com

React Accessibility

// Focus management
const inputRef = useRef();
useEffect(() => {
  inputRef.current?.focus();
}, []);

// Announce to screen readers
<div role="status" aria-live="polite">
  {message}
</div>

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.