/subtext-verify:subtext-onboardfrom subtext-verify
Interactive 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.
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-proof,subtext-live,subtext-tunnel,subtext-verify-shared, andsightmap-authoring(from Subtext) for the.sightmap/schema.
Type: User-facing workflow. Conversational. Three visible steps.
The goal: walk a new user through one real, useful Subtext run end-to-end. They watch live in the trace as the agent makes a small visible change to their running app, see before/after screenshots they can point at, and end up with a starter .sightmap/ file as a natural byproduct of the work. The trace itself stays valid after the run as a replayable recording.
Do not announce a "plugin setup" step. Trust that the plugin is installed — the user just ran a slash command from it. If the first MCP call below fails (server unreachable, auth missing), check that Subtext is installed and connected, and that the subtext-tunnel server is configured (see subtext-tunnel), then retry the call. Otherwise stay silent about plumbing.
Open with two short paragraphs — no banner, no checklist:
"Welcome to Subtext.
Subtext helps me learn your product, validate changes against the actual running app, and leave proof of work — recorded sessions, before/after screenshots, comment markers, and a sightmap of your components — that you and downstream reviewers can replay.
We're going to make one small visible change to your running app together. You'll watch it happen live in a trace you can replay later, see before/after screenshots, and end up with a starter sightmap your future agents can read. Should take about five minutes."
Print:
---
## Step 1 of 3: Connect
---
Ask the user for the URL of their local dev server. Be explicit about local:
"What URL is your local dev server running at? Something like
http://localhost:3000,http://localhost:5173, or whatever port you've got it on.It needs to be local — we'll be making a real code change in this session, and a hosted staging or production URL won't reflect a change you haven't shipped yet. If your server isn't running, fire it up now and come back."
Wait for the user's answer. Do not probe ports yourself. Do not read package.json and guess. Starting the dev server is the user's responsibility; you just need the URL.
If they paste a non-local URL, push back — explain the change won't be visible there — and ask again.
Once you have a http://localhost:… (or http://127.0.0.1:…) URL, follow the tunnel-first flow from subtext-tunnel:
live-tunnel() → connectionId, relayUrltunnel-connect({ relayUrl, allowedOrigins: [<base of the localhost URL>] }) → confirm state: "ready"live-view-new({ connection_id, url: <full localhost URL> }) → returns trace_url (and the initial snapshot)For onboarding the user only navigates to the URL they gave us, so a single-entry allowlist is correct. If their app turns out to redirect across subdomains (OAuth, multi-host dev), subtext-tunnel covers the trunk pattern that implicitly matches every subdomain.
If any of these calls fails because the MCP server is unreachable, check that Subtext is connected and the subtext-tunnel server is configured (see subtext-tunnel), then retry.
Print the trace_url immediately, on its own line, before saying anything else:
Watch along here:
{trace_url}
Tell the user briefly:
"I'm connected. Open that link in another window — you'll watch live as I work. The same link stays valid as a replayable recording after we finish, so you can come back to it."
Print:
---
## Step 2 of 3: Prove a Change
---
Ask for a small visible change. Give concrete examples so the user doesn't have to guess what counts:
"What's a small visible change you'd like to make? Things that work well:
- Text — change a heading or label (e.g., 'Sign Up' → 'Get Started')
- Style — color, spacing, sizing (e.g., make the primary button green; tighten padding around the hero)
- Visibility — hide or remove an element (e.g., remove the footer copyright line)
Keep it small — anything you can eyeball."
Once the user describes the change, follow the subtext-proof workflow you already read inline. Important:
connection_id and view_id from Step 1 in live-view-screenshot and comment-add calls.When proof's loop completes, recap to the user in a single message:
"Done.
- Before: {before_screenshot_url}
- After: {after_screenshot_url}
- Trace: {trace_url}
Does the result look right?"
If the user says no, ask whether to revert, retry, or stop. If yes, continue to Step 3.
Print:
---
## Step 3 of 3: Sightmap
---
Frame the why before writing anything. Say something like:
"Now I'll capture what I just learned about your app in a small
.sightmap/file. This is the artifact that makes the next run faster — the next coding agent (Claude, Cursor, Codex, anything that reads repo files) reads this YAML and already knows what these components are without exploring. They get committed to your repo so the head start travels with the code."
Then create or extend .sightmap/components.yaml using the sightmap-authoring schema. Include:
data-* attributes when present.sightmap-authoring for the full rule.Stay honest about scope: only describe what you actually touched. Don't pad the file with components you didn't interact with — those are best added when an agent works with them later, not speculatively now.
After writing, show the user the file and a brief commit pointer:
"Wrote
.sightmap/components.yaml. Commit it alongside your code change — it travels with the repo, and every future agent that reads it gets a head start."
Recap and point to next steps:
"You're set up. Recap:
- Trace — the recorded session of the change you just made: {trace_url}
- Before / After — {before_screenshot_url} → {after_screenshot_url}
- Sightmap —
.sightmap/components.yamlready to commitFrom here:
/proof— use this any time you make a UI change. Same before/after evidence loop, no onboarding wrapper./review— paste any session URL to get a structured summary, with optional reproduction steps on request.- Learn more about sightmap — read the
sightmap-authoringskill to teach agents about more of your app's surface (views, requests, scoped components, memory entries)."
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-proofYou 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./subtext-recipe-sightmap-setupShort recipe to create sightmap definitions for a project from scratch.