agentleFS
thesawdawgthesawdawg/agent-skills/accessibility-audit/SKILL.md

accessibility-audit

Skill2 starsChanged 3 months agoMITView on GitHub

Run a WCAG 2.2 (AA and above) accessibility audit of a live web app — automated axe-core scanning cross-referenced against the current WCAG success-criteria table, plus manual verification of what automated tools structurally can't check (keyboard operability, focus order, alt-text quality, timing/motion). Produces a per-criterion conformance report. Use when the user wants an accessibility/a11y audit, a WCAG compliance check, or to know whether a site meets AA before shipping.

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use design-system-audit, design-critique 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.
  • zeon-kunSkill

    design-system-audit

    Scan an existing React/Next.js codebase and extract its implicit design system — colors, typography, spacing, component patterns, and inconsistencies. Use when onboarding to an existing project or before formalizing a design system.

    Also in 4 projects that use this

  • AnthropicSkill

    design-critique

    Get structured design feedback on usability, hierarchy, and consistency. Trigger with "review this design", "critique this mockup", "what do you think of this screen?", or when sharing a Figma link or screenshot for feedback at any stage from exploration to final polish.

    Also in 3 projects that use this

  • dylantarreSkill

    performance-optimization

    Use when animation runs slow, janky, or causes frame drops

    Also in 4 projects that use this

  • AnthropicSkill

    seo-audit

    Run a comprehensive SEO audit — keyword research, on-page analysis, content gaps, technical checks, and competitor comparison. Use when assessing a site's SEO health, when finding keyword opportunities and content gaps competitors own, or when you need a prioritized action plan split into quick wins and strategic investments.

    Also in 3 projects that use this

  • AWSSkill

    prototype

    Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

    Also in 3 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 34 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create the output directory:

    line 39
  2. Very specific:

    Read back {output_dir}/violations.json in full, plus manual findings.

    line 103
  3. Very specific:

    If axe returns an empty violations[] array but incomplete[] is non-empty, treat incomplete entries as "needs manual review," not as passes …

    line 123

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

WCAG-conformance testing of a web application: automated rule scanning against an up-to-date standards engine, manual verification of what that engine can't check by nature, and a report mapped to specific WCAG success criteria — not just a generic bug list.

This skill uses the separately installed dogfood browser runtime, or a native browser tool that can run axe and capture equivalent manual evidence. A structural ARIA snapshot is not an accessibility audit. Use the bundled criteria reference to map evidence to criteria.

Prerequisites

Resolve dogfood from its loaded installation path, never from the caller's working directory. If unavailable, report the missing dependency and stop before launching. Follow its scripts/preflight.sh and scripts/setup.sh --install-browser setup. Record the resulting cached driver's absolute path and repeat DRIVER=... in each shell command; no writable skill installation or preinstalled browser is assumed. Use a fresh output directory or explicitly resume existing findings.

Inputs

The user provides:

  1. Target URL — same discovery pattern as dogfood: check package.json for a dev script, probe common local ports (3000, 5173, 8080, 4200, 5000, 8000), or ask for a staging/public URL if none respond.
  2. Scope — which pages/flows to audit. Default to the site's key pages (home, nav targets, primary forms/flows) rather than every URL, and say explicitly what's in scope.
  3. Conformance target — default to WCAG 2.2 Level AA (includes earlier criteria except obsolete SC 4.1.1, removed in WCAG 2.2 — see references/wcag-criteria.md). Ask only if the user wants AAA on specific criteria, or wants to scope down to A-only.
  4. Output directory (optional, default ./accessibility-audit-output).

Workflow

Work through five phases. Track each as a task.

Phase 1: Plan

  1. Create the output directory:
    {output_dir}/
    ├── screenshots/       # Evidence for violations and manual findings
    ├── violations.json    # Running list of findings (build this as you go)
    └── report.md          # Final report (generated in Phase 5)
  2. Confirm scope and conformance target with the user.
  3. Launch the shared browser driver in the background, same as dogfood:
    DRIVER="/absolute/cache/path/browser-driver.mjs"
    mkdir -p {output_dir}/.browser
    nohup node "$DRIVER" launch --state-dir {output_dir}/.browser > {output_dir}/.browser/launch.log 2>&1 &
    Poll the state directory for READY; inspect launch.log and stop if startup fails. Close only this run’s browser in Phase 5.

Phase 2: Automated Scan

