Skip to content

Packs / accessibility-public

html-a11y-check

Check HTML pages for common WCAG failures (missing lang/title/alt/labels, heading skips, empty links and buttons, duplicate ids)

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-accessibility-public

Install

logicpacks pack use accessibility-public/html-a11y-check
get_pack accessibility-public/html-a11y-check

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: local-pythonaxe-cli
  • Checks: 2 in outcome/checks.yaml
  • Code: a11y.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A per-file list of automated WCAG 2.2 failures with the success criterion for each, from static HTML (built site output or saved pages).

Verified by: Bad fixture reports the 9 planted failures with their SC numbers; good fixture reports 0.

Steps

  1. Build the site, then run python3 code/a11y.py dist/.
  2. Fix each failure in the source templates.
  3. Re-run, then do a manual keyboard pass (Tab through the page) and a screen-reader spot check (VoiceOver: Cmd+F5).

Edge cases

  • Content injected by JavaScript is not seen; for SPAs save the rendered HTML first or use axe-core in a browser.
  • alt="" is correct for decorative images and is not flagged.

Don'ts

  • Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.