/ceh-build-plan:review-build-plan [plan-file]from ceh-build-plan
Load this skill when a build plan or spec exists and nobody has built from it yet, even for a quick look before building: review it on scope, engineering, content, design, and developer experience, and end with a verdict. Trigger on "review this plan", "just check the phases", "review the spec".
Ships in ceh-build-plan. 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.
Read a plan the way its builder will, before anything is built, and report everything that would stop the build or send it the wrong way. A plan error caught here costs one edit. Caught in phase four, it costs every phase built on it. Done means each applicable lens has run, every finding quotes the plan, and the verdict is delivered.
Find the plans. Take the paths from the arguments, one or several, or the newest plan in
the plan folder whose status is draft or ready, and say which. A slug given in place of a
path is matched as the format's Location section says. The format is in
${CLAUDE_SKILL_DIR}/references/plan-schema.md. Several plans get one review: steps 2 to 7
run once over all of them, and each plan gets its own findings, Record entry and saved review. With no plan but a spec (an issue, a PRD, a
spec file), review the spec with the Scope lens and the gap checks of step 5, and skip what
concerns phases. With neither, stop: there is nothing to review.
A plan/v2 plan is checked first. When <slug>.yaml sits beside the plan's .md, the
YAML is the plan: read and edit it, never the .md. Before acting on it, run
uv run --script ${CLAUDE_SKILL_DIR}/scripts/artifact.py check <slug>.yaml. When it exits 1
with errors, stop and report them, because a stage that acts on a broken plan builds the wrong
thing. When its only error is a stale .md, run the same command with render and go on.
When it exits 3 or uv is missing, say in the reply that the plan went unchecked, and go on.
After the last write to the YAML, run render.
Review from a fresh context when this session wrote the plans, or a plan already has a
review file. Dispatch one background subagent on the session's own model with every plan path
and ${CLAUDE_SKILL_DIR}/SKILL.md, told to run steps 3 to 6 on each and return one Output per
plan: the round's verdict, lenses, skipped, questions and unverified, and its
findings, as the plan-review/v3 keys of one round, returned as text and never saved. Never
give it a review file, so earlier rounds cannot anchor it. One subagent reads
the shared repo once, where one per plan would read it again for each. The author reads what
they meant, a fresh reader reads what is written, and only the second is what the builder gets.
A later round is a fix check, per Rounds below.
Read what the plan rests on: every file, route, model, and dependency it names in the
repo. Read no business plan, even when an older plan links to one: the review judges
the plan against the repo, the vision and the strategy only. A plan claim the repo contradicts
is a finding. A plan claim that contradicts the repo's VISION.yaml or STRATEGY.yaml in
.agents_workspace/product/, or its VISION.md or STRATEGY.md in docs/, the root, or
where the repo's CLAUDE.md says, is a finding too. When a
VISION.yaml or STRATEGY.yaml sits beside its .md, run
uv run --script ${CLAUDE_SKILL_DIR}/scripts/artifact.py check <file>.yaml before reading it
(formats in references/vision-schema.md and strategy-schema.md). On exit 1, stop and report its errors, because a review against a
broken source judges the plan by the wrong standard. On a stale .md alone, read the YAML
instead. On exit 2 or 3, or without uv, say in the reply that the file went unchecked, and go
on.
Run each lens that applies, and name the ones you skip with the reason.
| Lens | Applies | Asks |
|---|---|---|
| Scope | Always | Does In deliver the Goal, and is each item needed now? Does the core flow need anything under Out? Is there a cheaper path to the same Goal: an installed library, an existing component, a smaller MVP? |
| Engineering | The build includes code | Is each phase buildable from the ones before it? Does each Check prove its phase's Builds, or only that something runs? Are timeouts, retries, duplicate requests, and partial writes designed or left open? Do the Design's types rule out illegal states, is each shared value's writer named, and does each module expose only what its callers need? |
| Content | The deliverable includes documents | Is each document's reader named, and does In deliver what that reader needs? Is each claim's source decided? Does the structure fit the repo's existing index and numbering? Is each phase buildable from the ones before it? Does each Check prove the content, such as every claim sourced and every link resolving, or only that the file exists? |
| Design | The build has a user interface | Does every screen in scope have its loading, error, and empty state? Does the plan say what the user sees after each action? Is the core flow as short as it can be? |
| Developer experience | The callers are developers: lib, CLI, API | Can a caller reach a first working call from what the plan builds? Are names, error shapes, and defaults decided, or left to the builder? Does a breaking change get a migration path? |
Check the gaps every plan is checked for, whatever the lenses: an In item no phase builds,
a phase that builds something missing from In, a placeholder (TODO, ..., "adjust as
needed"), a name spelled two ways, a reference to a file, route, type, or field the plan never
defines, and any Design item from write-build-plan step 5 that applies and is neither
settled nor deferred.
Grade each finding. Blocking: the build would stop, go wrong, or build the wrong thing. Advisory: the build succeeds, but worse than it could. Then give the verdict (see Output).
Fix only on request. By default the review edits no plan content, because the plan belongs
to its author. It appends one Reviewed entry to the plan's Record (format in the plan format
file), as a record entry in a plan/v2 YAML or a line under ## Record in a plan/v1
Markdown plan, so the review stays part of the plan's trail. A spec that is not a plan gets no
Record line. When asked to fix, fix blocking findings first and advisory ones only after a
passing verdict, per Rounds. Edit the plan for each blocking finding whose fix the
plan or the repo already settles, put a finding that would change In or Out under Open as a
question with a recommended answer, and set status: draft while any blocking finding is open.
In the review file, set each finding it fixed to fixed with the edit as its resolution.
building plan, review the phases still todo or
unplanned. A built plan is checked against its build by
ceh-check-build-against-plan:check-build-against-plan, not reviewed.A review loop runs at most two rounds without asking: a full cold review, then one fix check.
lenses: [Fix check] and an empty
skipped.status: draft, and report the
open findings. A later run on a review file whose last round is a fix check that still blocks
asks the same question first, unless the owner's own request is to review again, which is the
yes and runs a full cold round.Why ask before round 3: a further round spends money, which the owner decides. Rounds 1 and 2 are the review and its fix check that the request already covers, and how many rounds a plan needs is not known up front, so asking once at that point is still asking once.
The review fills assets/plan-review.template.yaml, per the plan-review/v3 section of
references/plan-review-schema.md, one file per plan that every review of the plan adds a round
to. After the last edit, run
uv run --script ${CLAUDE_SKILL_DIR}/scripts/artifact.py render <file>.yaml, which writes the
.md beside it in the layout of assets/plan-review.template.md, and fix the YAML for each error
it lists. Never edit the generated .md. On exit 2 or 3, or without uv, say in the reply that the
review went unchecked and unrendered.
| Verdict | When |
|---|---|
| Ready to build | No blocking finding. |
| Revise first | Blocking findings, each fixable by editing the plan. |
| Rethink | A Scope finding changes what to build, or shows the Goal is out of reach as drawn. |
Save the whole review to the plan's review file in .agents_workspace/product/review/plan/,
because the Record line keeps only the verdict and counts, and the author fixing the plan in a
later session needs the findings and which are still open. Follow the schema's Review lifecycle:
<YYYYMMDD-HHMMSS>-<plan-slug>.yaml, the time from one date +%Y%m%d-%H%M%S call. A found
plan-review/v2 file is converted to v3 in place first.open finding against the current plan and set it
fixed, with the resolution found fixed in round <n>, where the plan no longer has the
defect.round: <n> and status: open, skipping one that
repeats an open finding and reopening one that repeats a fixed finding.The main session does this, never the subagent, which returns only its Output. Before merging the
round, read the cited plan line of every blocking finding, and drop one whose line does not say
what it claims, recording it in the round's unverified with the reason. Reply with the
verdict, the blocking findings, the findings still open from earlier rounds, and the path.
ceh-build-plan:implement-from-plan builds the plan phase by phase.assets/plan-review.template.md (opens in a new tab)assets/plan-review.template.yaml (opens in a new tab)assets/plan.template.md (opens in a new tab)assets/plan.template.yaml (opens in a new tab)assets/strategy.template.md (opens in a new tab)assets/strategy.template.yaml (opens in a new tab)assets/vision.template.md (opens in a new tab)assets/vision.template.yaml (opens in a new tab)references/plan-model.py (opens in a new tab)references/plan-review-model.py (opens in a new tab)references/plan-review-schema.md (opens in a new tab)references/plan-schema.md (opens in a new tab)references/strategy-model.py (opens in a new tab)references/strategy-schema.md (opens in a new tab)references/vision-model.py (opens in a new tab)references/vision-schema.md (opens in a new tab)scripts/artifact.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cheneeheng/ceh-claude-code-library --plugin ceh-build-plan4 skills in this plugin
/implement-from-planLoad this skill when building from a written plan: phase by phase, failing check first, only what the phase names, with each phase's check run and its evidence recorded. Trigger on "implement the plan", "build phase 2", "start building the mvp plan"./write-build-planLoad this skill before the first edit of a change that has no plan yet: a new app, tool or doc set, a feature added to existing code even when it sounds quick, or a multi-file change such as a retro's fixes. Writes one plan file. Trigger on "build me X", "add X to the app", "plan this"./write-technical-designLoad this skill when settling the technical design several features share, before any is planned, even if a README line seems enough: ARCHITECTURE.yaml. Trigger on "write the technical design", "pick the stack". Not for what is already built (use ceh-codebase-explanation:document-architecture).