agentleFS
hi-donwihi-donwi/Donwi-Skills/skills/accessibility-audit/SKILL.md

accessibility-audit

Skill0 starsChanged 12 days agoMITView on GitHub

Audit interfaces against WCAG 2.2 AA: keyboard navigation, ARIA semantics, accessible names, focus states, color contrast, and assistive tech support.

62 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use design-system-extract, design-system-audit and 7 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.
  • OneviumSkill

    design-system-extract

    从品牌规范、代码库、现有网站、Figma 或截图中提取颜色、排版、间距、圆角、阴影、动效和断点等设计 token,并输出符合项目格式的结构化 token 文件。用户要求“提取设计系统”“整理 token”“匹配现有品牌”或从参考物反推视觉规范时使用;无法从来源确认的值不得猜测。

    Also in 3 projects that use this

  • jpoindexterSkill

    design-system-audit

    Audit code for design system violations - grid spacing, tokens, existing components

    Also in 4 projects that use this

  • SUDARSHANCHAUDHARISkill

    flaky-test-triage

    Diagnoses inconsistent test results by separating product nondeterminism, automation defects, shared data, timing, infrastructure, environment, order, and concurrency effects.

    Also in 3 projects that use this

  • tekumaraSkill

    api-design-review

    Reviews REST API design by inventorying routes, finding overlapping functionality, comparing payloads and pagination, and checking resource naming, URL structure, identifiers, errors, idempotency, and timestamps. Use when asked to review API routes, compare endpoints, find redundant or superseding operations, assess contract consistency, or run a REST API design review.

    Also in 3 projects that use this

  • BufferoverflovvSkill

    observability-setup

    Add production observability to a FastMCP server: request IDs, slow-request logging, structured log fields, and optional Prometheus metrics. Use when: hardening logging for production, adding request tracing or correlation IDs, setting up slow-request alerts, adding a /metrics endpoint, or improving structured log output beyond the base middleware.

    Also in 3 projects that use this

  • patrickserranoSkill

    performance-audit

    Audit and improve SwiftUI runtime performance. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory usage, excessive view updates, or layout thrash in SwiftUI apps.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 52 edited versions we read keep these.

  • 2

    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:

    Before shipping anything user-facing

    line 22
  2. Very specific:

    Names and roles: Every control has an accessible name that says what it does.

    line 43
  3. Distinctive:

    Scan last, then judge: Run axe. Every finding is triaged, not auto-fixed: some are false positives and some point at a deeper structural …

    line 59

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

Overview

Automated tooling finds roughly a third of accessibility defects, and it is the easy third. The rest are things only operating the interface reveals: a focus order that makes no sense, a name that reads as "button", an error nobody is told about. So the scan comes last here, not first.

When to use

  • Asked to audit, check, or fix accessibility on an existing surface
  • An accessibility complaint, bug report, or procurement questionnaire arrives
  • Before shipping anything user-facing
  • An axe/Lighthouse run reported issues and someone must judge them

Hand off when

NeedSkill
Building or restructuring the componentfrontend-ui-engineering
Fixing contrast at the palette leveldesign-tokens
Reflow, zoom, and target sizing as layout workresponsive-layout
Driving a real browser to reproducewebapp-testing

Process

Work in this order. Each pass finds a class of defect the next one cannot see.

  1. Keyboard only. Unplug the mouse. Tab through the whole surface: can you reach every control, operate it, and get back out? Is the order the visual order? Does focus ever vanish or get trapped? This single pass finds more than any scanner.
  2. Structure. Headings in order with no levels skipped, one h1, landmarks present, lists marked up as lists, tables with headers. Read the page with CSS disabled — if the order stops making sense, the DOM order is wrong.
  3. Names and roles. Every control has an accessible name that says what it does. "Button", "link", "Click here" and an unlabelled icon are all the same defect. Prefer a native element over a role; a div with role="button" owes you keyboard handling, focus and state that the native element gives free.
  4. Focus. Visible at 3:1 against its surround, never removed without a replacement. Moved deliberately when a dialog opens, and restored to the trigger when it closes.
  5. Colour and contrast. Text 4.5:1, large text and UI boundaries 3:1. Then the harder one: every state that colour conveys also carries an icon, a label, or text.
  6. Motion and zoom. prefers-reduced-motion honoured. Readable at 200% zoom and usable at 400% with no horizontal scroll and nothing clipped.
  7. Dynamic behaviour. Loading, error, empty and success states announced, not merely rendered. An error that only turns a border red does not exist for a screen-reader user.
  8. Check the 2.2 additions. Target size (24px floor, 2.5.8), dragging movements (2.5.7), focus not obscured (2.4.11), consistent help (3.2.6), redundant entry (3.3.7), and accessible authentication (3.3.8) are new in WCAG 2.2 and miss-able by habits formed on 2.1. Details and thresholds: references/wcag-22-additions.md.
  9. Scan last, then judge. Run axe. Every finding is triaged, not auto-fixed: some are false positives and some point at a deeper structural problem than the rule describes.
  10. Report by impact. "Checkout cannot be completed by keyboard" is a different item from "decorative icon missing aria-hidden". Order by who is blocked, not by rule count.

Red flags

  • The audit begins and ends with an automated scan
  • outline: none with no replacement indicator
  • role/tabindex added to a div that should have been a button or a
  • aria-label on an element that already had visible text, silently replacing it
  • Placeholder text used as the label
  • A dialog that leaves focus behind it, or does not return focus on close
  • aria-live on a region that is added to the DOM at the same moment — nothing is announced
  • Colour as the only indicator of state, validity, or selection
  • Fixing the symptom the rule names instead of the structure that caused it
  • "We will do accessibility before launch" — retrofitting costs several times more

Verification

  • Every interactive element reachable and operable by keyboard alone
  • Focus visible everywhere, order matches the visual order, never trapped
  • Heading outline is correct with no skipped levels; landmarks present
  • Every control has an accessible name that describes its action
  • Contrast passes for text and for UI boundaries; no colour-only signalling
  • State changes and errors are announced, not just rendered
  • Usable at 400% zoom, and with prefers-reduced-motion set
  • Walked once with a real screen reader, not only with a scanner
  • Target size, drag alternatives, and the other WCAG 2.2 additions pass
  • Findings are reported by user impact with a concrete fix each

References

  • references/audit-procedure.md — the nine passes with exact checks and what each one catches
  • references/common-failures.md — the recurring defects, their WCAG criterion, and the fix
  • references/assistive-tech.md — screen readers, reduced motion, forced colors, zoom
  • references/wcag-22-additions.md — the nine criteria added in 2.2, threshold numbers, and level

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.