Creates a chaptered walkthrough of a changeset with inline diffs and exports it as a portable HTML file. Use for reviewing diffs, branches, PRs, or commits.
Ships in timmo-plannotator-guide. 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.
A guided review is a reading order for a changeset. Instead of a flat file list, the reader gets chapters. Each chapter says what a group of files does together and why, then shows those files' diffs. The result is one HTML file anyone can open in a browser.
Your job is the thinking: read the diff, understand it, write the guide. The CLI validates the guide, adds provenance, and writes the HTML.
Decide what the guide covers, then save exactly that diff:
git diff origin/main...HEAD > guide.patch # a branch, since it forked
git diff HEAD > guide.patch # uncommitted work
git show --format= <sha> > guide.patch # one commit
For a PR, check it out (gh pr checkout <n>) and diff against its base branch. New files that were never git added do not appear in git diff; run git add -N <files> first if the guide should include them.
You are a senior engineer who deeply understands this changeset and is organizing it into a guided review: an ordered sequence of chapters that let a reviewer understand a large change in one sitting. The chapters are ordered the way the work was actually reasoned through, not by file path or diff size.
You are NOT hunting for bugs. You are NOT writing a findings report. Your job is to chapter the diff and, for each chapter, tell the reviewer what changed, why it exists, and what it actually implies: the "this is a big diff, but here is the key part" orientation a reviewer cannot get from reading files in path order.
Write like a colleague explaining the change to another capable engineer, out loud, in plain English: assume the reader is skilled but has never seen this codebase. The diff renders next to your words, so your words carry the why and the shape of the change, not the code.
You are handed the changeset directly. Reading it once, carefully, is 90% of the job: you are organizing a diff you can already see, not auditing a codebase. Budget your research accordingly:
One line. If a PR/MR was given, use its title (verbatim, or lightly tightened for clarity). Otherwise derive a title from the nature of the changes themselves, what the changeset actually does, not a generic placeholder like "Code changes".
1-2 sentences: why this changeset exists.
Each section is a chapter of the review: a title, an overview, and one or more diff references.
Order by IMPORTANCE, not by file path, diff size, or the order things happened. The reviewer should be able to stop reading after any chapter and have already seen everything that matters most up to that point:
A section is a logical unit of change, not a file and not a folder. If three files changed for one reason, that is ONE section referencing three files. If one file has two unrelated changes, split it into two sections. Never default to one-section-per-file; let the logic of the change decide.
Chapters follow the natural fault lines of the work: when a changeset carries more than one distinct piece of work (two features, or a feature plus an unrelated refactor), give each its own chapter(s) — unrelated work never shares a chapter.
title: Concept-level, e.g. "Payment localization module". NEVER a filename paraphrase like "Changes to payments/locale.ts".
overview: Markdown, 2-6 sentences. Three jobs, in order:
> [!IMPORTANT] or > [!WARNING] callout line for a genuinely
high-risk behavioral shift or contract change; most sections should have
none.Markdown is supported and encouraged where it genuinely sharpens the prose, never as decoration:
refreshToken, --dry-run, SESSION_TTL.diffs: one or more file references. Each has two fields:
git diff --stat
prints renames as dir/{old => new}/file.ts; that is not a path, write
dir/new/file.ts.Always include unplacedFiles. Use an empty array when every changed file is placed. Changed files that don't belong in any section: pure noise, or leftovers so low-signal that forcing them into a section would dilute it. This should be rare for a well-scoped changeset; do not use it as a dumping ground to avoid writing an overview. A glue/wiring/config file usually belongs in the trailing grouped chapter instead of here.
Every changed file must appear in EXACTLY ONE place: either in exactly one
section's diffs, or in unplacedFiles. Never both. Never twice across
sections. Never omitted entirely. The files in guide.patch are the
authoritative file set: every one of them must be accounted for.
diffs[].file must be an exact path from the diff or the changed-files
list. Never invented, never abbreviated, never re-cased.Your job is to EXPLAIN and ORIENT the reviewer, not to critique the code. Surfacing implications and risk concentration IS orientation: "this section changes the session contract every client depends on" is exactly the job. Hunting for bugs is not; an overview is not a findings list. If you notice something that looks like a real bug while reading, mention it briefly in the relevant section's overview, but do not go looking for problems, and do not let critique crowd out explanation. Most overviews should mention zero bugs; that is normal and expected, not a sign you did not look hard enough.
{
"title": "Refresh auth tokens before they expire",
"intent": "Users were being logged out mid-session. Tokens now refresh in the background, and every API call waits for a fresh one.",
"sections": [
{
"title": "The refresh loop",
"overview": "Everything else hangs off `refresh.ts`. It schedules a refresh a minute before expiry and exposes `waitForToken()` so callers never race the refresh.",
"diffs": [
{ "file": "src/auth/refresh.ts", "summary": "New: scheduler and waitForToken()." },
{ "file": "src/auth/session.ts", "summary": "Stores the expiry alongside the token." }
]
},
{
"title": "Callers wait for a fresh token",
"overview": "The API client awaits `waitForToken()` before each request instead of reading the token synchronously. Small change, but it is why the guard works.",
"diffs": [
{ "file": "src/api/client.ts", "summary": "Awaits the token before sending." }
]
},
{
"title": "Tests",
"overview": "Fake clock; asserts a refresh fires before expiry and that a queued request gets the new token.",
"diffs": [
{ "file": "src/auth/refresh.test.ts", "summary": "Timer and race coverage." }
]
}
],
"unplacedFiles": [],
"review": { "gitRef": "origin/main...HEAD", "base": "origin/main" },
"generator": { "engine": "claude-code", "model": "claude-sonnet-4-5" }
}
The fields after sections:
review.gitRef is the label the reader sees for what the diff is; write the ref you actually diffed. base is optional.generator says who wrote the guide: the tool you are running in (engine) and, if you know what model you are, the model (model). You usually know because the tool tells you, in your system prompt or the model it was launched with; write it as given. If you are not sure, leave model out. Readers see it as "generated by". Optional.source (repo, branch, head) is read from git for you. When the guide is of a pull request, add "source": { "kind": "pr", "pr": { "url", "number", "title" } }.plannotator guide export --guide guide.json --patch guide.patch
If plannotator is not installed: curl -fsSL https://plannotator.ai/install.sh | bash -s -- --minimal (just the binary, nothing else).
On success it prints the path of the HTML file. On failure it exits 1 and says what is wrong: a file that is not in the patch (it lists the files that are), a file placed twice, a missing field. Fix guide.json and run it again. Never edit the patch to fit the guide. Add --out <file.html> to choose where the file goes.
Tell the user where the file is. It opens in any browser, from disk or a link.
plannotator guide share --guide guide.json --patch guide.patch
Same validation, but the guide is uploaded to guides.show and the command prints a URL. The upload is end-to-end encrypted by default: the host never sees the code, and the key is the part of the link after #, so anyone with the full link can read it. It also prints a delete token; give both to the user (plannotator guide unshare <id> --token <token> removes the link). Add --public only if the user wants link previews (the guide is then stored unencrypted). Only share when the user asked for a link; a file is the default.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/timmo-plannotator-guide:guided-reviewfrom timmo-plannotator-guide
timmo-plannotator-guide@timmo001-skills is listed by timmo001/skills — review the source before installing
npx claudepluginhub timmo001/skills --plugin timmo-plannotator-guideOther plugins' skills for the same job