Use when a web interface needs its visual defects found and fixed with measurements rather than opinions — misaligned rows, ragged card interiors, touch targets, rendered contrast over gradients and images, text printing over text, a page that scrolls sideways at 320px, or content that jumps while it loads — measured in a real browser across widths, and proved unchanged afterwards. Not for electing a lead or sequencing design work.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ai Audit Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/arcasilesgroup-ai-audit-design)
---
name: ai-audit-design
description: >-
Use when a web interface needs its visual defects found and fixed with
measurements rather than opinions — misaligned rows, ragged card interiors,
touch targets, rendered contrast over gradients and images, text printing
over text, a page that scrolls sideways at 320px, or content that jumps while
it loads — measured in a real browser across widths, and proved unchanged
afterwards. Not for electing a lead or sequencing design work.
license: Apache-2.0
---
# ai-audit-design
Measure the built page before you change anything.
A stylesheet is a claim. A painted pixel is the evidence. Everything here measures the second, because the defects that survive review are exactly the ones no declaration predicts: contrast against a gradient with grain over it, a row whose two cards start reading 12px apart, a label printing over another label at 320px.
Serve the **built** output and point the floor at it. A dev server with hot reload measures a page nobody visits.
1. Run the floor the project declares:
```bash
bun run web-floor -- --base http://127.0.0.1:4399 \
--routes / /about /projects --widths 320 390 820 1440 --json before.json
```
`web-floor` is a script in the project's `package.json`, backed by the `@arcasiles/web-floor`
package. A project that declares `web-floor.config.*` needs no target flags: the config
carries the base URL, the routes, the widths, and — for a route behind a login — the path to
its own Playwright storage state, which holds session cookies and must be gitignored and
never committed. A flag overrides only the field it names: even a `--base` run picks up the
config's routes and storage state. A repository without that script has no floor: say so and
stop, rather than measuring by hand and calling the result evidence.
2. Judge every finding against the code beside it. [reading.md](references/reading.md) names
the shapes that look like defects and are not; a report that lists them next to the real
defects is worth nothing.
3. Fix, one change per commit. [fixes.md](references/fixes.md) carries the patterns that
change a target or a gap without moving a single glyph.
4. Prove it: `--baseline before.json` says how many text runs moved. For a fix that is meant
to be invisible, the answer is zero.
Screenshots come last and answer one question — *does this read right?* — which no number
answers. Capture in bands, not one full page: a tall page times a 2× scale runs past the
compositor's texture limit and the capture comes back stitched, with every coordinate
silently wrong.
## What each pass measures
**contrast** — the ink is read from the element's own `color`; the *ground* is sampled from a
screenshot taken with the glyphs made transparent, so a gradient, a photograph or a texture
is measured as painted. Text over an image is where this earns its keep. The floor is WCAG
2.2 AA (4.5:1, or 3:1 when large); `--aaa` asks 7:1 instead.
**overlap** — glyph rectangles, not element boxes. Boxes overlap constantly and mean
nothing; two runs of text sharing a patch of paper do not.
**touch-target** — WCAG 2.5.8's 24×24px, measured on the box a finger actually gets, so a
stretched link counts as the card it covers. Two exemptions are applied and no others: a
target inline in a sentence (its size is the size of the words around it, and an inline-block
link inside a paragraph qualifies), and an undersized target placed so its 24px circle reaches
no other target (an exempt target still counts as one). A native form control under 24px is a
warning to confirm — the browser may have set a size the author never changed — never an error
on its own.
**alignment** — like containers in one row must start reading on the same line. The number
is the first ink's distance from the container's own top edge; the defect is two of those
differing across a row.
**reflow** — 320px, the WCAG 1.4.10 width, with and without a reader's own 1.4.12 text
spacing; and horizontal clipping under `overflow: hidden`, which never makes a document
scroll and so hides from the sideways check.
**links** — every same-origin page link, asked for the answer it gives (an HTTP 4xx or 5xx,
a missing file and no answer at all are findings), plus a fragment on the page being measured,
resolved against that page's ids. The probe is anonymous: it never carries the signed-in
session, so a link such as `/logout` cannot act as the reader, and a protected link answering
401 or 403 counts as existing. Another origin is never fetched: the floor measures what it was
given, and an external link is not its business.
**tokens** — the colours the page declares, when `--tokens` names a DTCG 2025.10 file. The
pass is off without one; with one, every colour the page paints that the file does not define
is a finding, named by its `#rrggbb`.
**vitals** — cumulative layout shift for the load, and the one Core Web Vital a shared runner
measures the same way twice. LCP is printed and never gated: a runner's CPU jitter makes a
millisecond budget red on Tuesday and green on Wednesday.
**axe** — axe-core's WCAG 2.0, 2.1 and 2.2 A and AA rules, at every width and again in
forced colours. It overlaps this floor on purpose: its contrast and target-size rules see
some of the same defects, and two measurements agreeing is cheaper than one being wrong.
## What the numbers cannot see
Whether the thing is any good. The floor finds a gap that contradicts itself, never a page
that is correct and lifeless. When a finding and the design disagree, the design has the
floor — but it has to say why, next to the value, or it is drift wearing a justification.
Downloadable documents — PDFs, Word files, PPTX decks — cannot be audited inside a browser.
See the [accessibility-checklist](references/accessibility-checklist.md) for the manual
checklists that cover tagged text, reading order, alt text, heading structure, contrast, and
encrypted/malformed files. Run Ally or an equivalent tool for batch checks; this floor only
covers HTML.
## The ai-engineering seam
1. An executable anti-slop gate — never bundled, always pointing at what is
installed at runtime.
2. Result: `.ai-engineering/design/audits/NNN-{name}.html` — measurements, not
opinions; the `NNN` prefix is never rewritten once issued. Render it with the
artifact design system — [ai-brainstorm › references/artifact-design.md](../../skills/ai-brainstorm/references/artifact-design.md) — so the
measurements are presented, not decorated. Copy `templates/research.html.tpl` and fill its sections; write no CSS and no script.
3. Output format: gates (CHECK / EXPECT / EVIDENCE).
## Lifecycle
Lane: full
Trigger: ui
Trigger kind: path
Trigger when: **/*.tsx, **/*.jsx, **/*.css, **/*.scss, **/*.sass, **/*.less, **/*.vue, **/*.svelte, **/components/**, **/tailwind.config.*
Trigger excludes: docs/**, .ai-engineering/**
Writes: .ai-engineering/design/audits/NNN-{name}.html
Read by: the human, the milestone gate
Dies: immune while a permanent governor cites it; doctor --gc after older_than when nothing cites it
Next: none
Source: original. The measurement engine ships as `@arcasiles/web-floor` in this repository,
under the same Apache-2.0 licence as everything else here.