/subtext-verify:subtext-prooffrom subtext-verify
You MUST use this skill when implementing, fixing, or refactoring code. Captures evidence artifacts (screenshots, network traces, code diffs, trace session links) into a proof document as you work.
Ships in subtext-verify. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
PREREQUISITE — Read inline before any other action: Read skills
subtext-verify-shared,subtext-live,subtext-comments,subtext-docs.
Type: Rigid workflow — follow exactly. Skipping steps means unverified work ships.
Every code change that affects what a user sees must be visually proven. This skill creates a before/after evidence trail that proves the change works. No exceptions, no "it should look fine."
Always use live-view-screenshot with upload: true. This uploads the screenshot to cloud storage and returns a signed URL you can attach to comments and PRs.
live-view-screenshot({ connection_id, view_id, upload: true })
→ { screenshot_url: "https://..." }
Do NOT use artifact-upload for screenshots. It requires base64-encoding the entire PNG and frequently fails on large images. The upload: true flag on live-view-screenshot handles the upload server-side — smaller payload, no encoding issues.
Pass screenshot_url through verbatim — query string included. The full signed URL is the credential. Don't strip ?Expires=…&GoogleAccessId=…&Signature=… when copying it into PR descriptions, comments, or summaries — without those params GCS returns 403 and the image won't render.
To attach a screenshot to a comment:
live-view-screenshot({ ..., upload: true }) → screenshot_url
comment-add({ ..., screenshot_url, intent: "looks-good", text: "AFTER: ..." })
Every proof run creates a permanent record alongside the live session. This lets you — and any future reviewer — reconstruct exactly what changed, what it looked like before and after, and what evidence backed the decision to ship.
Create once, attach continuously, close at the end. Pass the verification seed template (see subtext-docs) unless you have a better fit:
doc-create(title: <task title>, content: <verification seed template from docs>)
→ doc_id, doc_url ← save both
The doc_id travels through every step below. The doc_url is the permanent link you hand to the user at the end.
Open a browser connection per subtext-live's connect flow — live-connect for remote URLs, tunnel-first (live-tunnel → tunnel-connect → live-view-new) for localhost. The hosted browser cannot reach localhost without the tunnel; see subtext-live for both flows in detail.
If the app isn't running, try to start the dev server yourself first. Look for package.json scripts (dev, start, serve), a Makefile, or a docker-compose.yml. Run the appropriate command in the background. Only ask the user if you can't figure out how to start it.
Read any existing comments with comment-list — prior feedback may inform your work.
Call doc-create with the verification seed template (or bug-fix / changeset if the context fits better). Save doc_id and doc_url.
Immediately print the trace_url from the connect step on its own line. (live-connect returns it for remote; live-view-new returns it for tunnel-first.) This lets the user watch the agent's browser in real time and gives downstream reviewers (including follow-up review in Subtext itself) a stable entry point to the recorded session.
Trace: {trace_url}
I'm connected to the app. Starting verification.
Do NOT bury the link in a wall of text. It goes first, on its own line.
While the trace is open, the human reviewer can leave comments or take browser control at any time. Between any two live-* calls in the loop below, call live-signal with the cursor saved from the previous call (omit since on the first call to baseline). New comments come back inline — read each, reply via comment-reply if it directs the work, and save the new cursor. The operator field on every response is the source of truth for control state. See subtext-live for the full response shape and operator-gate behavior.
Drive the browser to the exact page/component/state where the change will be visible.
Navigate to the right URL, click through to the right state
Call live-view-screenshot with upload: true — this is the BEFORE evidence. Save the returned screenshot_url.
Call comment-add with intent ask, passing the screenshot_url:
Attach to the proof document:
doc-attach(doc_id, section: "Before", render_as: "image", url: {screenshot_url}, label: "Before: {description}")
Judgment call: If the change affects multiple pages or states, capture BEFORE for each.
Edit files, update components, fix styles — whatever the task requires.
This is the only step where you leave the browser and work in the codebase.
After editing, attach the diff to the proof document:
doc-attach(doc_id, section: "Changes", render_as: "link",
text: {git diff output}, content_type: "text/plain",
label: {one-line description of what changed})
If a live-act-* tool returns Control transferred to human viewer, the reviewer has taken control. Enter standby — do not retry. Continue polling live-signal; when operator flips back to agent, resume UI-facing work. Backend changes that don't need visual verification can continue while you wait.
Return to the browser. Refresh, hot reload, or reconnect if the dev server restarted.
Navigate back to the same page/state from Step 3
Call live-view-screenshot with upload: true — this is the AFTER evidence. Save the returned screenshot_url.
Visually compare BEFORE vs AFTER against the original prompt intent or acceptance criteria
Call comment-add with the AFTER screenshot_url:
looks-good if it matches intent, bug if something is wrongAttach to the proof document:
doc-attach(doc_id, section: "After", render_as: "image", url: {screenshot_url}, label: "After: {description}")
Use live interaction tools to test the change:
live-emulate)If the AFTER doesn't match intent:
Call live-view-screenshot with upload: true, then comment-add with intent bug and the screenshot_url: "ISSUE: [what's wrong]. Fixing now."
Attach the issue screenshot to the proof document:
doc-attach(doc_id, section: "After", render_as: "image", url: {screenshot_url}, label: "Issue: {what's wrong}")
Go back to Step 4, make the fix
Return to Step 5, re-verify
Max 5 iterations. If you can't get it right in 5 tries, stop and share what you have with the user. Don't spin.
Once the change is verified:
Take a final live-view-screenshot with upload: true of the confirmed state
Call comment-add with intent looks-good and the screenshot_url: "VERIFIED: [summary of what was changed and confirmed]."
Attach the trace to the proof document:
doc-attach(doc_id, section: "Evidence", render_as: "link", url: {trace_url}, label: "Session trace")
Re-read the document (doc-read) and confirm a cold reviewer would understand what changed, what was tested, and why. Attach anything missing.
Close:
doc-close(doc_id, status: "complete", summary: {one sentence outcome})
If a PR exists or will be created:
trace_url and doc_url so reviewers can watch the session and read the evidence record## Visual Evidence
**Before:**

