/goal-workflow-skills:walkthroughfrom goal-workflow-skills
Generates a Phase-2 Walkthrough artifact (walkthrough.md) after implementation and verification. Captures change summary, verification steps with test output, visual proof (screenshots/recordings), and a review gate with diff and PR description for pre-merge staging check.
Ships in goal-workflow-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Once the agent finishes execution and verification, it outputs a walkthrough artifact: a single Markdown file that lets you quickly catch up on what was changed and what is proven to work, and lets you do a staging-check with Git before merging.
This is modeled on Google Antigravity's walkthrough plan: the agent is expected to prove the change works (unit tests + real browser behavior), capture visual evidence, and hand you a review gate — not just dump a diff.
/goal (or any implementation) plus its verification pass are complete — e.g., after /review-it / /verify / manual testing/ship-it, as the last checkpoint before commit/PR/mergetasks/ and present — write walkthrough-[feature].md, render it to HTML, summarize for the userThe first thing in the file. A PM, QA, a neighbouring team, or you in three months must be able to read only this section and know what changed and why they should care.
Required content:
Before / after, concretely — what the caller/user sees, not what the code does:
| 改之前 | 改之后 | |
|---|---|---|
| {用户/调用方看到什么} | {old behaviour} | {new behaviour} |
Why it changed — 2–3 reasons in plain words. If you cannot state a reason without naming a class, a flag, or a table, you do not understand the change well enough to write this section.
What the reader must do differently, if anything (call a new endpoint, run a migration, change the client).
Rules:
dryRun, draft_id, PriorityResolver are not explanations. Introduce the concept in plain words first, name it second.BAD (技术上没错,但读的人解不开)
> 把优先级的写入时机从「即时落库」改为「先返回 draft_id、确认后落库」
GOOD (同一件事)
> 用户改任务优先级时,以前客户端发一次就直接写进数据库;现在后端先把可选的优先级算出来
> 让用户挑一个,挑完才写。用户没挑就不写。
If the doc uses any of: internal flag/field names (dryRun), numeric interface ids (1001), domain terms an outsider can't decode (「归一化」「草稿」), or module names not inferable from the file tree — add a two-column mapping from the doc's wording to plain language.
| 文中说法 | 说人话 |
|---|---|
| `dryRun` | 开关:`true` = 只算不写,不传 = 老行为 |
| 「草稿」 | 算出来、还没落库的中间结果 |
The technical description, for a reader who is about to open the diff. This is where identifiers belong — the plain-language section already paid for them.
git diff, git log) and the Issue/PRD it servesProof that the implementation actually works — evidence, not assertion. Record what you ran and what it output.
go test ./... -run TestPriority
ok github.com/example/app 0.042s
Scenario: user sets a task's priority
1. open /tasks — renders list
2. click priority select on task #3 → pick "High"
3. reload — task still shows High ✓
Label the provenance of every claim. Three levels, and say which one applies:
| Label | Means | Example |
|---|---|---|
| 已实测 | You ran it, you have the output | 95 PASSED / 0 FAILED |
| 代码推断 | Read from the code or a unit test, not executed | 「没有优先级时回落 normal」(PriorityResolverTest 里有对应用例,但没跑) |
| 未验证 | Neither — and it must be said out loud | 「本机无数据库/缓存/外部服务,服务级行为未在本环境验证」 |
Never present 代码推断 or 未验证 as if it were 已实测. A walkthrough that overstates its evidence is worse than one with gaps, because the gaps are what the reader would have checked.
Record how you made the command run at all. If it needed a workaround — offline mode, a config override, an init script, a narrowed test filter — record it, otherwise the reader cannot reproduce your evidence.
./gradlew test --offline --rerun -I /tmp/no-failfast.gradle \
--tests "com.example.tasks.*" --console=plain
# 依赖仓库在本机不可达,必须加 --offline;构建脚本设了 failFast=true,
# 不覆盖的话第一条失败就停,看不到完整清单
Also record a baseline caveat whenever the runner's defaults would mislead: failFast hiding later failures, a test cache replaying stale results (--rerun), a suite that is already red before your change.
If the broader suite is red, trace every failure — do not write "unrelated". For each one, give:
| 失败用例 | 所属类最后修改提交 | 是 base 祖先? | 在本分支提交内? |
|---|---|---|---|
| `PriorityResolverTest > defaultsToNormal()` | `1a2b3c4d` 2026-01-15 | 是 | 否 |
A failure traceable to a commit before your base is pre-existing — say so with the hash, so the reader can re-check. A failure inside your range is yours, however unrelated it looks.
Screenshots or short screen recordings captured during browser testing, embedded directly into the file so it renders anywhere (GitHub, VS Code, browser).

