agentleFS
duthahoduthaho/claudekit/skills/plan-review/SKILL.md

plan-review

Skill97 starsChanged 4 months agoMITView on GitHub

Use after a plan exists and before any implementation begins. Activate for keywords like "review the plan", "check this plan", "is the plan ready", "plan-review", "pressure-test the plan". Orchestrates two parallel reviewers — architecture and experience — consolidates their findings into one fix gate, and applies user-selected fixes to the plan. Always run before non-trivial implementation -- a plan that survives review costs less to implement than one that doesn't.

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use spec-review, design-review and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    spec-review

    Independent, multi-model review of a design or spec **before** any code is written, for the microsoft/winappcli repo. Activate when a contributor asks to "review this spec", "review my design", "review this design doc", "validate this approach", "should we build this", "spec review", "design review", or "feature review". Fans out parallel sub-agents — each doing its OWN research against the real codebase and ecosystem rather than trusting the spec — covering necessity & scope, approach & alternatives, feasibility vs reality, risks & unknowns, DX & user impact, and a different-model-family cross-check. Emits a decision-oriented recommendation (proceed / proceed-with-changes / reconsider) to stdout. This is the PRE-CODE companion to the pr-review skill (which reviews code already written); use spec-review at the design/spec stage, not on an implemented diff. Does NOT write code or edit the spec.

    Also in 3 projects that use this

  • AICreator-WindSkill

    design-review

    编码设计师工具。设计审计和修复。

    Also in 3 projects that use this

  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 4 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 9 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read it end to end.

    line 59
  2. Very specific:

    Check minimum bar: numbered task list, file paths cited, test commands named, Acceptance: lines present, ## Risks section present.

    line 60
  3. Very specific:

    If the plan fails the minimum bar, return to write-plan.

    line 62
  4. Very specific:

    Write a consolidated review artifact at docs/claudekit/reviews/<plan-basename>-review-<YYYY-MM-DD>.md with sections: ## Architecture (with …

    line 104
  5. Very specific:

    After each edit, append to the review artifact: Applied: <fix description> → <plan section affected>.

    line 140
  6. Distinctive:

    After all fixes are applied, re-read the plan and confirm it's still internally consistent.

    line 142

“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Plan Review

Overview

The plan-review orchestrator. Dispatches plan-review-architecture and plan-review-experience in parallel, collects scored findings from each (0-10 on five sub-dimensions), consolidates them into a single ranked fix list, asks the user to approve fixes, and applies the approved ones to the plan file. The skill exists because plans fail in two distinct directions — architectural soundness (data flow, failure modes, edge cases) and human factors (UX hierarchy, DX touchpoints, error states) — and a single reviewer rarely covers both well. Splitting the review into two specialist passes catches more, faster. Used between write-plan and implementation.

When to Use

  • A plan exists at docs/claudekit/plans/<basename>-plan.md (or equivalent) and implementation hasn't started
  • A plan has been substantially edited and you want a re-review before merge
  • Implementation has started and reviewers have flagged structural issues — back up to plan-review before continuing

When NOT to Use

  • The change is Trivial or Small (see README "Sizing the work") — plan-review is a Standard-tier step; smaller changes go straight to implementation and code-review-loop
  • A previous plan-review already passed and the plan hasn't changed since
  • You don't have a written plan yet (use write-plan first)

Process

Effort tier: plan-review is a Standard-tier gate — it earns its cost when a plan carries real design decisions across multiple files. Trivial and Small changes skip it; their safety net is verification-gate plus code-review-loop on the diff, which never skip regardless of tier. Reviewing a one-task plan is the kind of ceremony that teaches people to route around the gates that matter.

Step 1: Locate and read the plan

Goal: Confirm the plan file exists and meets the minimum bar to be reviewed.

Inputs: A path or filename for the plan.