**After:**

**Session replay:** [Review the full session]({trace_url})
**Proof document:** {doc_url}
The screenshot_url values are signed URLs from live-view-screenshot with upload: true. They render directly in GitHub PR descriptions as inline images.
Always use when you modify:
.tsx, .jsx, .vue, .svelte.css, .scss, .less, .tailwind.html, .ejsSkip when:
Not sure? Use the skill. The cost of an unnecessary screenshot is near zero. The cost of shipping an unverified visual change is a bug report.
Comments you leave during verification serve two purposes:
Leave comments at every significant moment:
Think of these as commit messages for visual state.
| Change type | Verification depth | Share with user? |
|---|---|---|
| Functional fix (broken button, wrong text, missing handler) | Self-verify: BEFORE/AFTER screenshots + functional test | Only if it fails after 2 attempts |
| Aesthetic change (new component, colors, spacing, layout) | Full verify: BEFORE/AFTER + dark mode + mobile viewport | Always — aesthetic is subjective |
| Style-touching (CSS variables, theme classes, responsive) | Full verify + theme variants + viewport variants | Always — high regression risk |
If the change affects more than one page or state:
subtext-live (browser tools, returns trace_url), subtext-comments (annotations), subtext-docs (proof document)The polling discipline above keeps you in sync as long as you're actively
calling live-* tools. Long idle gaps inside a proof run — multi-minute
compilations, deep code work without browser tool calls, waiting on a build —
can leave the agent unaware of comments or control changes that arrived during
the gap.
On Claude Code, schedule an async heartbeat with /loop to cover that case:
/loop 60s call live-signal with trace_id=<id> and the saved cursor;
if signals[] is non-empty, summarize and route any actionable comments;
if operator=human, note "user has control" and stop input actions;
if signals=null and operator=agent for 5 consecutive ticks, call
CronDelete <job_id> and report "idle, loop stopped".
60s is the floor on Claude Code's scheduler. Stop the loop before Step 7
(/loop stop, or whatever your harness exposes) so async ticks don't
interleave with the closing summary.
Idle-stop is the unhappy-path equivalent. The trailing clause keeps a
forgotten loop from running all the way to its 7-day cron auto-expiry — if the
agent loses context, gets reassigned, or just forgets to stop the loop at Step
7, it self-terminates after ~5 quiet minutes (5 ticks × 60s) instead of polling
into the void. Pass the scheduled job id into <job_id> at /loop time so the
prompt can call CronDelete against itself. Tune the threshold for the task:
5 is forgiving enough that brief AFK moments don't trigger it, short enough
that a forgotten loop doesn't burn tokens overnight.
Other harnesses. Cursor, Codex, opencode, Gemini CLI, and Open SWE don't
expose an in-session scheduler equivalent to /loop. The in-context polling
discipline above is the supported path on those harnesses; the idle-gap case
isn't covered today and lands when the agent's next tool call fires.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
subtext-verify@subtext-marketplace is listed by fullstorydev/subtext — review the source before installing
npx claudepluginhub fullstorydev/subtext --plugin subtext-verify10 skills in this plugin
/subtext-commentsComment MCP tools for agent-user collaboration. Use when reviewing sessions or live pages to leave observations, read user feedback, reply, and resolve./subtext-docsProof document MCP tools for creating, updating, and closing agent work documentation. Use when tracking a bug fix, UX review, or changeset to produce a permanent, evidence-backed record./subtext-first-sessionAgent explores the user's site via hosted broswer (live), leaving comments as it goes. Accepts a user-described flow or explores organically. Capped at ~10 interactions across 2-3 pages. Returns session URL, trace URL, and metrics./subtext-liveLive browser MCP tools for driving a hosted browser — connections, views, interactions, console, network, and tunnel. Use when reproducing flows, taking screenshots, or interacting with a running app./subtext-onboardInteractive first-run onboarding for new Subtext users. Connects to the user's local dev server, proves a small change with before/after evidence in a watchable trace, then bootstraps a starter sightmap from what was learned./subtext-recipe-sightmap-setupShort recipe to create sightmap definitions for a project from scratch.