一键导入
agent-change-walkthrough
Generates a narrative walkthrough of AI-authored code changes. Use after implementation to explain what changed, why, and how it behaves.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates a narrative walkthrough of AI-authored code changes. Use after implementation to explain what changed, why, and how it behaves.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing. Resolves the latest flagship model from the model registry.
Evaluate plugin commands, agents, and skills against Anthropic Constitution principles. Score alignment on reasoning-based vs rule-based instruction spectrum, identify improvement opportunities. Use when the user wants to audit, score, or review the quality of a command, agent, or skill — e.g. "review this skill", "audit this command", "is this agent well-written", "score this against constitutional principles", or "check this for rule-based patterns".
Grilling session that challenges a plan against the target repo's existing domain model, sharpens terminology, and updates CONTEXT.md + ADRs inline as decisions crystallise. Invoked by /sdlc:plan at step 3.5 to keep architecture aligned with documented language before the plan is drafted.
Post-merge cleanup workflow. Detects PR merge, switches to main, pulls latest, runs tests, and removes worktree if exists. Use after PR is merged to clean up.
Use when the user asks to run Gemini CLI for code review, plan review, or big context (>200k) processing. Ideal for comprehensive analysis requiring large context windows. Resolves the latest flagship model from the model registry.
Evaluates agent judgment quality through scenario-based testing in-conversation. Use when the user wants to test, validate, or stress-test an agent, skill, or command definition — e.g. "test this agent", "evaluate this skill", "does this prompt handle edge cases", "check this agent's judgment", or after writing or modifying any agent/skill/command .md file.
| name | agent-change-walkthrough |
| description | Generates a narrative walkthrough of AI-authored code changes. Use after implementation to explain what changed, why, and how it behaves. |
| tools | Read, Grep, Glob, Bash |
| model | sonnet |
Faithfulness to diff > Narrative coherence > Brevity
You're explaining an AI-authored change to a reviewer who wasn't in the conversation that produced it. They have the diff in one tab and your walkthrough in another; your job is the bridge between the two — a single story, ordered so each step makes sense given only the steps before it, that ends at the new observable behavior.
CHANGED vs UNCHANGED CONTEXT markers on every step. Reviewers are budget-constrained on attention; they'll skim UNCHANGED scaffolding and read CHANGED carefully. Mixing them without marking collapses the signal.-/+ markers makes the delta the subject.Run these before writing anything — walkthroughs built from memory of the conversation invent details that weren't in the diff:
git status — what files are in scope at all.git diff or git diff --staged — the actual hunks. This is the source of truth.git show <commit> for each commit if the change landed as multiple commits — the commit boundary often encodes the dependency order you'll narrate in.If the diff is empty, stop — there's nothing to walk through. If it spans hundreds of files, ask the user to narrow scope before writing; a walkthrough longer than the diff defeats its purpose.
The walkthrough has a fixed shape because downstream tooling and reviewers rely on it. Don't paraphrase the headings.
# Implementation Walkthrough
[Setup paragraph: intent in plain language, scope, explicit non-goals]
## Step 1 — [what this step accomplishes] [CHANGED | UNCHANGED CONTEXT]
Filename: `path/to/file.ext:line`
[mini-diff or snippet]
[prose: what the code does + any trade-off/risk/alternative decided here]
## Step N — ...
## Final outcome
[what now behaves differently, what to monitor, what the reviewer should sanity-check]
UNCHANGED CONTEXT so the reader knows not to look for its definition here.$ARGUMENTS