Actions:

  1. Find the plan file. Default location: docs/claudekit/plans/.
  2. Read it end to end.
  3. Check minimum bar: numbered task list, file paths cited, test commands named, Acceptance: lines present, ## Risks section present.
  4. If the plan fails the minimum bar, return to write-plan. Do not run review on an underdeveloped plan — the reviewers will flag the same things in two different voices and waste cycles.

Output: Confirmation that the plan is review-ready, or a list of return-to-plan items.

Step 2: Dispatch the two reviewers in parallel

Goal: Get two independent reviews, each scored on 5 sub-dimensions.

Inputs: The plan file.

Actions:

  1. Dispatch claudekit:architect agent with the plan file. Sub-dimensions to score: data flow, failure modes, edge cases, test matrix, rollback safety.
  2. Dispatch claudekit:experience-reviewer agent with the plan file. Sub-dimensions to score: information hierarchy, state coverage (loading/empty/ error), accessibility, DX (error copy, API/CLI ergonomics), AI-slop avoidance.
  3. Both run in parallel. Wait for both.
  4. Each reviewer returns: a 0-10 score per sub-dimension, a list of findings, and a list of suggested fixes ranked by impact.

Output: Two reviewer reports.

Step 3: Consolidate findings

Goal: Merge the two reports into one ranked fix list.

Inputs: Both reviewer reports.

Actions:

  1. Combine the findings into a single list. Tag each finding with its source ([arch] or [exp]).
  2. De-duplicate. Findings that both reviewers caught get a [both] tag and higher priority — two independent passes flagging the same thing is signal.
  3. Rank by impact-on-implementation:
    • Blocker — the plan cannot be executed without this fix
    • Important — the plan can execute but will produce a regrettable result
    • Nice-to-have — improves clarity but isn't load-bearing
  4. Write a consolidated review artifact at docs/claudekit/reviews/<plan-basename>-review-<YYYY-MM-DD>.md with sections: ## Architecture (with sub-dim scores), ## Experience (with sub-dim scores), ## Consolidated Fixes (the ranked list).

Output: A single review artifact with a ranked fix list.

Step 4: User decision gate

Goal: Get the user's call on which fixes to apply.

Inputs: The consolidated fix list.

Actions:

  1. Present the consolidated list to the user via AskUserQuestion. For each blocker, the option is Apply or Acknowledge and skip with rationale. For important and nice-to-have, the option is Apply or Skip.
  2. Skipped blockers must be paired with a one-line rationale that goes into the review artifact. Skipped important/nice-to-have items don't need rationale but get logged.
  3. The user's choices form the apply-list.

Output: A list of fixes to apply, with skip rationales for any skipped blockers.

Step 5: Apply fixes to the plan

Goal: Edit the plan file to reflect the approved fixes.

Inputs: The apply-list.

Actions:

  1. For each fix, edit the plan file. Use the Edit tool, not by rewriting the plan from scratch.
  2. After each edit, append to the review artifact: Applied: <fix description> → <plan section affected>.
  3. After all fixes are applied, re-read the plan and confirm it's still internally consistent. Plans can drift during fix application; re-read catches that.
  4. Bump the plan's version stamp at the top: Reviewed and updated YYYY-MM-DD via /claudekit:plan-review.

Output: Updated plan file plus updated review artifact. Plan ready to execute.

Rationalizations

