a11ied

Source on GitHub

a11ied
Menu

AI agents

Audit a site with AI agents

a1 audit organizes a WCAG audit that your own AI coding agent carries out. It splits the site into small units of work, hands them to the agent's workers, saves every result as it arrives, and writes a report you can hand to a client. Browse an example report.

Who does the testing

Your AI coding agent does. a1 audit does not start agents and does not call a model. It keeps the records: it stores the list of work, gives a unit to whoever asks for one, checks each result that comes back, and builds the report.

Which agents
Any coding agent that can run terminal commands or use the MCP server: Claude Code, Codex, Cursor, GitHub Copilot, Windsurf, and others. The a11ied-audit skill teaches the agent the procedure.
How they start
You ask your agent for an audit. That agent leads: it sets the scope, then starts workers as its own subagents, usually three to six. An agent that cannot start subagents does the units itself, one after another.
What a worker does
It runs a1 audit next to get a unit, tests the page with the other a1 commands, and runs a1 audit submit with its results. Then it asks for the next unit. Over MCP it calls audit_next and audit_submit to do the same.
Without the skill
Open several agent sessions yourself and tell each one to loop on a1 audit next under its own worker name. The work packet it prints contains the instructions.

To see what comes out, browse the example report. It is a real audit of the docs' practice page, a demo team settings screen, tested by three workers and edited by a lead agent.

Start an audit

Install the agent skills, then ask your agent.

Audit https://example.com against WCAG 2.2 AA with a11ied. Do not submit the contact form. Use four workers.

The lead agent runs these commands first. You can run them yourself.

a1 audit init https://example.com --rule "Do not submit the contact form"
a1 audit discover
a1 audit scan
a1 audit status
init
Creates the audit. --rule states something workers must not do, and every unit of work repeats it. --access says how to reach the target, such as where the test account is.
discover
Finds the site's pages and adds them.
scan
Runs the automated checks on every page.
status
Shows how much is done.

An audit lives in .a11ied/audits/<id>/: a database, a folder of screenshots, and the report. It survives a crashed agent, a closed terminal, and a restart.

How the work is divided

Page
One thing to test: a page, a screen, a state of one such as an open dialog, or a flow such as checkout.
Test pass
The criteria tested with one kind of interaction: semantics, keyboard, visual, media, forms, pointer, and consistency across pages.
Unit
One pass on one page, such as P3.keyboard. A worker claims a unit, tests it, and submits an outcome for each of its criteria.
Finding
One defect. The same defect on ten pages is one finding with ten occurrences.

A page is loaded and exercised once per pass, not once per criterion.

Choose the scope

The default is WCAG 2.2 Level AA: 55 criteria.

A whole site
a1 audit init <url>, then a1 audit discover. Remove pages with a1 audit page exclude <id> --reason "...". On a large site, keep one page per template plus the pages in key tasks.
One page
a1 audit init <url> --page
A state
a1 audit page add <url> --kind state --name "Menu open" --notes "Activate the Menu button"
A flow
--kind flow, with the steps in --notes.
Chosen criteria
--criteria 1.4.3,2.4.7
One kind of testing
--passes keyboard,forms
Another level or version
--level A, --level AAA, --wcag 2.1

Criteria that compare pages, such as 3.2.3 Consistent Navigation, need at least two pages. A one-page audit reports them as not evaluated.

What a1 does and what a worker judges

Done by a1
Finding pages. axe failures, which become findings. Measurements: tab order, focus styles, overflow at 320 pixels wide and at 200 percent zoom, target sizes, and lists of media and forms. Claims, progress, and the report.
Judged by a worker
Every pass and every "not applicable". Whether an automated finding is real. Everything a scanner cannot see, such as whether alt text describes the image or an error message helps. Severity and the fix.

The scan never passes a criterion. Its measurements reach workers as facts to check.

What each worker does

A worker is one of your agent's subagents, or an agent session you opened, running a loop: claim a unit, test it, submit, repeat. Workers with different names take different units.

a1 audit next --worker w1
a1 audit submit P1.keyboard --worker w1 --file result.json
next
Prints the work packet: the page, the rules, the procedure, each criterion with when it fails, the scan's measurements, findings already recorded, and a template for the submission.
submit
Takes one JSON document and accepts or rejects it whole. A rejection lists every problem, such as a criterion with no outcome or a finding that does not say why it fails its criterion. For a finding on a web page, the worker gives a selector and submit takes the screenshot. A worker that confirms an automated finding describes it from what it observed, so the report does not repeat a scanner's rule text.

VoiceOver, NVDA, and a physical device can each serve one worker at a time. When the audit uses one, give one worker --pass semantics and the others --not-pass semantics. The simulated screen reader runs in parallel.

Watch progress

a1 audit status
a1 audit dashboard
a1 audit findings
a1 audit log --unit P3.forms

dashboard serves a live page on your machine: pages by test pass, which worker holds what, what is blocked and why, the findings so far, and a link to the report in progress. It updates every five seconds without reloading, and Pause updates stops the updates while you read or copy from it. When you run an audit from a chat with your agent, the agent offers to start the dashboard for you and gives you its address.

When something is stuck

A worker died
Nothing is lost. Its claim ends after 20 minutes without activity and the unit returns to the queue. A worker that returns under the same name gets its unit back.
A unit cannot be tested
The worker blocks it with a reason, and work on other units continues. Fix the cause, then a1 audit reopen <unit> --reason "...".
One criterion cannot be decided
The worker records it as cannot-tell with the reason. The report lists it under Not verified.
A rule forbids part of a test
A rule against sending a form still lets workers test its validation. Only what lies past the forbidden step, such as the success message, is cannot-tell.
A state could not be reached
The scan lists the controls that open a menu, dialog, or tab, and every submission accounts for each. One a worker could not reach is recorded as not tested.
A tool or device is missing
Record it for the whole audit with a1 audit limitation "..." --criterion 4.1.2. The report lists it under Not verified.
A unit keeps failing
After three abandoned attempts it blocks itself. Read a1 audit log --unit <id>.
A result looks wrong
a1 audit reopen <unit> queues it again. a1 audit finding dismiss, merge, and update correct findings.

The report

a1 audit report

This writes audit-report.html, .md, and .json to the audit's report/ folder. The HTML file is self-contained, with screenshots inside it. Print it from a browser for a PDF. The example report shows the HTML file as it is written, and the same audit is there as Markdown.

Summary
The result in one statement, findings by severity, and criteria by outcome.
What to fix first
Findings ordered by severity, then by how many pages they affect.
Findings
For each: the problem, why it fails each criterion, who it affects, the fix, where it occurs, and a screenshot of the element with an outline around it.
Results by criterion
Fails, Passes, Not applicable, Not verified, or Not evaluated, for every criterion in scope.
Not verified
What could not be established, and why.
Scope and method
The pages and states tested, what was excluded, and how the testing was done.

A report written before every unit is done is marked interim. A report never states conformance while a criterion is failing, unfinished, or not verified.

Mobile apps

a1 audit init "Acme iOS 4.2" --platform ios --access "Simulator: iPhone 16"
a1 audit page add "Tab bar > Search" --name "Search"

Tracking, workers, findings, and the report work the same way. There is no automated scan, and a1 does not drive the app. Workers operate it with the platform's own tools, such as xcrun simctl or adb. Give each worker its own simulator or device.

On Android, a1 talkback prints what TalkBack says at each stop.