For each page in scope:

  1. Navigate:
    DRIVER="/absolute/cache/path/browser-driver.mjs"
    node "$DRIVER" navigate --state-dir {output_dir}/.browser --url "https://example.com/page"
  2. Run the axe scan, scoped to the conformance target's tags (default shown; drop wcag22aa for a 2.1-only target, or add nothing extra for AAA — axe's AAA tags are wcag2aaa/wcag21aaa, add them explicitly only where the user asked for AAA on a specific criterion):
    DRIVER="/absolute/cache/path/browser-driver.mjs"
    node "$DRIVER" axe --state-dir {output_dir}/.browser --tags wcag2a,wcag2aa,wcag21a,wcag21aa,wcag22aa
  3. For each violation in the result's violations[] array, record: id, impact, tags (map to WCAG SC via references/wcag-criteria.md), description, help/helpUrl, and every entry in nodes[] (target selector, html, failureSummary).
  4. Screenshot flagged elements — use annotate to badge and screenshot the page so violations have visual evidence, same as dogfood:
    DRIVER="/absolute/cache/path/browser-driver.mjs"
    node "$DRIVER" annotate --state-dir {output_dir}/.browser --path {output_dir}/screenshots/page-N.png
  5. Append each violation to {output_dir}/violations.json.

Phase 3: Manual Verification

Automated tools cover an estimated 30-50% of WCAG failures by nature — the rest require deliberate manual checks. Do these for every page/flow in scope, using the same driver:

  1. Keyboard-only navigation (2.1.1, 2.1.2, 2.4.3, 2.4.7): repeatedly press --key Tab through the page. Verify every interactive element is reachable, focus order matches visual/logical order, focus is always visible, and nothing traps focus.
    DRIVER="/absolute/cache/path/browser-driver.mjs"
    node "$DRIVER" press --state-dir {output_dir}/.browser --key Tab
    DRIVER="/absolute/cache/path/browser-driver.mjs"
    node "$DRIVER" screenshot --state-dir {output_dir}/.browser --path {output_dir}/screenshots/focus-N.png
  2. Screen-reader semantics (1.3.1, 2.4.6, 4.1.2): dump the accessibility tree and review landmark roles, heading hierarchy, and whether custom/ARIA controls expose sensible names and roles.
    DRIVER="/absolute/cache/path/browser-driver.mjs"
    node "$DRIVER" snapshot --state-dir {output_dir}/.browser
  3. Alt-text quality (1.1.1): axe only flags missing alt text. Read the annotate screenshots yourself (you're multimodal) and judge whether existing alt text is meaningful, not just present — "image123.png" or "photo" is a failure axe won't catch.
  4. Reflow at 400% zoom (1.4.10): resize the effective viewport (or use scroll + screenshot at a narrow width) and confirm no content loss or two-dimensional scrolling.
  5. Timing, motion, flashing (2.2.1, 2.2.2, 2.3.1): observe any auto-advancing carousels, countdown timers, or animations over a few seconds; confirm pause/stop controls exist and nothing flashes more than 3×/second.
  6. Error identification and suggestion (3.3.1, 3.3.2, 3.3.3): submit forms with invalid/empty input, same as dogfood's form-validation testing, and judge whether errors are identified in text with a usable suggestion — not just a red border.
  7. Cross-page consistency (3.2.3, 3.2.4, 3.2.6), if scope spans multiple pages: confirm navigation, component labeling, and help mechanisms stay in the same relative order and use consistent names across pages.

Record each manual finding the same way as automated ones: WCAG SC, severity, evidence, expected vs. actual.

Phase 4: Categorize

  1. Read back {output_dir}/violations.json in full, plus manual findings.
  2. De-duplicate — the same underlying issue (e.g. a shared header component) often triggers on every page; merge those into one finding with all affected URLs listed, don't report it N times.
  3. For every WCAG SC actually touched by scope, assign a status: Pass, Fail, Needs manual review (axe can't be sure — e.g. it flags "check that this makes sense" rules), or N/A (criterion doesn't apply — e.g. no audio/video content means the media criteria are N/A).
  4. Sort automated violations by axe impact (critical → serious → moderate → minor); sort manual findings by your own judgment of severity (Blocker/Major/Minor).

Phase 5: Report

  1. Fill templates/accessibility-report-template.md: executive summary, the full success-criteria checklist for the audited scope, violation details with screenshots, manual findings, not-tested section. Save to {output_dir}/report.md.
  2. State the overall conformance verdict explicitly and plainly — does this scope currently meet the target level, or not, and by how much (N violations across M criteria)? Don't bury this in the middle of the report.
  3. Close the browser session:
    DRIVER="/absolute/cache/path/browser-driver.mjs"
    node "$DRIVER" close --state-dir {output_dir}/.browser
  4. Surface the report and Critical/Serious violation screenshots to the user — the evidence is the point, same as dogfood.

Notes on axe-core's coverage

  • axe-core is versioned via npm (dogfood/scripts/package.json) — npm update axe-core in that directory pulls newer rules as the library evolves. This skill doesn't hardcode rule logic; it defers entirely to whatever axe-core version is installed.
  • A zero-violations automated scan is not a conformance guarantee — say so in the report. It means "no automated rule fired," not "meets WCAG." The Phase 3 manual checks are not optional filler; report both together.
  • If axe returns an empty violations[] array but incomplete[] is non-empty, treat incomplete entries as "needs manual review," not as passes — axe uses incomplete specifically for checks it can't resolve automatically (e.g. some color-contrast cases behind dynamic styles).

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.