ExcuseWhy it sounds reasonableWhy it's wrongWhat to do instead
"Plan-review is overhead — let's just start coding."Some plans really are simple. Adding ceremony for trivial work is bad."Just start coding" is fine for one-file changes; plan-review exists for the cases that aren't. The cost of a 20-minute review against a 4-day implementation is the cheapest insurance you'll buy that week. The cases that feel trivial enough to skip review are also the cases where the buried gotcha hits hardest in the third PR.If your plan has more than 5 tasks or touches more than one module, run plan-review. The 20 minutes saves a round trip later.
"I only need one reviewer — architect is enough."Architectural review is the one most engineers think of when they think "review."One reviewer covers half the failure modes. The architecture reviewer won't notice that your error copy says "Internal error" instead of telling the user what to do; the experience reviewer won't notice that your DB migration has no rollback. Two independent passes catch ~2x the issues.Run both reviewers. They're parallel; the wall-clock cost is the slower of the two, not the sum.
"I'll skip the blockers I disagree with — they don't apply here."Sometimes reviewers really are wrong, and an author's domain knowledge can override review.Skipping a blocker silently is how plan reviews become advisory. The discipline is: skip is fine, but the rationale gets written down in the review artifact. If you can't write a one-line rationale, you don't disagree, you're rationalizing.Apply Step 4's rule: every skipped blocker gets a one-line rationale. The rationale is the receipt for your choice. Reviewers reading the plan downstream will see the skip and the reason, not just the absence.
"I'll fix the plan in my head and not bother editing the file."Mental updates feel faster than file edits.The plan you implement against is the plan in the file, not the one in your head. The mental version drifts during the days between review and implementation. The teammate who picks up a task sees the unfixed version and implements the unfixed plan.Edit the file. Use the Edit tool, not "I'll rewrite it cleanly." Each change is small; the cumulative edit takes minutes.
"I'll re-read the plan after applying fixes — but I'm sure it's consistent."After 5 surgical edits, "I'm sure it's still consistent" is a comfortable belief.Surgical edits drift. A fix that retitles task 4 may leave a Blocked by: Task 4 reference dangling somewhere. A fix that splits a task into two may leave the numbering inconsistent. The drift is invisible to the author but obvious on a fresh read.After Step 5's edits are applied, re-read the plan top to bottom. Catch the dangling references before the implementer does.
"This is Small so it skips plan-review — so it can skip the verification gate too."The tier model does say Small changes skip plan-review, so extending the logic feels consistent.It isn't consistent — it conflates ceremony with evidence. Skipping plan-review on a Small change is the tier model working as designed; skipping verification-gate/code-review-loop is the tier model being used as an excuse to ship unverified. Those two gates never scale by tier, precisely because "it was only small" is the story told after every small change that broke production.Skip plan-review for Trivial/Small — that's correct — but still run verification-gate and get code-review-loop on the diff. The gate is the one thing a smaller tier never buys you out of.

Evidence Requirements

CheckpointRequired artifactWhat "no evidence" looks like
End of Step 1Confirmation note or list of return-to-plan items"Plan looks fine to me."
End of Step 2Two reviewer reports, each with 0-10 scores per sub-dim"Reviewers said it's mostly OK."
End of Step 3Review artifact at docs/claudekit/reviews/<plan>-<date>.md with consolidated ranked fixes"I'll keep the findings in my head."
End of Step 4A list of Apply / Skip decisions; skipped blockers each have a rationale"I picked the ones I felt good about."
End of Step 5Plan file updated with each approved fix; review artifact appended with Applied: lines"I made the changes; should be good."

Red Flags

  • Both reviewers score every sub-dimension 9-10. Either the plan is unusually good (rare) or the reviewers are pattern-matching (common). Re-dispatch with more pressure.
  • One reviewer scores everything 9-10 and the other scores everything 4-5. The reviewers diverge wildly; read both reports yourself before consolidating.
  • More than 10 blockers. The plan needs to be rewritten, not patched.
  • A blocker's "fix" is a sentence-level edit. Fixes that small often mean the reviewer was nitpicking. Demote to "important" or "nice-to-have."
  • The user skips every blocker with rationale. Either the plan was reviewed by the wrong reviewers (mismatch in expertise) or the user is skipping discipline. Stop and check.

References

  • Software Engineering at Google, Wright et al. (O'Reilly, 2020), Chapter 9 "Code Review" — the case that review is most effective when reviewers cover distinct dimensions, not duplicated coverage. The two-reviewer split (architecture vs experience) operationalizes that principle for plan review.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.