End-to-end worked example showing how to write a visual spec from a spec.md excerpt. Calibrates tone, altitude, and HTML fragment selection for the Visual Spec agent.
Ships in plan. Installing the plugin adds it to Claude Code.
A tiny end-to-end example: a spec.md excerpt, then the HTML fragments it produces. Use
this to calibrate altitude and tone. Full markup per component lives in
component-catalog.md; this shows how to select from it for a real spec. (It uses the
same "Silent Token Refresh" feature as visual-architect's exemplar, so you can compare
the spec view with the plan view of the same work.)
spec.md (excerpt)# Product Specification: Silent Token Refresh
## 🎯 Executive Summary
* Goal: Keep authenticated users signed in by rotating expired JWTs transparently.
* Target User: End users with active sessions.
* Business Value: Fewer drop-offs caused by surprise logouts.
## 🛠️ User Stories & Workflows
- As an authenticated user, I want my session to stay alive while I'm active so that I'm
never logged out mid-task.
- As a security owner, I want tampered tokens rejected so that a forged token can't be
refreshed into a valid one.
## 📋 Acceptance Criteria
- Scenario: Expired but untampered token
- Given a token whose `exp` has passed
- When the client calls POST /auth/refresh
- Then a new token is returned and the original request retries
- Scenario: Tampered token
- Given a token with an invalid signature
- When the client calls POST /auth/refresh
- Then the API responds 401 and no token is issued
## 🚨 Constraints & Edge Cases
- A token may be refreshed for at most 24h after first issue.
- Refresh round-trip must complete within 300ms at p95.
Overview (VPO:OVERVIEW) — lead concrete:
<div class="grid cols-2">
<div class="card"><dl class="kv">
<dt>Goal</dt><dd>Transparent JWT rotation so active users stay signed in.</dd>
<dt>Target user</dt><dd>End users with active sessions.</dd>
<dt>Scope</dt><dd>2 user stories · 2 acceptance scenarios.</dd>
</dl></div>
<div class="card"><strong>Concrete walkthrough</strong>
<p>Token expires → client posts it to <code>/auth/refresh</code> → fresh token returned,
request retries — the user never sees a logout.</p></div>
</div>
User Stories (VPO:STORIES) — one card per story:
<div class="stories">
<div class="story">
<span class="story-id">US-1</span>
<div class="role">As an authenticated user</div>
<p class="want">I want my session to stay alive while I'm active</p>
<p class="benefit">I'm never logged out mid-task.</p>
</div>
<div class="story">
<span class="story-id">US-2</span>
<div class="role">As a security owner</div>
<p class="want">I want tampered tokens rejected</p>
<p class="benefit">a forged token can't be refreshed into a valid one.</p>
</div>
</div>
Acceptance Criteria (VPO:CRITERIA) — the centerpiece; every scenario rendered:
<div class="scenario">
<p class="title"><span class="tag">Scenario</span> Expired but untampered token</p>
<ul class="gherkin">
<li class="step given"><span class="kw">Given</span><span class="txt">a token whose <code>exp</code> has passed</span></li>
<li class="step when"><span class="kw">When</span><span class="txt">the client calls <code>POST /auth/refresh</code></span></li>
<li class="step then"><span class="kw">Then</span><span class="txt">a new token is returned</span></li>
<li class="step and"><span class="kw">And</span><span class="txt">the original request retries</span></li>
</ul>
</div>
<div class="scenario">
<p class="title"><span class="tag">Scenario</span> Tampered token</p>
<ul class="gherkin">
<li class="step given"><span class="kw">Given</span><span class="txt">a token with an invalid signature</span></li>
<li class="step when"><span class="kw">When</span><span class="txt">the client calls <code>POST /auth/refresh</code></span></li>
<li class="step then"><span class="kw">Then</span><span class="txt">the API responds <code>401</code></span></li>
<li class="step and"><span class="kw">And</span><span class="txt">no token is issued</span></li>
</ul>
</div>
User Flows (VPO:FLOWS) — one user-facing flow, with the mandatory source fallback:
<figure>
<pre class="mermaid">
flowchart LR
A[Token expires mid-session] --> B{Signature valid?}
B -- yes --> C[Issue fresh token]
C --> D[Retry request · user sees nothing]
B -- no --> E[401 · forced re-login]
</pre>
<figcaption>Refresh decision from the user's perspective (covers both scenarios).</figcaption>
<details class="src"><summary>Mermaid source</summary><pre>flowchart LR
A[Token expires mid-session] --> B{Signature valid?}
B -- yes --> C[Issue fresh token]
C --> D[Retry request · user sees nothing]
B -- no --> E[401 · forced re-login]</pre></details>
</figure>
Edge Cases & Constraints (VPO:CONSTRAINTS) — straight from the spec:
<ul class="constraints">
<li><span class="k limit">Limit</span><span>A token may be refreshed for at most 24h after first issue.</span></li>
<li><span class="k nfr">NFR</span><span>Refresh round-trip completes within 300 ms at p95.</span></li>
</ul>
Open Questions (VPO:QUESTIONS) — an ambiguity the Grill Loop surfaced but the user
deferred:
<p class="oq-summary">1 open · 1 high</p>
<details class="oq severity-high" open>
<summary><span class="chip high">HIGH</span> Cap the refresh chain for a stolen token?</summary>
<div class="body">The 24h window bounds it, but should a single token also have a hard
refresh-count cap? Product decision needed before the criteria are final.</div>
</details>
This spec is backend-only, so Wireframes / Prototype is omitted with a one-liner
("No user-facing UI in this spec"). Every visual element above traces back to a line in
spec.md — nothing new is introduced in the HTML, and nothing about how it's built
appears (no endpoints' internals, no data model, no code — that's the Architect's job).
What the agent file sets; muted values are Claude Code's defaults
7-day visitors to each agent page
@agent-ddobrin-plan-plugins-plan:visual-product-owner:references:exemplarfrom plan
Generated from the plugin's indexed repository (ddobrin/plan-skills) — no native marketplace selected
npx claudepluginhub p/ddobrin-plan-plugins-plan20 agents in this plugin
architect:architectarchitectChief Software Architect (Planning Mode) — reads spec.md, investigates the codebase read-only, and produces a micro-stepped, machine-readable plan.md with parallel execution groups and a test-first safety harness. Never edits source; never commits.auditor:auditorauditorQuality & Consistency Gatekeeper — verifies the Engineer's work against plan and spec with evidence-based static checks (file:line), runs the build and tests, hunts anti-shortcuts (TODOs, placeholders, gutted tests), and writes a PASS/FAIL audit report. Never fixes code; never runs git commit (version control is strictly the Supervisor's responsibility after a green audit and explicit user approval).engineer:engineerengineerExpert Builder — implements a task exactly as written in an approved plan.md using strict Test-Driven Development, atomic Red→Green→Refactor increments, characterization tests before touching legacy code, and a build kept green after every micro-step. Updates the plan's checkboxes; never commits; never expands scope.implementation-validator:implementation-validatorimplementation-validatorAdversarial implementation validator — dispatches 3 independent "skeptic" subagents that read the diff (git diff BASE..HEAD) and surrounding code trying to BREAK it — hunting real, code-grounded defects (finding-hunt mode) or refuting explicit acceptance claims (claim-refutation mode), default-to-reject. Dedups by file:line+id, keeps 2-of-3-confirmed findings, calibrates corrected severity, and writes a review document. Reasons about code; does not run the app.plan-deliberator:plan-deliberatorplan-deliberatorDeliberative plan improvement — dispatches a small panel of delegate subagents, each ASSIGNED a different territory (spec intent, a codebase subsystem, the delivery pipeline) to deep-read and speak for, relays their turns verbatim across bounded rounds (4 max), and drives them to converge on ONE jointly revised plan — deciding the trade-offs (migration strategy, group boundaries, scope) a validator can only flag. Generative counterpart to plan-validator; run plan-validator on the result afterward.plan-validator:plan-validatorplan-validatorAdversarial plan validator — dispatches 3 independent read-only "skeptic" subagents that assume the plan WILL fail, read the codebase to check the plan's assumptions against reality, and find the first domino (earliest step whose failure invalidates the rest). Findings cite file:line; keeps 2-of-3-confirmed findings, surfaces the 1-vote tail, and writes a review document.Other plugins' agents for the same job