On macOS you can capture a window with screencapture; for web pages prefer browser automation tooling (e.g. Playwright: npx playwright screenshot <url> tasks/shot.png, then read the PNG and embed it).).The final diff / PR description where you (or the user) staging-check the code with Git before merging.
Diff stat + file list: git status, git diff --stat HEAD, git diff --name-status
High-risk notes: call out force-pushed history, migrations, config changes, wide refactors, submodule pointer bumps
Deploy-order prerequisites (required whenever the change ships a DDL / migration / config key / feature flag) — state (a) exactly what must be applied, (b) how (manual vs automatic), (c) the failure mode if the order is wrong:
> `0042-add-priority-to-tasks.sql` 给 `tasks` 表加 `priority` 列。
> **不会被任何 compose 自动执行**(唯一挂载的 initdb 目录指向的是另一个路径),
> 必须手工应用到所有环境。实体已映射该列且 ddl-auto=none →
> 代码先上线会让**每一次** Task 查询抛 SQLGrammarException,
> 即整个服务的任务查询全挂,而非仅新功能不可用。
"记得跑一下 migration" is not enough. The reader needs the blast radius, because that is what determines whether they schedule it carefully or wing it.
Draft PR description: a ready-to-paste PR body (summary, test plan, Closes #N), mirroring /ship-it
Merge checklist: confirm tests green, review pass done, no stray artifacts in git status, commit messages reference the Issue
Multi-repo changes. If the work spans more than one repo:
Two files, same basename:
| File | Role |
|---|---|
tasks/walkthrough-[feature-name].md | Source. What you author and edit. Kebab-case, e.g. walkthrough-priority-system.md |
tasks/walkthrough-[feature-name].html | Deliverable. What you hand to a reviewer. Generated from the .md, never hand-edited |
The HTML is not optional — it is the artifact people actually read. It is light-themed
(warm off-white, serif headings, terracotta accent), self-contained (no CDN, no external
assets), and carries a fixed table-of-contents sidebar on the left built from the
document's h2/h3.
Render it with the script bundled with this skill:
python3 scripts/md2html.py tasks/walkthrough-[feature-name].md
# or, once installed:
python3 ~/.claude/skills/walkthrough/scripts/md2html.py tasks/walkthrough-[feature-name].md
walkthrough-[feature-name].html beside the input; pass a second path to override.--title "…" overrides the page title (default: the document's # H1).markdown package: python3 -m pip install --user markdown. If it is missing the
script exits with that instruction — relay it, do not silently skip the HTML.data: image URIs pass through untouched, so Visual Proof screenshots survive..md. A stale HTML beside an updated Markdown is
worse than no HTML: the reviewer reads the stale one.If the user passes a name (/walkthrough user-auth) or an Issue number (/walkthrough #42), use that. If the current branch is feat/issue-42-* or feat/priority-system, derive the feature name from it. Otherwise ask.
# Walkthrough — {Feature / Issue Title}
> Phase 2 walkthrough artifact · generated {date} · {author}
> {跨哪几个仓 / 分支名,若只有一仓则省略}
## Change Summary
### 先说人话:这次到底改了什么
{2–4 句,不含任何标识符。改之前什么样、改之后什么样。}
| | 改之前 | 改之后 |
|---|---|---|
| {用户/调用方看到什么} | {old behaviour} | {new behaviour} |
{为什么改,2–3 条大白话。}
{读的人需要做什么不同的事吗?}
### 术语表
| 文中说法 | 说人话 |
|---|---|
| {identifier / 数字接口号 / 领域词} | {plain meaning} |
### 技术摘要
{2–4 sentence high-level description — 到这里才允许出现标识符}
- {bullet: what was built/refactored/added/removed}
- {key files, components, pages, APIs}
- {requirement satisfied — link Issue/PRD}
## Verification Steps
### Terminal commands & unit tests
```bash
{exact command, including any workaround needed to make it run}
```
```
{actual output — pass counts, ok lines}
```
**provenance:** {已实测 / 代码推断 / 未验证} — {对每条重要结论标注}
{若跑不了:本机缺什么(DB/Redis/外部服务),因此哪一层未被验证}
{若更宽的测试面是红的,逐条列表并给出「是 base 祖先吗 / 在本分支内吗」}
### Automated browser testing
| # | Scenario | Action | Observed result | Status |
|---|----------|--------|-----------------|--------|
| 1 | {demo step} | {clicks / inputs} | {what happened} | ✅ / ❌ |
## Visual Proof

_{or: None — change is backend/CLI only}_
## Review Gate
```bash
git status
git diff --stat HEAD
git diff --name-status
```
{output}
### High-risk notes
{force-pushed history / migrations / config / submodule bumps}
**部署顺序前置** {仅当涉及 DDL / migration / 配置项 / 开关}
- 要应用什么:{文件路径}
- 怎么应用:{手工 / 自动;若「不会被任何东西自动执行」就直说}
- **顺序错了会怎样**:{blast radius,不是「功能不可用」而是「什么会一起挂」}
### Draft PR
{ready-to-paste PR body — Summary / Test plan / Closes #N}
### Merge checklist
- [ ] Unit tests / build pass (evidence in Verification Steps)
- [ ] Browser testing done where UI changed (evidence in Visual Proof)
- [ ] Review pass complete (/review-it)
- [ ] No stray artifacts in `git status`
- [ ] Commit messages reference the Issue
- [ ] 每条结论都标了 provenance(已实测 / 代码推断 / 未验证)
- [ ] 若有更宽测试面的红,逐条追溯到 commit 并说明是否在本次范围内
- [ ] 部署顺序前置已写清(含 blast radius),若有
- [ ] 多仓时:每个仓各自的文件清单/证据/分支状态都齐了
/walkthrough user-auth), use itfeat/issue-42-* / feat/priority-system / fix/issue-42-*, derive from the branch (strip the feat/ prefix and issue number)tasks/ (prd-*.md, spec-*.md), reuse its feature name| Scenario | Handling |
|---|---|
No changes detected (git diff empty, nothing new) | Say so plainly; do not fabricate a walkthrough |
| No tests exist | Note "no automated tests in repo" and rely on manual/browser verification evidence |
| Change has no UI | Visual Proof = "None — backend/CLI only"; browser-testing section marked N/A |
| Screenshot embedding fails | Fall back to tasks/*.png relative paths and note the files to commit alongside |
tasks/ directory missing | Auto-create it |
| Walkthrough already exists for this feature | Ask: update in place or overwrite? default = overwrite (fresh snapshot) |
| Verification couldn't be completed | Record it as a blocker in the Review Gate — never mark unverified work as proven |
| Broader test suite is red | Trace each failure to a commit (ancestor of base?) before writing anything. "unrelated" without a hash is not evidence |
| Change spans multiple repos | One section per repo + explicit "must merge together"; check each checkout — a repo you didn't open isn't verified |
| Change ships a DDL / migration / flag | Deploy-order prerequisite with blast radius is mandatory |
| Only part of the change is testable locally (no DB/Redis/external service) | Say which layer is unverified in this environment; a doc that overstates evidence is worse than one with declared gaps |
| Doc is heavy with internal identifiers | Add the plain-language opening + glossary. If the opening paragraph contains a flag name, it isn't written yet |
markdown package not installed | Relay the script's install hint (python3 -m pip install --user markdown); do not silently skip the HTML |
| Markdown edited after rendering | Re-run the renderer. Never leave a stale .html next to a newer .md |
| Document will be shared outside the team / into a public repo | Replace every repo-specific example (paths, class/table/column names, commit hashes, internal hosts) with a neutral one before writing |
/goal → /review-it → /walkthrough → /ship-it
│ │ │ │
execute find/fix proven + commit + PR
review gate
Before saving:
git status / git diff --stat + draft PR + merge checklisttasks/walkthrough-[feature-name].md.html and re-rendered after the last Markdown edit (left TOC sidebar present)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
walkthrough, verification, code-review, documentation, pr-description
npx claudepluginhub smallnest/goal-workflow --plugin goal-workflow-skills22 skills in this plugin
/article-iconsIllustrate an article (Markdown, HTML, etc.) with animated-style icons from itshover.com/icons. Fetches icons as clean inline SVG and places them at section headings, key concepts, lists, and callouts. Triggers on: /article-icons, 配图, 给文章配图标, add icons to article, illustrate with icons./code-to-specReverse-engineer a SPEC document from an existing project. Analyzes code, config, tests, and structure to produce a comprehensive specification. Triggers on: code-to-spec, reverse spec, generate spec, 逆向规格, 生成规格文档, 生成设计文档, 生成设计方案, extract spec, document this project, what does this project do./debug-itDisciplined bug diagnosis, performance regression forensics, and root-cause fixing: build a tight red-capable feedback loop -> minimise -> rank 3-5 falsifiable hypotheses -> instrument -> attack failed premises -> fix root causes -> lock down with regression test and proof. Triggers on: /debug-it, debug this, diagnose bug, root cause, perf regression, 排查 bug, 根因定位, 诊断问题, 性能退化排查.Other plugins' skills for the same job