agentleFS
Vimalk0703Vimalk0703/shipworthy/skills/frontend/accessibility/SKILL.md

accessibility

Skill6 starsChanged 8 months agoMITView on GitHub

WCAG 2.1 AA baseline — semantic HTML, ARIA labels, color contrast, keyboard navigation, screen reader compatibility, and focus management.

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 9 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

  • kpbraySkill

    best-practices

    Applies Power BI best practices, BPA rules, and enterprise standards. Use for quality validation, naming conventions, and performance optimization.

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

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 9

    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:

    Every user-facing interface must meet WCAG 2.1 Level AA.

    line 11
  2. Distinctive:

    Use the correct element, not a styled div:

    line 15
  3. Distinctive:

    Every interactive element needs an accessible name

    line 27
  4. Distinctive:

    Never use ARIA when native HTML semantics suffice

    line 32
  5. Distinctive:

    Never convey information through color alone (add icons, text, patterns)

    line 37
  6. Distinctive:

    Ensure focus indicators are visible against all backgrounds

    line 38
  7. Distinctive:

    Every interactive element reachable via Tab

    line 42
  8. Very specific:

    Every input has a <label> (linked via for/id)

    line 57
  9. Distinctive:

    When modals open, focus moves to the modal

    line 64
  10. Distinctive:

    When modals close, focus returns to the trigger

    line 65

“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

Baseline: WCAG 2.1 AA

Every user-facing interface must meet WCAG 2.1 Level AA. This is not optional — it's a legal requirement in many jurisdictions and the right thing to do.

Semantic HTML

Use the correct element, not a styled div:

  • <button> for actions (not <div onClick>)
  • <a> for navigation (not <span onClick>)
  • <nav> for navigation regions
  • <main> for primary content
  • <header>, <footer>, <section>, <article> for document structure
  • <h1>-<h6> in proper order (no skipping levels)
  • <ul>/<ol> for lists
  • <table> for tabular data (not for layout)

ARIA Labels

  • Every interactive element needs an accessible name
  • aria-label for elements without visible text
  • aria-labelledby to reference visible text
  • aria-describedby for additional context
  • aria-hidden="true" for decorative elements
  • Never use ARIA when native HTML semantics suffice

Color and Contrast

  • Text contrast ratio: 4.5:1 minimum (3:1 for large text)
  • Never convey information through color alone (add icons, text, patterns)
  • Ensure focus indicators are visible against all backgrounds

Keyboard Navigation

  • Every interactive element reachable via Tab
  • Logical tab order (follows visual layout)
  • Escape closes modals/popups
  • Enter/Space activates buttons
  • Arrow keys for menus, tabs, and lists
  • Visible focus indicator on all interactive elements

Images

  • Meaningful images: alt text describing the content
  • Decorative images: alt="" (empty alt, not missing alt)
  • Complex images (charts, diagrams): detailed aria-describedby

Forms

  • Every input has a <label> (linked via for/id)
  • Error messages linked to inputs via aria-describedby
  • Required fields marked with aria-required="true"
  • Form validation errors announced to screen readers

Focus Management

  • When modals open, focus moves to the modal
  • When modals close, focus returns to the trigger
  • Focus trapped inside modals (can't tab to background)
  • Route changes announce the new page to screen readers

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.