/ceh-check-build-against-plan:check-build-against-plan [plan-file]from ceh-check-build-against-plan
Load this skill when checking whether finished work is what a plan said to build: every item built, nothing unplanned added, each phase's check still passing. Report-only unless asked to fix. Trigger on "check the build against the plan", "did we build what we planned".
Ships in ceh-check-build-against-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.
Compare the repo with what its plan said to build, item by item, and report every gap, deviation, and unplanned extra with evidence. Tests show that what exists works. This check shows whether what exists is what was planned, which no test can, because nobody writes a test for a feature that was never built. Done means every plan item has a status and the report is delivered.
Find the plan. Take the path from the arguments, matching a slug given in place of a path
as the format's Location section says, or the most recent plan in the plans folder whose
status is building or built, and say which. The format is in
${CLAUDE_SKILL_DIR}/references/plan-schema.md. With no plan, use the spec the user names: an
issue, a PRD, or a README section. With neither, stop: there is nothing to check against.
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.
List the plan items. One row per Scope In item, per Design decision, per Scope Out item (which must be absent), and per phase Check.
Check each item against the repo's files, and give it one status:
| Status | Meaning |
|---|---|
| Built | Present and matching the plan |
| Gap | Planned and missing |
| Deviation | Present, but different from the plan: a renamed field, another route path, a section in another order |
| Extra | Built, but listed under Out or absent from the plan |
| Failing | A phase marked done whose Check fails now |
| Cannot verify | The files cannot settle it, such as a check that needs a service you lack |
Run every phase Check that can run. Start the Checks that depend on no other's result and share
no state (a database, a port) in one response, and read the files for independent items the
same way. A phase marked done is evidence of when it passed, not that it passes now.
Fix only on a yes. The check changes no file and no plan content until the user chooses what to fix (step 6 only appends its Record line, and Output saves the report), because filling a gap is building and belongs to whoever owns the build. Fix the chosen Gaps and Deviations whose correct form the plan states, as Fixing findings says, rerun the affected Checks, and leave the rest reported.
Gate the fix with two reviewers, when asked ("gate it", "two reviewers", "don't trust one
pass"). It costs two extra checks per round, so it runs only on request. After the fixes,
dispatch two background subagents in parallel on the session's own model, each with the same
brief: the plan path, ${CLAUDE_SKILL_DIR}/SKILL.md, and "run steps 1 to 3, report only".
Neither sees this session or the other's report, so neither inherits the fixer's belief that
the fix worked. The build passes only when both report no Gap, Deviation, or Failing on an item
the fix touched. Otherwise fix exactly the items either one flagged, quoting its finding, and
nothing else, then gate again with two fresh reviewers. Stop after three rounds and report what
is still flagged, by which reviewer, and the fixes each round tried.
Record the check in the plan. Append one Checked entry to the plan's Record, as a record
entry in a plan/v2 YAML or a line under ## Record in a plan/v1 plan: the count per status,
each item that is not Built, and report <path> naming the saved report. It is the one write
to the plan a check makes, so the plan keeps how its build was checked. After a gated fix,
record the final round. Checking against a spec that is not a plan writes nothing.
path:line plus the line itself. A Gap quotes the plan line it is missing. A finding you
cannot quote goes under Unverified, not in the table.## Build vs plan: <plan path>
| Plan item | Status | Evidence |
| --------------------------------------------------- | --------- | -------------------------------------------------------------------------------------------------- |
| In: user can reset password | Gap | plan: "In: user can reset password", no route |
| In: November 2026 appendix in inference-and-serving | Gap | plan: "In: November 2026 appendix in inference-and-serving", no appendix-b-november-2026-update.md |
| Design: POST /items → 201 | Deviation | `app/api/items.py:41` `status_code=200` |
| Out: social login | Extra | `app/auth/google.py:1` `class GoogleOAuth` |
| Phase 2 check | Built | `uv run pytest tests/test_items.py`: 12 passed |
Below the table: counts per status, Cannot verify items with what would settle them, Unverified
findings, and, in fix mode, what was fixed and what was left. A gated fix adds one line per round:
each reviewer's verdict and the items it flagged. End with a verdict: Done when no item is Gap,
Deviation, Extra or Failing, Not yet when one is, Cannot judge when no item could be checked.
Save the report, checking against a plan, to
.agents_workspace/product/review/build/<YYYYMMDD-HHMMSS>-<plan-slug>.yaml, filling
assets/build-review.template.yaml per the build-review/v1 section of
references/build-review-schema.md, and name the path in the reply. Follow the schema's Review
lifecycle: a later check of the same plan finds its file and adds a round. Take
<YYYYMMDD-HHMMSS> from one date +%Y%m%d-%H%M%S call when the file is first saved. 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/build-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 report went unchecked and unrendered.
End by asking the user which findings to fix, once, after the report. Fix only the chosen ones,
directly, with no fix record or plan, because the work has not landed. A request that itself asks
for the change, such as "improve the error messages", counts as the yes for the findings it names.
Commit each fix on the current branch when it is a feature branch that fits the fix, otherwise on a
new fix branch, never on the default branch. Push nothing and open no pull request unless the user
asks, because landing is the user's call. Outside a git repository, make the edits and commit
nothing. For a subject inside .agents_workspace/, make no branch and leave the commit to the
workspace's own sync. With no user present, fix nothing and report the findings.
This skill fixes only Gaps and Deviations whose correct form the plan states, as step 4 says, and
records them in the round's fixed.
assets/build-review.template.md (opens in a new tab)assets/build-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)references/build-review-model.py (opens in a new tab)references/build-review-schema.md (opens in a new tab)references/plan-model.py (opens in a new tab)references/plan-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-check-build-against-plan