render-verify: look at what you rendered
Why this skill exists
A visual artifact can be technically valid and still tell the wrong story. A
chart with a collapsed axis, a merged color scale, or an empty data binding
renders cleanly. So does a report whose images 404, whose text is clipped, or
whose stylesheet never loaded. No validator catches any of it. validate_chart
proves a spec is well-formed, not that the picture is true. Only looking does.
This is the plugin's characteristic bug shape — see Known failure modes in the repo docs. Every other silent failure here is a config path; this one is a picture.
The rule: if you rendered it, opened it, or edited it, look at it before you say it is done.
Scope. The method below — open, read the console first, walk a catalog, check the claim — is general. It applies to charts, generated HTML reports, SVG figures, dashboards, diagrams, and printable output. Charts are the deepest-worked case because this plugin produces them, and their catalog is the longest; a shorter general catalog follows it.
When to invoke
Mandatory:
- After any post-Flint Vega-Lite edit. The
flint-chartskill forbids sending an edited spec back torender_chart, so the MCP server's own validation no longer protects you. You are flying without instruments. - Before committing generated HTML, SVG, or PNG. Inline specs fail silently.
- When the artifact is layered, faceted, multi-series, or multi-figure. Most failures below come from layer, scale, or layout interaction.
Recommended:
- After the first render of anything that will be shown to someone other than the person who asked for it.
- Whenever you changed the data binding or the page structure, not just styling.
Skip:
- Single-layer chart, small embedded data, spec unchanged since a render you already looked at.
- The user is iterating rapidly on color or title only.
The failure catalog — charts
These render without error. Check each one explicitly — the list is the point of the skill, not the tooling.
| Failure | What you see | Usual cause |
|---|---|---|
| Empty binding | Axes, gridlines, legend — and no marks | Data ref resolved to nothing. A chart with no data still looks like a chart. Rule out a render race first — see capability 5 in Step 1 |
| Collapsed scale | Everything squashed into a fraction of the plot area | One layer forced zero: true (or a quantitative axis) into a shared scale |
| Merged color scale | A mark is the wrong color for its meaning | Two layers' color scales resolved together. Fix with independent scale resolution, not by recoloring |
| Undefined category | A blank, null, or undefined row/tick on a categorical axis |
Mis-encoded layer contributing to a shared categorical domain |
| Duplicate marks | Rows repeated, bars double-height | Missing dedup upstream — a data problem wearing a chart costume |
| Embedded totals | One bar dwarfs the rest; parts look flat | An aggregate level (all, Total) charted alongside its own parts |
| Double-scaled units | Percentages at 0–10000, or everything at 0.0x | A 0–100 rate tagged as Percentage and scaled again |
| Overplotting | A solid blob instead of a distribution | Too many marks, no opacity/jitter/binning |
| Right on sample, wrong on real | Looks perfect, means nothing | Verified against test rows, never against the actual dataset |
The failure catalog — any rendered artifact
For generated HTML, SVG, dashboards, diagrams, and printable output. These also render without error, and a screenshot alone can look plausible.
| Failure | What you see | Usual cause |
|---|---|---|
| Missing resource | A broken-image icon, a blank figure slot, an unstyled block | A 404 on an image, stylesheet, font, or script. The console names it — this is why Step 2 reads errors first |
| Unstyled content | Raw serif text, no layout, everything left-aligned | The stylesheet never loaded, or loaded after the capture |
| Clipped or overflowing text | Sentences cut mid-word, labels truncated, text escaping its container | Fixed heights, overflow: hidden, or a font substitution that changed metrics |
| Font substitution | Right words, wrong typeface; spacing subtly off | A web font failed to load and a fallback took over. Silent by design |
| Layout collapse | Columns stacked, panels overlapping, huge whitespace | The captured viewport hit a responsive breakpoint you did not intend |
| Below-the-fold content never checked | Everything visible looks fine | Only the viewport was captured. Scroll or capture full-page |
| Stale render | Your change is not there | Viewing a cached copy, an old build output, or a different file than you edited |
| Placeholder survived | Literal TODO, Lorem ipsum, {{value}}, undefined, NaN |
A template slot never filled. Search the rendered text, not just the source |
| SVG XML invalid | Chart title shows, chart body missing; screenshot looks like a fragment | An SVG injected as inline HTML during a PDF build parses lenient; <img src> is strict and drops the document at the first parser error. Two common causes: -- inside an XML comment (prose punctuation habit — (kept in AFTER -- helps read data)) and a bare & outside a comment. Fix in the generator, never in the SVG — regen clobbers manual SVG patches |
| Prose contradicts figure | Numbers in the surrounding paragraph do not match the chart's data | The dataset moved forward, the prose did not. Five surfaces drift: Big Idea sentence, caption / alt text, anchoring paragraph, numeric claims, and figure text that belongs in prose. See "Prose-coupling check" below |
| Lazy-load blindness | Coverage page reports "62 figures" but only 7 fetched | <img loading="lazy"> on a proofing or coverage surface. Only images in the viewport fire the request; a screenshot or scroll-through verifies exactly the images that happened to be visible. The rest could all be 404 and no one would know. Fix: strip loading="lazy" on any coverage / review page |
| Agent-browser-only pass | Renders correctly for you; blank or broken for the reader | The artifact fetch()es a sibling file and was verified over file://. The agent browser permits that; a normal browser treats each file:// document as an opaque origin and blocks it. Re-verify over http:// — see When file:// is not enough |
Prose-coupling check (before shipping a published figure)
The failure catalogs pin what the figure SHOWS. This check pins what the surrounding PROSE CLAIMS about the figure. Numbers drift silently between them, and the reader reads both.
Before declaring a figure done in a document / chapter / report / worked solution, sweep these five surfaces:
| Surface | Check |
|---|---|
| Big Idea sentence | The chapter or section's one-line takeaway still holds against the data, and it matches the figure's own subtitle |
| Caption / alt text | Describes what the figure now shows. Alt text IS the caption in most publication workflows |
| Anchoring paragraph | Introduces the figure with the correct panels in the correct order (BEFORE-left, AFTER-right for paired panels) |
| Numeric claims | Every number the prose cites ($4.2M, 2.18×, 78%) appears in the dataset. Include category names and sort order, not just values |
| Figure text that belongs in the chapter | Sentence-length exposition inside the SVG is a smell — propose relocation to the chapter body |
Look for the non-data lever first
When numbers drift, the fix that preserves the argument is usually a NARRATIVE lever — a threshold, a target, or a round-number goal — that lives only in prose. Moving it does not break the dataset OR the contract test.
Example: prose says "the channel needs to clear a $2.00 target" but channel-romi.json contains no 2.00. Raising the target to $2.50 corrects the wrong-figure references and leaves the beat, the Big Idea, the dataset, and the contract test all untouched. Rewriting the numbers to match the prose is more expensive and touches more surfaces.
Priority order when the prose is wrong:
- Number wrong in prose, right in data: fix the prose. Do not ask.
- Two valid fixes, one preserves the rhetorical shape: take that one, even if the diff is larger.
- Only correct fix changes what the passage argues: stop and ask.
- Wording awkward but numbers right: out of scope for this skill.
Adapted from a published decision-analysis book's figure-authoring practice.
Step 1 — pick a verification capability
If the artifact is ASCII, stop here and use the ASCII branch below instead. Steps 1 through 3 assume a rendered artifact that a browser can open. An ASCII chart has no such artifact: the text in the code fence is both the source and the render, so there is nothing to screenshot and no console to read.
For ASCII, substitute ascii-chart Module 5, the
alignment QA loop. It covers the same ground for a character grid: validate
every line against the width constant, verify borders and padding by counting
characters rather than eyeballing them, and re-check after each fix. That is
the ASCII equivalent of opening the render and reading the errors.
Then rejoin at Step 4. Claim checking and honest reporting do not depend on a renderer, so the Storytelling read-back, the mutation check, and Step 5 apply unchanged. Geometry passing is not the same as the numbers being right, and on a character grid that gap is easy to miss: a chart can validate perfectly while displaying a value the data does not support.
This skill names the capability, not a product. Work down this ladder and stop at the first rung that works. Do not install a second MCP server for a job the host already does.
The host's own browser capability — always try this first. If your tool inventory contains anything that opens a page and returns a screenshot or a page snapshot to you, use it. This rung costs nothing and has no security trade-off. What it covers depends on the host, and the difference decides whether rung 2 is needed at all:
Host Native browser Opens file://Rung 2 needed for local artifacts VS Code Copilot Built-in tools Yes, no flags, no downloads No — rung 1 is sufficient Microsoft Scout Built-in server No — file:protocol blockedYes GitHub Copilot CLI None N/A Yes — rung 2 is the only path The VS Code row was verified against this plugin's own demo. The Scout row was verified 2026-09-07:
browser_navigateto a local.htmlreturnsAccess to "file:" protocol is blocked. Do not assume a host that has a browser can open local files with it.The optional
alex-playwrightMCP server — fallback, or the only path. Use when rung 1 is absent, when rung 1 cannot openfile://and the artifact is local, or when rung 1 lacks console-error access and the defect you are chasing needs a cause rather than a symptom. Per the table above that is CLI always, Scout for local artifacts, and VS Code rarely. See Playwright MCP setup below. It carries real costs: a browser must already be installed,file://needs--allow-unrestricted-file-access, and it writes artifacts into the working directory.The human. Ask the user to open the artifact and describe what they see, or give them a specific checklist item to confirm. This is a legitimate outcome, not a failure — but it must be stated.
Never silently skip verification. If you reached rung 3, or if you have partial capability (see below), say so plainly in your report. An unverified chart described as verified is worse than an unverified chart.
Which capabilities you actually need
"Can open HTML" is not one capability — it is five, and hosts differ in which they provide. Establish what you have before interpreting what you see.
| # | Capability | Needed for | If missing |
|---|---|---|---|
| 1 | Open a local file:// |
Reaching the artifact at all | Fall back to a render_chart PNG/SVG, or rung 3 |
| 2 | Agent-readable output (screenshot or accessibility snapshot returned to you) | Steps 3–4 | You are on rung 3 — the human is verifying, not you |
| 3 | Console-error access | Step 2 — finding the cause | You can still see symptoms; say that causes were not checked |
| 4 | Element-scoped or scrolled capture | Multi-figure artifacts | Verify one figure per page-load, or accept reduced confidence and say so |
| 5 | Wait-for / re-capture after render | Anything JS-rendered (Vega-Lite, ECharts) | See the false-positive warning below |
[!WARNING] Capability 5 can manufacture a defect that isn't there. Vega-Lite and ECharts draw after page load. A screenshot taken too early shows an empty container — which is visually identical to the empty binding row in the failure catalog. Before diagnosing "empty binding", re-capture at least once and confirm the emptiness is stable. Diagnosing a race as a data bug sends the fix upstream into a spec that was never wrong.
When file:// is not enough
Default to opening the artifact directly. The VS Code integrated browser
supports http://, https://, and file:// URLs, and an
agent-opened file:// page needs no server, no flags, and no deploy. Reach for
something heavier only when one of these holds.
| Situation | What you actually need | Why |
|---|---|---|
| The page needs your login | Share the tab — not a server | Agent-opened tabs use isolated ephemeral sessions; shared tabs use your existing session including cookies and login state. Use the browser toolbar's Share with Agent, then verify there |
| You must prove what a human sees in a normal browser | A local static server, then http://127.0.0.1:<port> |
A page that fetch()es sibling files works in the agent browser and fails in real Edge or Chrome. See the warning below |
| You are in a remote workspace (Dev Container, SSH, WSL, Codespace) | Serve over http |
file:// URLs are not proxied over a remote connection; the tab shows a warning indicator instead |
| The artifact needs real routing, a service worker, or a remote API | A local server, or a deploy | These are origin-scoped and are inert or blocked on file:// |
| An enterprise network filter is active | Neither — the domain is blocked | ChatAgentNetworkFilter can deny domains outright. Report that rather than working around it |
[!WARNING] A pass in the agent browser is not a pass for the human. The agent browser permits
fetch()overfile://; Chromium in a normal browser does not. An artifact that loads its own content — a shell that fetches markdown, a report that pulls a sibling JSON — can verify green for you and be blank for the reader. When the artifact fetches anything, verify overhttp://before calling it done, and state which origin you verified against.
Probe by doing, not by asking: attempt the action against the real artifact and observe the result. Tool names vary between hosts; outcomes do not.
Step 2 — open it and read the errors first
- Open the artifact. For local files use the canonical absolute
file:///…form. - Read the console errors before looking at the picture. This is the check
that finds the cause rather than the symptom — a silently-failing inline
Vega-Lite spec throws to the console while still rendering a plausible-looking
page. With the Playwright server this is
browser_console_messagesat levelerror. - Then screenshot it.
Zero console errors plus a wrong-looking artifact means a spec, data, or layout problem. Console errors plus a right-looking artifact means you are probably looking at a stale render.
Step 3 — check the picture against the catalogs
Walk the chart table if it is a chart, and the general table for anything that is rendered as a page. Then, for multi-figure artifacts:
- Scroll each figure into view and capture it separately. A single full-page screenshot visually hides defects in unfocused figures.
- Check the axes have real domains — not
[0, 0], not a collapsed range, noundefinedticks. - Count the marks against what the data should produce.
- Search the rendered text for placeholders —
TODO,undefined,NaN,{{,Lorem. Search what rendered, not the source that produced it.
Step 4 — check the claim, not just the render
Every artifact worth verifying exists to carry a claim. For charts that is the
Big Idea from the chart-big-idea skill; for a report or diagram it is whatever
the surrounding prose asserts. A correct render of a wrong claim is still a
defect.
- Verify prose claims arithmetically against the plotted or tabulated values. If the caption says "less than a fifth of the noise", compute it. Order-of-magnitude overstatements in captions survive every automated check there is.
- Re-read the claim and ask whether the picture shows it. If the claim is
about a gap and the eye goes to a trend, the chart type is wrong — go back to
flint-chart§0.2, do not patch the styling.
Storytelling read-back
Read the artifact once as its intended audience, without relying on surrounding prose to rescue it:
| Check | Question |
|---|---|
| First focal point | Does the eye land on the evidence carrying the Big Idea? |
| Reading order | Do headline, context, marks, labels, and annotation unfold in a coherent sequence? |
| Context | Can the reader identify measure, population, time, units, and comparison baseline? |
| Accessibility | Does critical meaning survive without color through labels, shape, position, stroke, or texture? |
| Study cost | Is the treatment appropriate for the audience's available reading time and fluency? |
| Visual independence | Does the visual carry the claim without the explanation doing all the work? |
If the first focal point or reading order is wrong, return to chart selection, technique, or ThemeSpec. Do not compensate by writing a longer caption.
Mutation check (decision-bearing values)
Rendering checks confirm the picture drew. They cannot confirm the numbers are right, so a figure can pass every geometry, catalog, and accessibility check while asserting something false.
Before shipping a figure whose numbers drive a decision:
- Change one decision-bearing value in the source data.
- Regenerate the artifact.
- Require the output to change visibly, and any coupled check to fail.
- Restore the source bit-identically and regenerate once more.
If the output does not move, the figure is not reading the data it claims to read. Visual inspection does not find this, because the wrong number renders exactly as cleanly as the right one.
Check every surface carrying the value, not only the plotted marks: embedded data, visible labels, aria description, tooltip, caption, and any evidence-boundary text.
Composes with the mutation-testing skill, which applies the same idea to a
test harness. Adapted from the Executable Example Contract in an earlier
visual-storytelling curriculum, absorbed into this plugin.
Step 5 — report honestly
State which capability you used, that you looked, and what you checked. If you could not verify, say that instead. Never describe an unopened render as verified.
Playwright MCP setup
Fallback only — rung 2 of Step 1. Try the host's own browser capability
first; if it can open the artifact and return a screenshot to you, you do not
need this server. Check the per-host table in Step 1 before assuming that:
a host with a browser may still block file://. Measured against
@playwright/mcp@0.0.80:
Run setup-dependencies once after installing or updating Illustrator.
Its --check-updates mode compares the reviewed Playwright pin with the stable
dist-tag; a newer version still requires a browser-compatibility pass before the
source pin changes.
The server key is alex-playwright, not playwright. Some hosts — Microsoft
Scout among them — already ship a built-in server under the bare name, and a
collision silently shadows one of the two. The distinct key lets both coexist:
the host's for ordinary web pages, this one for file:// artifacts.
{
"servers": {
"alex-playwright": {
"type": "stdio",
"command": "node",
"args": [
"skills/setup-dependencies/scripts/runtime-launcher.mjs",
"playwright",
"--headless",
"--isolated",
"--browser",
"msedge",
"--allow-unrestricted-file-access"
]
}
}
}
Merge this additively into the existing server map — overwriting the file
destroys the user's other servers, including flint. Same per-host path table
as the flint-chart skill (.vscode/mcp.json for VS Code, .mcp.json for
Claude Code, .cursor/mcp.json for Cursor, ~/.copilot/mcp-config.json with
key mcpServers for Copilot CLI).
Why each flag
| Flag | Why |
|---|---|
--headless |
No visible window; this is a verification pass, not a demo |
--isolated |
No persistent browser profile — keeps the user's real session out of it |
--browser msedge |
There is no bundled browser — Playwright drives an installed one by channel. Edge ships with Windows, which is where most heirs are; the upstream default (chrome) is frequently absent there. Override with chrome, firefox, or webkit where Edge is not installed — typically Linux |
--allow-unrestricted-file-access |
Required for file://. Without it navigation is blocked outright. See the security note below |
Security note — read before enabling the file-access flag
--allow-unrestricted-file-access lets the browser read any file the user can
read. That is acceptable for verifying local artifacts you just produced. It is
not acceptable in combination with browsing untrusted web pages: a malicious
page can attempt to drive the agent into reading local files and sending them
out. Keep this server for local verification. If you need general web browsing,
use a separate configuration without the flag.
Do not enable browser_run_code_unsafe workflows for verification. Screenshot
and console access are sufficient; arbitrary code execution is not needed to
look at a chart.
Housekeeping
The server writes artifacts (accessibility snapshots, screenshots) into the
working directory. Add .playwright-mcp/ to .gitignore or they land in
commits.
Do not pass a bare filename to browser_take_screenshot. A bare name like
shot.png is written to the working-directory root, which is outside the
ignored folder and shows up as an untracked file in the user's repo. Either omit
filename entirely — the server then writes into .playwright-mcp/ — or give a
path inside that folder. Verified 2026-07-25: a bare filename leaked into
git status while the snapshot beside it did not.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Access to "file:" protocol is blocked |
Flag missing — the default blocks file:// navigation entirely |
Add --allow-unrestricted-file-access |
Browser distribution '<channel>' is not found |
No bundled browser — the selected channel is not installed on this machine | Switch --browser to a channel that is present (msedge / chrome / firefox / webkit), or run npx playwright install <channel> |
Server reports a version like 1.62.0-alpha-… |
That is the underlying Playwright library version, not the @playwright/mcp package version |
Do not pin against what the handshake reports |
| Tools never appear at all | Config in the wrong path or under the wrong top-level key | Same trap as flint — see the per-host table in the flint-chart skill |
Untracked .playwright-mcp/ in git status |
Working-directory artifacts | Gitignore it |
Anti-patterns
- Declaring an artifact done because the tool returned success. The tool reporting OK means bytes were written, not that the picture is true.
- Trusting a batch edit's summary line. When a multi-edit call reports "1 succeeded, 1 failed", verify which one landed by inspecting the file before re-rendering. The visible change is often not the one that succeeded.
- One full-page screenshot for a multi-figure report. Defects hide in the figures you did not focus.
- Verifying against sample data only. The failure mode this skill exists for appears when real data meets the spec.
- Installing the Playwright server on a host that already has a browser capability. Redundant dependency, extra config surface, no gain. Rung 1 before rung 2, always.
- Diagnosing an empty chart before re-capturing. JS-rendered charts draw after load; one early screenshot is not evidence of an empty binding.
- Screenshotting without reading the console. The console usually names the cause — a 404'd image, a failed font, a thrown spec error — while the picture only shows the symptom.
- Reporting a
file://pass for an artifact that fetches its own content. The agent browser is more permissive than the reader's browser. Serve it overhttp://first, or name the origin you actually verified against. - Standing up a server before trying
file://.file://is documented and usually sufficient. Escalate on evidence, not on habit. - Fixing a data or chart-type problem with a style tweak. Recoloring a mark that is wrong because two scales merged hides the bug instead of fixing it.
Related skills
chart-big-idea— Step 0.5 earn-a-figure gate + Step 4.5 focus discipline. Framing side of the same discipline.chart-vocabulary— Module 2 CSAR evaluation loop asks did the AI pick the right chart family. This skill's Prose-coupling check asks did the render match the message. Both fire on an AI-generated chart; different failure modes.flint-chart— spec authoring + Publication config preset. Verification runs against what this skill produces.print-svg-style-guide— the visual grammar the shipped SVG obeys. The failure-catalog entries in this skill fire when that grammar is violated.figure-generator— where the "fix in the generator, never in the SVG" rule for the SVG XML invalid catalog entry lives.corpus-qa-sweep— the corpus-scale companion. That skill sweeps every item against machine-checkable invariants and triages the flags; this one judges a single artifact against the failure catalog. Sweep to find candidates, then verify one.annotate-screenshot— inherits Step 2's open-and-read discipline for a different output. Where this skill judges whether a render says what it should, that one marks the answer onto the image, and its own failures (a badge covering the feature it points at, a clipped caption) are only visible by rendering and looking.
Would Revise If
Revise this skill by 2026-10-25 (90 days) or sooner if:
The mutation check never fails on a real figure across ~10 shipped charts. Either the pipeline is genuinely sound, or the check is being run as a formality. Confirm by seeding one deliberate defect before cutting the step.
The host's built-in browser tools gain or lose console-error access.
browser_console_messagesis currently the main capability that justifies the optional Playwright server at all.A host appears whose canvas renders HTML for the user but returns nothing to the agent. Capability 2 in Step 1 assumes "renders" and "agent can read it back" usually travel together. A surface that splits them would make rung 3 the common case rather than the exception, and Step 5's honesty requirement the most load-bearing part of this skill.
@playwright/mcpchanges itsfile://default. The security note and the flag table both assume navigation is blocked unless the flag is set.The integrated browser changes its
file://posture — either dropping support, or tighteningfetch()to match a normal browser. The Whenfile://is not enough table assumes agent-permissive and reader-strict; if they converge, both the table and the agent-browser-only catalog row collapse to one line.Agent-opened tabs gain the user's session. The auth row says to share a tab precisely because agent-opened tabs are ephemeral. If that changes, the row is wrong.
@playwright/mcpships a bundled browser by default. The troubleshooting row about installed-Chrome-by-channel would then be wrong.A failure mode recurs that is not in either catalog above. The tables are the load-bearing content; extend them rather than adding tooling.
The general catalog stays unused across several sessions. That would mean this skill is really chart-only in practice and the broader name overpromises — either narrow the name back or delete the general table.
Verification is consistently skipped by users, indicating the step is too heavy and should collapse into the
flint-chartrender step instead of standing as its own skill.