Durable State
- Resolve the canonical repo root and current branch or PR identity.
- Under
${XDG_STATE_HOME:-~/.local/state}/implementation-walkthroughs/, derive a deterministic safe filename from the repo root and PR number,
falling back to the branch name.
- Before analysis or writes, resume that file or create it automatically.
- Reconcile changes in place and mark only affected parts stale; change never justifies new state.
Persist this shape, omitting pr when no PR exists, and reconstruct broader context from the repository on resume:
{
"branch": "branch-name",
"pr": 123,
"summary": "One short description.",
"cursor": { "part": 0 },
"parts": [
{
"title": "Part title",
"status": "pending"
}
],
"environment": { "url": "https://example.test", "note": "Durable resume context." }
}
Prepare Quietly
- Reconstruct purpose, flows, impact, risks, dependencies, and non-scope from state, branch or PR context, diffs, commits, changed files, migrations,
config, docs, tests, and notes.
- Split work into coherent behaviors or implementation slices.
- Environment work is preparation, never a part. Verify a responding target URL in Chrome for web, or the built and launched target screen on a
device for mobile. Keep preparation invisible unless it needs the user's attention.
Walkthrough Loop
- Use warm, calm, gentle language and the final-answer shape below for walkthrough turns.
- Make every Do self-contained: include the exact target URL as a clickable Markdown link plus any required account or role, test data, starting
state, and navigation the URL cannot encode. Never tell the user to open or visit a named page without linking directly to it.
- Present only the current part and wait for the user's response before continuing.
- After each walkthrough turn, persist the cursor and each part's
pending, completed, skipped, or stale status.
- When the user requests a change, pause the walkthrough and handle the work normally, regardless of size. Remain in the detour until the user
explicitly asks for the next part, then reconcile affected parts before resuming.
Final-answer shape
Keep each part focused on product behavior, substantive changes, or core implementation.
## Side talk
Directly handle anything that does not belong in the current part. Omit this section when unused.
## Part <number>/<total> - <title>
**How it works**
A short plain-language behavioral explanation with the technical context needed now.
**Do**
One small, exact, self-contained action for inspecting or exercising the part, including the clickable target URL and everything needed to complete
it.
**Expected**
The observable result of that action.
1---2name: implementation-walkthrough3description: Gentle walkthroughs of implemented work.4---56## Durable State781. Resolve the canonical repo root and current branch or PR identity.92. Under `${XDG_STATE_HOME:-~/.local/state}/implementation-walkthroughs/`, derive a deterministic safe filename from the repo root and PR number,10 falling back to the branch name.113. Before analysis or writes, resume that file or create it automatically.124. Reconcile changes in place and mark only affected parts stale; change never justifies new state.1314Persist this shape, omitting `pr` when no PR exists, and reconstruct broader context from the repository on resume:1516```json17{18 "branch": "branch-name",19 "pr": 123,20 "summary": "One short description.",21 "cursor": { "part": 0 },22 "parts": [23 {24 "title": "Part title",25 "status": "pending"26 }27 ],28 "environment": { "url": "https://example.test", "note": "Durable resume context." }29}30```3132## Prepare Quietly33341. Reconstruct purpose, flows, impact, risks, dependencies, and non-scope from state, branch or PR context, diffs, commits, changed files, migrations,35 config, docs, tests, and notes.362. Split work into coherent behaviors or implementation slices.373. Environment work is preparation, never a part. Verify a responding target URL in Chrome for web, or the built and launched target screen on a38 device for mobile. Keep preparation invisible unless it needs the user's attention.3940## Walkthrough Loop41421. Use warm, calm, gentle language and the final-answer shape below for walkthrough turns.432. Make every **Do** self-contained: include the exact target URL as a clickable Markdown link plus any required account or role, test data, starting44 state, and navigation the URL cannot encode. Never tell the user to open or visit a named page without linking directly to it.453. Present only the current part and wait for the user's response before continuing.464. After each walkthrough turn, persist the cursor and each part's `pending`, `completed`, `skipped`, or `stale` status.475. When the user requests a change, pause the walkthrough and handle the work normally, regardless of size. Remain in the detour until the user48 explicitly asks for the next part, then reconcile affected parts before resuming.4950## Final-answer shape5152Keep each part focused on product behavior, substantive changes, or core implementation.5354```md55## Side talk5657Directly handle anything that does not belong in the current part. Omit this section when unused.5859## Part <number>/<total> - <title>6061**How it works**6263A short plain-language behavioral explanation with the technical context needed now.6465**Do**6667One small, exact, self-contained action for inspecting or exercising the part, including the clickable target URL and everything needed to complete68it.6970**Expected**7172The observable result of that action.73```