Use this page to review a screen, a flow, a whole product, a deck, or a PDF with dev visual, and to look up its
commands, checks, and what it stores. Every picture is a capture with the recipe that reproduces it, every
problem is a finding pinned to a capture and to the product map with a rule, a severity, and a fix, and a fix
counts only when devkit captures the same recipe again and the problem is gone. Agents follow the same procedure
through the visual-diagnosis skill.
How it works · Before you start · Review one screen · Review a flow or a product · Fix and verify · Decks and pictures · Reference
An audit (VA-…) answers one question for one scope: a screen, a component, a journey, a section, or the whole
product. For example: can a finance clerk export a month of invoices? Inside an audit:
- A capture (
VC-…) is one full-page picture taken with Playwright's Chromium at an exact width (a PDF page renders through macOS's PDFKit), with its recipe: the URL or file, viewport, theme, state, the steps that reach the state, and a data note. Each capture also has a description, the screen as structured text: every element with an id (E57), its role, accessible name, box, and a Playwright locator. Reviewers point at elements by id instead of guessing coordinates. - The checks run on the same page state as the picture and produce signals: devkit's layout and text checks, the axe-core accessibility rules, and the impeccable design detector; a document page gets devkit's document checks. A signal is not a finding until someone triages it.
- The map is the product as a graph: screens as nodes, the links and buttons between them as edges, and the main journeys as paths through it. Structure checks on the map find what no single screen shows: dead ends, orphan screens, journeys over their step budget, and context lost between steps.
- A finding (
VF-…) is one problem pinned to a capture, the map, or both.dev visual verifyproves its fix by capturing the same recipe again and comparing the pictures.
The review itself follows a fixed order: six structure passes on the map and journeys, then ten screen passes on
each capture, which run from the task and first look to accessibility. Each pass ends in findings, clean with what was
checked, or n/a with the reason, so the report shows what was checked and what was not.
You need:
- The pinned browser tools:
@playwright/cli0.1.24 with Chromium 1254, and axe-core 4.14.0. Install them withdev install --only tools;dev doctorreports a version that differs from the pin. Without axe-core, captures still work, and the report says that the accessibility rules did not run. - gitleaks, which every capture uses to find secrets in the page's text before anything is written. Without it, a
capture fails and records nothing.
dev install --only toolsinstalls it too. - Your app running on this Mac (
localhost,127.0.0.1, or::1) with fixture or demo data. Never capture production data or a copy of it: records and notes sync to the handoff repository, and gitleaks finds secrets, not personal data. A remote host needs--remote, and then only demo data. Without--remote, a capture also fails and records nothing when the page goes, or tries to go, to another host. - Optionally, a
DESIGN.mdat the project's root whose YAML front matter listsspacing:tokens. Only then does the off-scale spacing check run; without it, each capture saysnot run: off-scale-spacing (no spacing scale).
-
Capture the screen in the widths and themes you care about. The command opens a screen audit when none is open in this session:
dev visual screen http://127.0.0.1:4200/invoices --viewport 1440x900 390x844 --theme light dark
It prints the audit, one capture per width and theme, how many signals each capture raised, and the checks that did not run, with the reason.
-
Look at each capture before you read its signals.
dev visual marks VC-…prints the paths of the clean picture, cut into viewport-high tiles, and of a copy with numbered marks on the controls, headings, and images. Record what you saw by marks, never by coordinates:dev visual marks VC-g33z1a2b3c --tier high dev visual judge VC-g33z1a2b3c --pass hierarchy --first-look "3,7,1" --note "The totals pull the eye before Export." --model <id>
dev visual describe VC-… --outlineprints the heading outline with element ids;--interactiveprints the controls with their locators and selectors, and--regionsthe landmarks and sections. -
Work through the ten screen passes in order. Record each one as clean or not applicable, or add findings:
dev visual pass VC-g33z1a2b3c hierarchy --clean "Export reads third, after the title and the totals" dev visual finding add VC-g33z1a8k0e --element E57 --pass layout --rule wcag:2.5.8 --severity P1 \ --title "Export button touches the table header" \ --impact "A clerk on a phone taps the Amount header when they mean Export." \ --evidence "Overlap 4×18 px; expected a gap of at least 16 px (--space-4)." \ --fix "Give .export-bar margin-block-end: var(--space-4)."
A finding at one width or theme can cover the same pass on the recipe's other captures:
dev visual pass VC-g33z1a2b3c layout --covered-by VF-g33z2c4h1m. The finding must be of the same audit and pass, on a capture whose recipe differs only in its viewport and theme. -
Triage every signal. Each becomes a finding or is dismissed with a reason:
dev visual signal ls VA-g33z0a1b2c --untriaged dev visual finding add --from VC-g33z1a8k0e#1 --pass layout --severity P1 --title "…" --impact "…" --fix "…" dev visual signal dismiss VC-g33z1a8k0e#2 --why "decorative overlap: the badge overlaps the avatar on purpose"
When every signal of one check has the same reason, dismiss them at once.
--checktakes every untriaged signal of that check in the audit, and--rulenarrows it to one rule. A signal folded into another check's signal is not of this check, so dismissing advice never dismisses the WCAG failure that kept it:dev visual signal dismiss --check tap-target --why "desktop-only admin screens; phones use the mobile app"To run the checks again on a capture's recipe, for example after you installed axe-core, run
dev visual check VC-… --only axe, or give an audit (VA-…) for each of its captures. A signal found again keeps its number and triage, and a new one takes the capture's next number. The command changes nothing when the page no longer lays out like the capture's description, since every signal is pinned to that picture: then take a new capture withdev visual capture --again VC-…. -
Write the report:
dev visual report --openopens one HTML file, anddev visual report --mdprints a summary for the pull request.
-
Start the audit with its question and matrix:
dev visual start --scope product "Can a finance clerk export a month of invoices?" \ --viewport 1440x900 390x844 --theme light darkFor one flow use
--scope journey; for one area,dev visual section <url> --within "/invoices". -
Crawl the app to build the map:
dev visual map crawl http://127.0.0.1:4200/. The crawler follows links and navigation controls on the same origin, to depth 3 and at most 60 screens, for at most 10 minutes. It guards the app:- It sends only GET requests and aborts every other one.
- It never follows a link or clicks a control whose name or URL path or query holds an avoid word, and sends no
request to such a path. The avoid words are delete, remove, pay, send, submit, sign out, logout, the
project's
visual.crawl.avoidwords, and--avoid. - It connects no WebSocket and blocks service workers.
- It holds every request of a shared worker, which runs outside the page that started it, to the same rules.
- It walks each link's redirects itself, one hop at a time, and stops a redirect of what a page loads before it leaves the app's origin or reaches an avoided path, so another origin gets no request. A window a page opens loads nothing.
A GET can still change state in a badly built app, so crawl a local app on fixture data and skip risky paths with
--exclude "<glob>", which matches the path as written and as the app decodes it. -
Declare what the crawler cannot reach, such as a dialog or a screen behind a form, and the journeys:
dev visual map node add invoices.export --title "Export invoices" --kind overlay --route "/invoices#export" dev visual map edge add invoices.list invoices.export --trigger "role=button[name=Export]" --kind action dev visual map journey add J:export-month --actor "finance clerk" --task "Export a month of invoices as CSV" \ --path "home > invoices.list > invoices.export > invoices.done" --budget 4 --keeps month
-
Draw the map with
dev visual map drawand read it: a map that is hard to read is often a product that is hard to navigate. -
Walk each journey, which captures every step in the audit's matrix, then compute the structure signals:
dev visual journey walk J:export-month dev visual map check
-
Capture the states the walk does not reach, then work through the structure passes and the screen passes as in Review one screen.
Reach every state through recipe steps, never by hand, so the next capture of the recipe shows the same thing:
dev visual capture http://127.0.0.1:4200/invoices --state "export failed" \
--do "route /api/export 500" --do "click text=Export"The steps are goto, click, fill, select, check, hover, press, scroll, and wait, with Playwright
locators, plus route <glob> <status>|abort|hold for error and loading states. Sign in with
--storage-state <file>; the record names the file, never its content. Freeze a live clock with
--clock <ISO time>.
Before the full-page picture, devkit scrolls through the page so that lazy images and content shown on scroll load, waits up to 5 s for those images to decode, and scrolls back to where the steps left the page. One capture, with its steps and checks, takes at most 90 s, and its picture is at most 16,384 CSS px high: a taller page is cut there, in the picture and the description, and the record keeps the page's full height.
A recipe runs again on capture --again and verify, and records sync from your teammates, so a replay reads the
storage-state file and a document only from inside the project you run it in: a relative path is the project's, and
a document's name (the record keeps no path of your Mac) is looked up among the project's files. Keep both in the
project, for example e2e/.auth/clerk.json.
-
Mark the finding while you work on it, and name the commit that fixes it:
dev visual finding set VF-g33z2c4h1m --status fixing --why "taking it in the export bar change" dev visual finding set VF-g33z2c4h1m --status fixed --why "the bar has its margin" --commit 4f2a9c1
-
Verify it on the working tree:
dev visual verify VF-g33z2c4h1m
devkit captures the finding's recipe again (without the
--cssof an experiment capture), finds the element again (by its locator, then its own test id or id, then its selector with any leadinghtml > body >dropped, then its role and name, and by its old position only when none of these names one element, which the outcome then names:anchor found by its old position only), reads the check that raised the finding on the new capture, and compares the before and after pictures with pixelmatch. It prints the share of changed pixels inside the finding's box and outside it, and the path of the difference picture in the local store.- A finding a check raised is
verifiedwhen the check no longer fires on the element. When it still fires, afixedorverifiedfinding isreopened, and anopenorfixingone keeps its status; the command exits 1 and names what it measured. When the anchor was found by its old position only, a check that no longer fires there does not verify the finding: the element may have moved with its defect, so the finding keeps its status and waits for a reviewer. - A finding from judgment, or one whose anchor was found by its old position only, waits for a reviewer, who sees
the before and after crops side by side; a finding on a picture someone sent waits for a reviewer who looks at
the screen again. The reviewer accepts it with
dev visual verify VF-… --accept --why "…". - Changed regions outside the finding's anchor become new
changed-regionsignals, numbered on the new capture. They are the regressions next to the fix: triage them like any other signal. - The findings that name this one as their
--rootare checked on the same new capture. - Records sync between Macs, pictures do not. When the finding's capture was taken on another Mac, its picture
before is not here: verify captures the recipe again on this Mac and lets the check decide on the new capture,
with nothing compared. The verification records
compared: false, and the outcome says so and names the Mac the picture is on (studio (m-0000beef)). A judgment finding then waits for a reviewer who looks at the new capture and accepts it withdev visual verify VF-… --accept --why "…". - A structure finding is decided by
dev visual map check: verify first walks again the journey its signal is on, with a capture of each step, or crawls the map again from its start screen, then checks. - When the recapture fails because the app is down or a step finds nothing, the finding keeps its status, and its verification records the error and the commit, which the report shows under Could not verify. Fix the cause and verify again.
dev visual verify VA-…verifies everyfixedorverifiedfinding of the audit: a regression check before a release. A finding it cannot verify here, such as one on a picture someone sent, is listed as an error, and the others are still verified. A recipe whose host is not this Mac needs--remoteagain.
To compare two captures of one recipe yourself, for example before and after a refactor, run
dev visual compare VC-… VC-…. It changes no record, and prints:- how many pixels changed, of how many, from pixelmatch (threshold 0.1; anti-aliased pixels do not count);
- the changed regions, the 20 largest with their boxes;
- the elements that moved, resized, appeared, or disappeared, the first 20 with their offset or size and their ids before and after;
- the path of the difference picture, where the before picture is faded to gray and changed pixels are red.
An element is matched by its selector, then by its locator, with the same role on both sides. A change of 1 px is the rounding of the boxes. An element that moved by the same offset as its nearest matched ancestor is not listed, and neither is one inside an element that appeared or disappeared.
- A finding a check raised is
-
To close a finding without a fix (an open, fixing, reopened, or fixed one), give the reason.
wontfixon a P0 or P1 finding needs a recorded decision of the Product owner:dev visual finding close VF-g33z2c4h1m --as not-a-problem --why "the overlap is the design's badge"
To prove the cause of a visual bug before you fix it, take an experiment capture with the suspected rule changed:
dev visual capture http://127.0.0.1:4200/invoices --css ".totals{position:static}". When the problem disappears,
the cause is proven. Experiment captures are marked, and they never verify a finding.
-
A deck or a PDF.
dev visual product deck.pdfcaptures one picture a page (--pages 1-12for some of them): landscape pages 1920 px wide, portrait pages 1240 px. It then writes the document's map as the map's next version:- one node a page (
deck.p1,deck.p2, …), a slide when the page is landscape, titled by its tallest line of text; the last page is final; - a
nextedge from each page to the one after it; - an edge for each of the PDF's own links: to the page it goes to, or to the external site of a web link (links to mail, files, or viewer actions are left out and counted);
- the storyline,
J:deck-storyline, the pages in reading order.
Mapping the document again replaces what its earlier map wrote. The storyline has no browser steps, so
dev visual journey walkrefuses it: judgeS1on the page captures. Each page gets the document checks; axe and the detector do not run on documents. devkit captures PDFs and pictures only, so export a PowerPoint, Keynote, or Word file to PDF from the app that made it. For one page, usedev visual screen deck.pdf --page 3. - one node a page (
-
A picture someone sent.
dev visual screen shot.pngrecords it as an external capture, with no recipe. Its findings are verified by eye against a new capture of the same screen.
Pictures stay on the Mac that took them. A teammate sees the records, and the report shows a frame with the
command to capture the same recipe on their Mac. To show them the pictures themselves, dev visual share VF-… copies
the pictures that a finding (or, with VA-…, an audit) uses into the handoff repository as WebP files: at most 400 KB
each and 8 MB an audit. It refuses a capture of a remote host and a picture that no longer matches its record.
Every command takes -p <owner/repo>; the default is the current project. capture uses the audit open in this
session, or the one --audit names.
# start an audit of a scope (each of the five commands opens one when none is open, then captures)
dev visual start --scope screen|component|journey|section|product "<question>" [--task "<user and task>"]
[--mode operate|read|persuade|experience] [--viewport 1440x900 390x844] [--theme light dark]
[--state "<name>" ...] [--include VA-… ...]
dev visual screen <url|file> [--page <n>] [capture options]
dev visual component <url> --element "<selector>" --states "<state>,…" [--state-do "<state>=<step>" ...]
dev visual journey walk (J:<slug> | --path "<node> > <node> > …" --do "<step>" ... [--base <url>]) [capture options]
dev visual section <url> --within "<route prefix>" [crawl options]
dev visual product <start url|file> [crawl options]
# the map (the add commands, remove, and apply take --why "…", the reason the map's changelog keeps)
dev visual map crawl <url> [--within "<prefix>"] [--depth 3] [--max 60] [--avoid "<word>" ...] [--exclude "<glob>" ...]
[--storage-state <file>] [--do "<step>" ...] [--remote]
dev visual map show [--json] [--version <n>]
dev visual map node add <id> --title "…" [--route "/invoices/:id" | --page <n>] [--kind screen|overlay|page|slide|external] [--final]
dev visual map edge add <from> <to> --trigger "<role and name, or selector>" [--kind nav|action|submit|redirect|back|next|external] [--when "<condition>"]
dev visual map journey add J:<slug> --actor "…" --task "…" --path "<node> > <node> > …" [--do "<step>" ... per step]
[--expect "<outcome>"] [--decision "<node>: <condition>"] [--budget <steps>] [--keeps "<value>" ...]
dev visual map state add <node> <state> [--from <state> --on "<event>"]
dev visual map concept add <Name> [--relates "<Other>:<relation>"] [--label "<node>=<text shown>"]
dev visual map component add <id> --selector "<pattern>"
dev visual map remove <node|edge|journey|…> --why "…"
dev visual map apply <file.json> --why "…" a declared map, or changes to it, from a file
dev visual map attach [--choose VC-…=<node>] attach captures and findings to nodes; list the ambiguous ones
dev visual map check [--audit VA-…] the structure signals, kept on the audit
dev visual map draw [--journey J:<slug>] [--section "<prefix>"]
# evidence, findings, verification, report
dev visual capture <url|file> [--state "<name>"] [--node <id>] [--viewport WxH ...] [--theme light|dark ...] [--dpr 1|2]
[--do "<step>" ...] [--storage-state <file>] [--data "<note>"]
[--clock <ISO time>] [--locale en-US] [--timezone UTC] [--forced-colors] [--contrast more]
[--vision deuteranopia|protanopia|tritanopia|achromatopsia|blurred] [--pages 1-12]
[--mask "<selector>" ...] [--css "<rules>"] [--remote] [--no-check] [--audit VA-…]
dev visual capture --again VC-… the same recipe, now, on the working tree
dev visual check <VC-…|VA-…> [--only <check,...>] [--remote] run the checks again on a capture's recipe, or each of an audit's
dev visual signal ls [VC-…|VA-…] [--untriaged]
dev visual signal dismiss (VC-…#<n> | --check <check> [--rule <rule>] [--audit VA-…]) --why "<reason>" [--model <id>|human]
dev visual pass <VC-…|VA-…> <pass> (--clean "<what was checked>" | --na "<reason>" | --covered-by VF-…)
dev visual describe VC-… [--outline | --interactive | --regions | --json] the description as text, with element ids
dev visual marks VC-… [--tier high|standard] viewport tiles and the set-of-marks copy; prints their local paths
dev visual judge VC-… --pass <pass> [--first-look "<mark>,<mark>,<mark>"] --note "…" [--model <id>|human]
dev visual finding add [<VC-…>] (--element E<n> | --mark <n> | --selector "<css>" | --region x,y,w,h | --from <signal>) [--page <n>]
[--node <id>[#<state>] | --edge <from>><to> | --journey J:<slug>#<step>] [--evidence-capture VC-… ...]
--pass <pass> --rule <scheme:id> [...] --severity P0|P1|P2|P3 --title "…" --impact "…"
--evidence "<observed vs expected>" --fix "…" [--guide <modern-web-guidance id>] [--root VF-…]
dev visual finding ls [--status open] [--severity P0,P1] [--pass <pass>] [--audit VA-…] [--json]
dev visual finding show VF-… [--json]
dev visual finding set VF-… (--status fixing|fixed --why "…" [--commit <sha>] | --severity P1 --why "…" | --root VF-…)
dev visual finding close VF-… --as wontfix|duplicate|not-a-problem --why "…" [--of VF-…] [--decision D<n>]
dev visual finding task VF-… a work item that links to the finding
dev visual verify <VF-…|VA-…> [--accept --why "…"] [--remote]
dev visual compare <VC-before> <VC-after>
dev visual report [VA-…] [--md] [--open]
dev visual share <VF-…|VA-…>
dev visual ls [--json] the project's audits, with open findings by severity
Pick the smallest scope that answers the question. A screen or component audit needs no map; its captures and findings attach to the map's screens when the project has one, or gains one later.
| Scope | Use it for | Map needed | Passes counted |
|---|---|---|---|
| Screen | One screen, page, or slide; a picture someone sent | No | Screen passes 1–10 on each capture |
| Component | One component in its states, themes, and widths | No | Screen passes 2–10 on the element's region, and S5 within it |
| Journey | One flow toward one task | The journey's own nodes and edges | S1, S3, S4, S6, and screen passes 1–10 on each step |
| Section | Everything under a route prefix | The section's subgraph | S1–S6 within the section, screen passes on each node |
| Product | The whole product, deck, or document | The full map | S1–S6 and screen passes on every node |
The <pass> argument of dev visual pass, judge, and finding add takes these ids. The
visual-diagnosis skill has
what to look at in each pass, and the signals and rules that feed it.
| Pass | Name | The question |
|---|---|---|
S1 |
Journeys | Can the actor finish each journey, in few steps, knowing at each step what comes next? |
S2 |
Reachability | Can every screen be reached, and left, the way users expect? |
S3 |
Navigation and wayfinding | Do users know where they are and where a link takes them? |
S4 |
Context and continuity | Does the product keep what the user chose and did across steps? |
S5 |
Consistency across screens | Is the same concept named and shown the same way everywhere? |
S6 |
States across the product | Does every screen that needs them have its states, each with a way out? |
task |
Task and first look | In 5 seconds, can the user tell where they are and what to do next? |
hierarchy |
Information hierarchy | Does the order of emphasis match the order of importance? |
layout |
Layout and alignment | Is there a clear structure, and does everything sit on it? |
spacing |
Spacing and rhythm | Does space group related things and separate unrelated ones, on one scale? |
typography |
Typography | Is the text readable, and does each style have one role? |
color |
Color and contrast | Is every text and control readable, and does color carry meaning only with a second cue? |
content |
Content and copy | Does each word help the task? |
states |
States | Is every state designed: empty, loading, error, full, long content, disabled, focus, hover? |
responsive |
Responsive | Does each width keep the task possible without horizontal scroll or hidden actions? |
accessibility |
Accessibility | Can a keyboard and screen-reader user do the task? |
Each web capture runs these checks on the page state it captured, after the screenshot, so nothing they inject is in
the picture. focus-visible, the one check that acts on the page, runs last of devkit's checks and puts the focus
and the scroll back, so axe and the detector find the page as captured. No check looks at a masked element or at
anything inside one, and a signal below a cut picture is left out. A signal keeps the check, the pass, the rule, the
element's id, region, and selector, the measured value, and the threshold; it never keeps page text other than the
redacted name of its element.
| Check | What fires it | Pass | Rule |
|---|---|---|---|
overlap |
Two visible text or control boxes cross by more than 2 px in both directions, neither holds the other, and neither is position: fixed or visually hidden (clipped to nothing, as screen-reader-only text is); aria-hidden decorations are left out. Text is compared one line box at a time, so the box around the lines of wrapped inline text crosses nothing on its own |
layout |
wcag:2.5.8 when the first box is a control, otherwise nielsen:8 |
page-overflow |
The document is wider than the viewport; the anchor is the outermost element that reaches furthest past its right edge | responsive |
wcag:1.4.10 |
element-overflow |
Content spills more than 1 px out of a box with overflow: visible and crosses a sibling |
layout |
nielsen:8 |
truncation |
Text cut by text-overflow: ellipsis or a line clamp; form controls are left out. The signal keeps the full text, at most 120 characters, after redaction |
content |
nielsen:6 |
tap-target |
Advice at widths under 768 px: a control under 44×44 CSS px. A link inside a sentence is exempt, and a control with a label counts with the label's box | accessibility |
platform:touch-target-44 |
min-text-size |
Text under 12 px; at widths under 768 px, body text (paragraphs, list items, table cells, quotes) under 16 px, as advice | typography |
ds:min-text-size |
layout-shift |
Cumulative layout shift over 0.1 during the load and the steps (the largest window of shifts less than 1 s apart, at most 5 s long, none right after input), anchored on the element that moved the most | states |
nielsen:1 |
broken-image |
An image whose load ended without a picture | content |
nielsen:9 |
offscreen |
A control wholly outside the page sideways, or covered by another element at its center point (tested inside the viewport) | responsive |
nielsen:7 |
near-miss-alignment |
Sibling blocks in normal flow whose start edges differ by 1 to 3 px, or full-width blocks whose end edges do. Blocks centered on one another are left alone. The signal is on the block whose edge fewer siblings share, and names the sibling it almost meets | layout |
ds:near-miss-alignment |
off-scale-spacing |
A margin, padding, or gap whose computed length is not on the project's spacing scale, compared to the half pixel; an auto margin, a percentage, and a calc() are never off the scale. It runs only when the project's DESIGN.md lists spacing: tokens in its YAML front matter (sm: 8px, md: "1rem", or plain numbers in px; a rem or an em counts 16 px). Otherwise the capture records it as not run, no spacing scale |
spacing |
ds:off-scale-spacing |
focus-visible |
One of the first 30 tab stops shows no change of outline, border, or shadow when it has the focus, on itself, its ::before or ::after, or its parent (a :focus-within ring). The order is the keyboard's: positive tabindex first, one radio button a group, no frames |
accessibility |
wcag:2.4.7 |
axe |
axe-core 4.14.0 with the WCAG 2.0, 2.1, and 2.2 A and AA rules, among them color-contrast and target-size (the 24 px minimum), in every frame. Results that axe cannot decide are advice |
responsive for WCAG 1.4.4 and 1.4.10, typography for 1.4.12, color for the other 1.4 criteria, accessibility for the rest |
wcag:<criterion> from the axe rule's tags, or check:axe for a rule with none |
impeccable |
The impeccable design detector (dev impeccable detect) on the same page |
By rule: color, typography, spacing, responsive, layout, content, or states; any other rule goes to hierarchy |
impeccable:<rule> |
non-semantic-control |
A generic element of the top page with a pointer cursor and a click handler (an onclick attribute, or a click listener Chromium reports), no interactive role, and no interactive element inside or around it; the outermost one fires. A card's cursor is inherited by what is inside it, so the handler tells which element acts as the button. When no element has a handler of its own (a framework that listens on the document), the outermost element whose own cursor is pointer and whose parent's is not fires instead |
accessibility |
wcag:4.1.2 |
Advice signals (tap-target, body text under 16 px on a phone, and the results axe cannot decide) are
recommendations: the visual-diagnosis skill rates a finding from one P3 at most.
Each page of a PDF runs these checks on its description and its picture; axe and the detector do not run on documents. A landscape page is a slide, read projected; a portrait page is a document, read in print.
| Check | What fires it | Pass | Rule |
|---|---|---|---|
min-text-size |
On a slide, a line under 18 pt of a 960 pt wide slide (36 px of the 1920 px picture); on a document page, a line under 9 pt. A line's size is its box's height, so a size may read up to 1 px large | typography |
ds:min-text-size |
safe-margin |
A line closer to an edge than 5% of the page's width (left and right) or height (top and bottom), where a projector or a printer may cut it; the signal names the nearest edge | layout |
ds:safe-margin |
overlap |
Two lines whose boxes cross by more than 2 px in both directions: text drawn over text | layout |
nielsen:8 |
words-per-slide |
A slide with more than 40 words. A line cut at 120 characters or redacted makes the count a floor ("at least 41 words") | content |
ds:words-per-slide |
contrast |
A line under 4.5:1 against the page's most common color in its box, or under 3:1 for text of 18 pt and up. A line with no ink is not judged | color |
wcag:1.4.3 |
contrast-unknown |
Advice: the text sits on a picture or a gradient (the most common color covers under 40% of its box), which has no one ratio | color |
wcag:1.4.3 |
axe, devkit's checks, and impeccable can measure one defect on one element. devkit folds two signals on the same
element when they repeat each other (the same check, axe rule, and rules), or when they map to the same WCAG
criterion in its equivalence table (lib/devkit/visual/equivalents.json): 1.1.1, 1.4.3, 2.5.8 (an overlap counts
there only when both elements are controls), and 4.1.2. It keeps the signal of the first source in that order (axe,
then devkit, then impeccable) and lists the others in its duplicates, so triaging it triages them all. A pair the
table does not list is never folded.
dev visual map check computes these on the map and the walked journeys. Their signals are numbered on the audit
(VA-…#<n>).
| Check | What fires it | Pass |
|---|---|---|
journey-steps |
A walked journey with more steps than its budget | S1 |
broken-edge |
A crawled edge whose target answers 4xx or 5xx, or a journey step whose trigger is not found | S1 |
redirect-chain |
An edge that passes more than one redirect | S1 |
orphan |
A screen with no path from the start (the section's entry in a section audit) | S2 |
dead-end |
A screen with no way on but the browser's back button, that is not marked final | S2 |
depth |
A screen in a journey, or marked frequent, more than 3 edges from the start; the pages and slides of a document are left out, since they are read in order | S2 |
missing-node |
A crawled screen or edge the latest crawl no longer found | S2 |
loop |
A walked journey that visits a screen twice without a declared reason | S3 |
label-mismatch |
A link whose name shares no word with the heading or title of the screen it leads to | S3 |
lost-context |
A value the journey keeps is on the page at the step that sets it and gone at a later step | S4 |
concept-naming |
One concept with more than one label across screens | S5 |
component-drift |
One map component whose size, weight, colors, or height differ between screens | S5 |
missing-state |
A state of a screen's state machine with no capture in the audit | S6 |
| Part | What it holds |
|---|---|
| Anchor | On a capture: an element (--element E57, or --mark 3 from the marked copy), a selector that matches one element, or a region. On the map: a node with its state, an edge, or a journey step. A screen finding has both when the project has a map |
| Rule | At least one of wcag:<criterion> (WCAG 2.2), nielsen:<1-10>, check:<id>, map:<id>, impeccable:<rule>, ds:<rule or token>, platform:<guideline>. devkit checks wcag, nielsen, check, and map against its catalog |
| Severity | P0 blocks the task; P1 makes it hard, or fails WCAG AA; P2 annoys, with a workaround; P3 is polish |
| Impact and evidence | The user and the task it hurts; what was observed against what was expected, with numbers when it is measurable |
| Fix and guide | A fix concrete enough to build. For a web platform pattern (a dialog, a form control, a layout, contrast, focus), --guide <id> names the modern-web-guidance guide that covers it, such as dialog or contrast-color; the report shows it beside the fix |
| Root | --root VF-… groups findings with one cause, so the cause is fixed and verified once |
A finding moves through these states; only dev visual verify sets verified, and every change keeps who, when,
and why:
| From | Event | To |
|---|---|---|
| — | finding add |
open |
open, reopened |
finding set --status fixing |
fixing |
open, fixing, reopened |
finding set --status fixed --commit |
fixed |
open, fixing, fixed, reopened, verified |
verify: the check no longer fires, or --accept on a fixed finding that only a reviewer can judge (a judgment finding, a finding on an external picture, or one whose element was found by its old position only) |
verified |
fixed, verified |
verify: the check still fires |
reopened |
open, fixing, reopened |
verify: the check still fires |
unchanged |
open, fixing, fixed, reopened |
finding close --as … |
wontfix, duplicate, not-a-problem |
| any closed state | finding set --status open --why |
reopened |
Text records go to the handoff repository, so the team and the next session see every finding and its history. Pictures stay on this Mac, in folders of mode 0700 and files of mode 0600, because pictures can show personal data.
~/Development/.handoff/visual/<owner>/<repo>/
map/current.json the product map, with its version and changelog
map/v<n>.json every earlier version
audits/VA-….json
captures/VC-….json the record, with its recipe, signals, marks, and judgments
findings/VF-….json
media/<sha256>.webp only after dev visual share
~/.local/state/devkit/visual/<owner>/<repo>/
blobs/<sha256>.png the pictures (the evidence)
desc/<sha256>.json.gz the descriptions
marks/<sha256>.png tiles and marked copies, never evidence
reports/VA-…/index.html
The nightly cleanup (the gc job at 04:00, or dev gc --apply) deletes a local picture older than 30 days unless
an open finding (open, reopened, fixing, or fixed) uses it: the picture or crop of its capture, of its
evidence captures, or of its verification capture, or its verification's difference picture. The tiles and marked
copy of its capture go with it. A project whose records cannot all be read keeps every picture.
Each web capture's description holds, besides its elements, the parts a reviewer reads first: the regions (the
landmarks, dialogs, and sections that open with a heading, each with the headings, controls, and images inside), the
heading outline, the reading order, the controls, and a primary-action candidate marked heuristic, which is never a
finding by itself. dev visual describe prints them:
dev visual describe VC-… --regions # R1 banner · E3 · 0,0 390×80 · E4, E6
dev visual describe VC-… --interactive # every control with its box, locator, and selector
dev visual describe VC-… --json # the whole descriptiondev visual marks VC-… cuts the clean picture into tiles one viewport high and sizes them for the reviewer's tier:
high keeps a tile within 2,576 px on its long edge and 4,784 visual tokens (one token for each 28×28 px patch),
standard within 1,568 px and 1,568 tokens. The marked copy numbers the controls, headings, and images in reading
order, at most 99 on each tile, and the capture record keeps which element each mark names. Tiles and marked copies
live in marks/ and are never evidence: findings, verify, and compare read the clean picture. dev visual judge
records who judged, the model (or human), when, the pass, the first look as element ids, and the note, after the
note is checked for secrets.
devkit redacts every capture in memory before it writes anything: the picture, the description, the signals, and
the map's strings all pass the same rules (lib/devkit/visual/redact.cjs). When redaction fails, the capture writes
nothing.
| What | What happens |
|---|---|
| Password and one-time-code fields | Fields of type=password, fields whose autocomplete is current-password, new-password, one-time-code, or starts with cc-, elements marked data-visual-mask, and the visual.mask and --mask selectors are painted black in the picture: in every frame and inside open and closed shadow roots, over all the element shows (its children, and text that runs past its box), cut to the boxes that clip it: the element and each box that holds it clip with an overflow that is not visible, with paint containment, or with a clip-path: inset() in px or %. A clip devkit cannot measure leaves the cover larger. An element masked once stays masked for the whole capture. Its name and text are left out of the description, of the element that holds it, and of every signal, and no check looks at it |
| Form values | Never stored. Each value is scanned for secrets before it is dropped, because the picture still shows it; a value with a secret is painted over |
| Secrets in the page's text | gitleaks scans every name, text, URL, and signal in memory, with no temporary file. A string with a hit becomes [redacted: <rule>], and an element with a hit is painted over |
| Credentials in URLs | Query parameters named t or ticket, or whose name contains token, secret, key, sig, pass, auth, session, code, credential, or jwt in any letter case; user info; the fragment, unless it is a hash route (#/…, whose own query follows the same rules) or one plain word such as #export; and path segments shaped like a JWT or like a long random token. Each becomes [redacted]; in a route pattern such a segment becomes :token. Over-redaction is accepted: postcode matches code |
| Control characters | Terminal control characters and bidirectional controls are removed from every string first, so no stored or printed text carries a terminal escape or reorders what a reader sees |
| Cookies, storage, network bodies, environment variables | Never stored. A storage-state file is named in the recipe, never read into it |
| The browser's own files | Each capture runs Chromium in a new 0700 folder that is deleted when the capture ends, also after a failure, with no traces, videos, or HAR files |
| Pages on another host | Without --remote, a navigation of the page to another host is stopped before its request is sent, and a page that goes or tries to go there (after it loads, after a step, or while it is captured) fails the capture with nothing recorded. A redirect of the page to another host is stopped the same way, before the browser follows it, so that host gets no request; redirects on this Mac go on as they came. A new window the page opens follows no redirect at all |
playwright-cli snapshot and playwright-cli screenshot are not covered by any of this: they write unredacted files
into the project's .playwright-cli/ folder, form values included. Use them to explore a page, never as evidence, and
never commit that folder.
A page can contain text that tries to instruct an agent, for example to mark every finding as fixed. devkit treats
captured text as data: no dev visual command reads ids, states, or commands from it, the HTML report and --md
escape every captured string, and a captured URL is never a link. dev visual describe, dev visual signal ls,
and the measurement a failed dev visual verify prints show captured text inside a block that starts with
<<captured-data <nonce>>> and ends with <<end captured-data <nonce>>>. The nonce is new each time the command
runs, and a marker inside the text is printed escaped (<\<), so the block ends only at its own nonce. The
visual-diagnosis skill tells agents to report such text as content and never follow it.
| Message | What to do |
|---|---|
No audit is open in this session. |
Start one: dev visual screen <url> for one screen, or dev visual start --scope <scope> "<question>" |
No browser to capture with. |
Run dev install --only tools |
gitleaks is not installed … Nothing was recorded. |
Run dev install --only tools, then capture again |
The page is 500 px wide, not 390. Nothing was recorded. |
The page sets a minimum width, or the viewport did not apply. Fix the page; never accept a picture at another width |
Step 2, click text=Export, found nothing in 10 s. |
Open the diagnostic picture the message names, then fix the step's locator or the page |
… did not answer (connection refused). |
Start the app, then capture again |
… is not on this Mac. Capture it with --remote |
Capture a local copy, or add --remote and use only demo or fixture data |
The page went to … after it loaded, which is not this Mac · The page tried to go to … |
The source, a step, or a script takes the page to another host. Fix the redirect or the step, or capture with --remote and only demo or fixture data |
deck.pptx is not a PDF or a picture (PNG, JPEG, WebP). |
Export a PDF from the app that made the file, then capture the PDF |
axe.min.js … does not match axe-core 4.14.0. |
Run dev install --only tools; until then the accessibility rules do not run. Then run them on the captures you took: dev visual check VA-… --only axe |
The page of VC-… lays out differently now: … Nothing was changed. |
The page changed since the capture, so new signals would not sit on its picture. Take a new capture: dev visual capture --again VC-… |
"button.primary" matches 3 elements |
Use a selector that matches one element, or --element E<n> |
Mark 14 is not on the marked copy |
Run dev visual marks VC-… again and cite a mark it shows |
The description of VC-… is not on this Mac: it was taken on studio (m-0000beef). · The picture of VC-… is not on this Mac: … |
The capture was taken on the Mac the message names (its name as the dashboard shows it, with its machine id), or its files were pruned. Capture it again here: dev visual capture --again VC-… |
The picture of VC-… is no longer in this Mac's store · The description of VC-… is no longer in this Mac's store |
This Mac took the capture and later pruned its files. describe and marks say to capture it again here (dev visual capture --again VC-…); share shares nothing; verify compares nothing and lets the checks decide on a new capture |
The picture of VC-… does not match its record |
The local picture changed after the capture. Capture it again; marks are drawn only on the picture the record names |
VC-…'s recipe names the storage state …, outside this project |
A replay reads files only from the project. Save the storage state inside the project and capture again |
The document … that VC-…'s recipe names is not in this project · 2 files of this project are named … |
Put the document back, or capture the one you mean again: dev visual capture <file> |
The capture did not end in 150 s and was stopped, with its browser. |
The capture driver hung; it was stopped with every process it started. Capture again, with fewer steps if it repeats |
The crawl stopped at 60 screens · The crawl stopped at its time bound of 10 minutes |
The map is marked partial. Narrow the crawl with --within; at the screen limit you can also raise --max |
J:deck-storyline reads the pages of deck.pdf in order, and a document has no browser steps to walk. |
Capture its pages with dev visual product deck.pdf, and judge the storyline (S1) on those captures |
VC-… is cut at 16,384 CSS px, the bound for a picture's height |
The page is taller than a picture holds. The picture, its description, and its signals stop there, and the record keeps the page's full height. Review the rest in a state that shows it higher up (a filter, a page of results, a collapsed section), or split the page |
The capture took longer than 90 s, the bound for one capture … Nothing was recorded. |
The steps and checks of one capture take at most 90 s. Use fewer steps, or wait for what the page shows instead of a fixed time |
VF-… is still there: overlap fires again on VC-…. Status: reopened. |
The fix did not remove what the check measured, which the command prints below the line as data. Look at the difference picture the command printed, fix again, then verify again |
VF-… verified · overlap no longer fires on VC-… · nothing compared: the picture before was taken on studio (m-0000beef) and is not on this Mac |
The check decided on a new capture of the recipe here; the pictures were not compared, since the one before is on the Mac named. To see the difference too, run dev visual verify VF-… on that Mac |
Could not verify VF-…: … Status: fixed. |
The recapture or the comparison failed; the finding is unchanged. Fix what the message names (start the app, fix the step), then verify again |
… are captures of different recipes (viewport differ) |
dev visual compare takes two captures of one recipe. Capture the recipe again with dev visual capture --again VC-… and compare those |
The map changed to v5 on studio (m-0000beef). |
Another Mac changed the map; the message names it by the name its presence publishes, with its machine id, or as another Mac (m-…). Run the command again |
See also Skills and plugins, The crew, Testing, and Diagrams.