/make-it-work:review-the-codefrom Make It Work
Reviews code changes and pull requests in three documentation-grounded passes (business correctness, regression safety, coding standards) plus a docs-sync check, emitting an evidence-dense, verdict-first report.
Ships in Make It Work. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
TDD testing scope: Before any testing-related work, read and follow the shared testing-scope contract. It overrides unconditional regression planning, baselines, suite runs and completion gates below. Propagate the saved choice to workers. New TDD plans/runs require this contract; do not resume artifacts from an older plugin version. For standalone review/strategy work without a TDD plan, retain the skill’s ordinary scope; a TDD caller supplies its saved testing scope.
For generated files under make-it-work/, follow the artifact naming, Git protection, usage and timing contract. Use helper-returned paths; new runs use miw- filenames and existing runs retain their saved convention. Before manually writing a new Markdown/JSON artifact, resolve its actual output with node "<base>/../../scripts/artifact-output.mjs" resolve --root <project-root> --directory <artifact-directory-relative-to-project> --name <logical-filename> and write/link the returned file/relative. Literal filenames below identify logical roles; do not bypass this resolver by writing those examples directly.
When owned by implement: follow ticket-scoped context discovery for absent or partial go-deep context. Use available guidance and scoped code/test evidence; do not require optional go-deep files, invent missing rules, or create onboarding structure. Explicit mandatory loading gates remain binding. This overrides the go-deep layout assumptions below only for implement-owned runs and must be forwarded to nested delegates.
/make-it-work:review-the-code [--autopilot]
--autopilot — unattended. At every interactive point below, apply the Autopilot Mode policy instead of pausing.This skill uses no AskUserQuestion calls today — every interactive point is a plain-text prompt. Autopilot answers each one in place rather than introducing a tool call where none exists.
Resolution table (one row per interactive site, in the order they appear):
| Step | Site | kind | Autopilot resolution |
|---|---|---|---|
| Step 0 | "ask the user for the pull-request link" | open_text | If the invocation already includes a PR link, use it (log it as already provided — this is not a guess). Otherwise resolve to the skill's own documented "No PR yet" branch: proceed without one, note it, and cite files by commit hash only. Never invent or look up a PR URL — Step 0's "never substitute your own guess" rule is about not picking which PR the user means among several candidates; it does not forbid this fixed, non-destructive fallback the skill already defines for "no PR yet." |
| Step 1 (Requirements) | "Is there a requirements file or ticket text I should review against?" | open_text | If requirements were already supplied in the invocation, use them (log as already provided). Otherwise answer "none provided" and let the skill's own documented fallback chain run unattended: attempt the ticket fetch (extract the ticket key from the branch name, fetch via whatever MCP issue-tracker tool is available in this environment); if that yields nothing, fall through to the branch-name/commit-message inference. Either way, the Coverage line's requirements-source field must say so, exactly as the interactive path already requires. |
| Step 1 (Base) | Source/destination branch confirmation | checkpoint | Auto-confirm a deterministic guess — current branch as source, the repo's default branch (main/master, or whatever git branch -r/PR metadata points to) as destination — exactly as if a human had accepted both suggested branches. If the two resolve to the same branch (e.g. running --autopilot directly on the default branch with no feature branch checked out), this is not a confirmable pair — there is no diff to review. Stop and require a human rather than auto-confirming a vacuous empty-diff review. Otherwise, record the confirmed pair in the Coverage line as usual. |
Hard-stop exception: no destructive action is flagged for this skill — autopilot never deletes, force-pushes, or discards anything. One caveat worth naming rather than silently assuming away: a re-run for the same ticket overwrites make-it-work/{TICKET}/{TICKET}-review.md from a prior run, in both interactive and autopilot mode — the interactive path has no overwrite prompt either (Step 7's Output format section just says "Save to..."). Autopilot therefore removes no human gate that existed before it. This file is a regenerable analysis artifact, not hand-curated source of truth (unlike, say, a plan file), so this is not treated as the hard-stop destructive-action exception — just documented here so it isn't mistaken for an oversight. One missing-input stop remains unconditional under --autopilot: the Step 1 (Base) branch pair resolving to the same branch on both sides, since there is no diff to review in that case — see the resolution table below.
Decision log: write make-it-work/<TICKET>/review-the-code-autopilot-log.jsonl at repo root, overwritten fresh at the start of each autopilot run. Field shape follows the shared schema in docs/autopilot-log-schema.md — this skill never reaches "askUserQuestion", so it omits multiSelect/question/options entirely; kind is only ever "open_text" or "checkpoint", and chosen is therefore only ever the free-text answer (open_text), a short string describing what was confirmed (checkpoint), or null for a site that stopped rather than resolving. Every line also still includes rationale (one sentence), per the shared schema's core fields. phase examples: "Step 0", "Step 1". site examples: "pr-link", "requirements-source", "branch-pair".
When Bash is permitted, use the shared writer in docs/autopilot-log-schema.md with --ticket "<TICKET>" for this log, invoking each writer command in its own Bash tool call; preserve the start-of-run timing and never use it to bypass a denied log write. Resolve the reviewed repository's absolute root once at the start of the run (for example, git rev-parse --show-toplevel, after resolving Step 0). Keep that same absolute path as <repo-root> for init, every append or write, and final verification. Do not substitute $PWD or the current working directory in later writer commands: reviewing or editing the report may change directories, which would write a second log under the wrong make-it-work/ directory.
Log a line for every site above on every run, including a site skipped because its input was already supplied in the invocation — mark chosen accordingly (e.g. "already provided in the invocation") so the log stays a complete, auditable record of the run rather than only the sites that needed a real decision.
At the end of an autopilot run, verify that <repo-root>/make-it-work/<TICKET>/review-the-code-autopilot-log.jsonl contains valid JSONL entries for pr-link, requirements-source, and branch-pair, then print a short human-readable summary of those resolutions and that absolute log path. An empty log or a log found only under another directory is incomplete; do not claim the autopilot log was saved.
Before that summary, verify that the required Tier 1 review file was actually saved at the path specified in Output format. A chat-only review is incomplete, including when the verdict is "Request changes" or no code edit is needed. If a write is denied, say that the durable review was not saved; do not claim the review deliverable is complete or bypass the denial.
Review changes in three passes, grounded in this repo's documentation — never from generic intuition alone:
uc-* skills), the Domain Validation Rules in .claude/rules/product.md, and the ticket's stated scope.domain-* skills), the Architectural Constraints in .claude/rules/architecture.md, and every other use case that flows through the same code.CLAUDE.md (already in context).A finding is reportable only if you can state a concrete failure scenario backed by evidence from the code (a specific input/state that produces a wrong output, a lost record, a wrong response sent to an external system, a misleading log). "This could be cleaner" is not a finding unless a CLAUDE.md guideline names it.
This is production code that moves real money or data on behalf of real customers. Review with that blast radius in mind.
Before doing anything else — before fetching requirements, before running any git command — ask the user for the pull-request link unless the request already includes one. The PR link is the findings anchor: it pins the exact head commit and gives the output its Bitbucket/GitHub/GitLab source URL for inline citations. One question, then wait (autopilot: see Autopilot Mode):
"Please share the PR link for this review (or tell me there's no PR yet)."
Requirements — the review's definition of intended scope, resolved in this order:
feature/TICKET-123-... → TICKET-123) and fetch it using whatever MCP tool is available for this repo's issue tracker (Jira, Linear, GitHub Issues, etc.).When an accepted refined spec is supplied, it defines the requirements, including explicitly accepted revisions; the original ticket is provenance/context. Review implementation plans against that spec rather than treating them as requirement amendments.
Whichever source is used, record it in the Coverage line. Scope-creep findings (Step 3) are only as strong as this source — with user-provided requirements they are authoritative; with inferred scope, phrase them as questions to the author rather than verdicts.
Base — always verify the branch pair before diffing: the review is only as valid as the source/destination pair it diffs; a wrong base reports other people's merged work as this PR's changes and buries the real diff. Always ask — even when a PR link is provided — before reading any code (autopilot: see Autopilot Mode):
Source (origin) branch:
<your best guess>/ other (type below) Destination branch:<your best guess>/ other (type below)
Derive the best guess from the PR metadata, branch name, and git branch -r output. Wait for confirmation before running git diff <base>...HEAD.
Enumerate paths before reading source. Use git diff --name-only <base>...HEAD to identify matching skills, then complete Step 2's loading gate before reading source or judging the diff. Once loaded, read each changed file in full at the reviewed commit. Findings frequently live in unchanged sibling code, so retain that context rather than judging isolated hunks.
The CLAUDE.md skill-loading gate applies to reviews. Before judging any changed file, load every matching skill via the Skill tool.
When implement supplies a target with review_requirements, follow its review-check contract. Load each minimum required skill and apply its relevant rules to the actual change; record observations in review_checks. Use session-domain rules for session/calendar fallback and test-strategy rules to determine expected checks, permitted deferrals and affected mappings. Names alone or another agent's loading claim do not complete the step.
Follow any stricter repository timing/method requirement, including loading before source exploration. Implement's inline-stage instruction applies to this review stage, not repository domain/UC skills. Record the actually loaded skills and method in Coverage; reading their diff only to check documentation is not prior loading. If required loading is unavailable, stop with the concrete blocker. If implementation admits it skipped a required gate, load the missing context and reassess the affected behavior; route any remaining defect normally and document the recovered omission rather than silently treating it as compliant.
How to find matching skills:
CLAUDE.md and locate the skill-loading gate section — it contains a mapping table of code areas → skills. Match each changed file path against that table and load every skill listed for it.CLAUDE.md has no explicit table, fall back to heuristics: any uc-* skill whose name matches the feature area touched, and any domain-* skill whose description covers the changed component.domain-* skill you loaded, read its list of the uc-* skills that use that domain (each domain skill enumerates them), and load every UC on that list. Cross-check that list against the User Journey Chains in product.md and the Functional Domains table in architecture.md so no flow is missed. This is especially critical when the diff touches shared infrastructure (services, utilities, models, enums, factories used by several flows): each of those UCs is a regression candidate, and you cannot spot the regression in Step 4 without its skill loaded here..claude/skills/test-strategy/SKILL.md when it exists — Test Map, How to Scan and Test Locations drive Step 4's mapping checks. Read <base>/../../docs/test-map-contract.md; inspect freshness, reuse unchanged relationships and refresh affected scope in memory. Never save map/strategy changes or modify source/tests, including under implement. Missing/malformed maps under the current strategy use temporary discovery across all placements; annotations are not required. The touched UCs/domains come from the plan's Domains/UCs Touched when implement supplies a plan, otherwise from the diff and loaded skills. With no strategy or an older strategy without ## Test Map, skip Step 4's two mapping checks, report mapping unavailable in Coverage and recommend define-test-strategy. Do not interpret tags or convert old rules.What each skill type provides:
uc-* skills → what the business flow must do; the Main/Alternative flows, invariants, and field mappings the changed code must preserve.domain-* skills → what architectural invariants must survive; the data contracts, status machine rules, and cross-cutting constraints the changed component owns.For each loaded uc-* skill, walk the changed logic against the documented flow and ask:
Hard architectural constraints — open architecture.md and locate its "Architectural Constraints" section (or equivalent). Each constraint listed there is a Critical finding if violated. Read them now and check the diff against each one.
Then hunt for the quieter regressions:
uc-* skill enumerated in Step 2 (the UCs the touched functional domains list as their users), not only the ticket's UC. For each one, trace its documented flow through the modified code and ask whether the new behavior still satisfies that UC's invariants and field mappings. A change that is correct for the ticket's flow routinely breaks a sibling flow that shares the same service, model, or factory — this cross-reference is where those regressions surface.result[0]) needs a soft-delete filter and a deterministic ORDER BY ... LIMIT 1. Compare with sibling queries in the same file — the codebase usually has a correctly-guarded sibling to point at."" and null. A value the old source guaranteed non-empty may now arrive empty and silently flip a business decision.CLAUDE.md (already in context) is the primary source of truth for this repo's conventions — apply what it states, not a remembered checklist from any other project. Also check the Claude rule files it references (e.g. under .claude/rules/), since standards often live there too, not only in CLAUDE.md. Read CLAUDE.md and those rule files, and turn each stated convention into a concrete check against the diff.
To make sure nothing is skipped, walk CLAUDE.md section by section rather than from memory. A standards doc commonly defines rules in categories such as: general engineering principles (scope discipline, DRY/KISS, readability), naming conventions, logging/observability, type safety, error handling, architectural layering, configuration/secrets, security, and testing. For every such category your CLAUDE.md actually defines, check the diff against the specific rule it gives — and ignore any category it doesn't mention. If CLAUDE.md names a rule this list doesn't, it still applies; if this list names one CLAUDE.md omits, drop it.
Severity follows the same calibration as everywhere else: a violation that changes behavior or hides a defect ranks higher than cosmetic hygiene (naming, missing explicit types, import order), which is Minor unless it demonstrably conceals a bug in this diff.
Unresolved test-preparation stub check. If this repo uses make-it-work’s TDD pipeline, inspect the diff for both write-the-tests stub — pending implementation and the legacy plan-the-work stub — pending implementation marker. Standalone test preparation can create declared minimal signatures; planning no longer writes them. Any match reaching this PR is, by definition, an unfinished step that never got real implementation — flag it as a Critical finding naming the exact file/line, regardless of what other category it might also fall under: a stub reaching review means the branch was merged (or is being reviewed for merge) before execute finished the plan it came from.
CLAUDE.md's "After Any Feature Change" section (or equivalent) makes skill/doc updates part of the change itself — review them like code:
uc-* / domain-* skill file must be updated in this same diff. Missing update → Major finding naming the exact skill file and what it should now say.uc-* skill must exist and be registered in CLAUDE.md's UC table and product.md's UC summary. New service/provider/route/domain → architecture.md's tables updated.Record the outcome in the Coverage line (docs-sync: uc-02, uc-05 updated ✓ / docs-sync gap: uc-05 not updated for sourcing change).
Adversarially re-check every candidate finding before writing it down:
git blame / diff base when unsure.) Pre-existing issues go in a short separate note, never in the numbered findings.A newly added endpoint or behavior remains introduced even if siblings follow the same pattern. Assess policy and impact independently. Similar authentication, authorization or error handling elsewhere is context, not a waiver or proof of acceptability. If access policy/platform enforcement is unknown, retain the uncertainty and needed verification instead of declaring a vulnerability proven or dismissing it as pre-existing.
For verification qualifications, distinguish an inspected rationale from an executed check. Do not call an introduced diagnostic "type noise only", a build "unaffected", or runtime impact absent merely because similar diagnostics already exist; record the supporting evidence and leave untested impact unverified.
Apply compilation evidence and branch provenance. A failure inherited from another commit may stay outside this ticket's fix scope, but remains a branch build failure. Evidence about the ticket's starting revision is not evidence that the PR destination already failed; unknown destination provenance stays unknown without requiring a baseline build. Preserve the actual compiler exit and complete raw output before filtering; command startup failure means compilation was not performed. Passing tests on emitted JavaScript do not establish successful TypeScript compilation. Carry these qualifications through existing validation_notes; no new compilation gate or approval is added.
For a failed lint/typecheck/build command, use available revision-bound diagnostics and source history to distinguish inherited from introduced failures, not just total counts or a similar error elsewhere. If baseline execution evidence is absent, retain that qualification; do not require a baseline build. A diagnostic in a new file is introduced even if its underlying shared typing defect is older. Investigate the cause and route a real new failure under the normal severity rules. If an evidenced shared-tooling limitation justifies a nonblocking qualification, record the exact introduced diagnostic, rationale, unchecked impact and follow-up in validation_notes: ["..."]; otherwise fix it. Unknown baseline comparison remains unknown. Never place introduced diagnostics under Pre-existing or imply the whole command's failures were unchanged. Validation notes are retained in report/chat, final assurance, package and delivery text; they do not override actionable findings or required stops.
3. Do the file/line references match the reviewed commit?
Drop anything that fails these checks. Report every verified finding in the changed region in the same review — finish the Step 3 state-space enumeration for each changed function or path and don't stop at the first Major; a latent gap that surfaces one finding per review cycle forces repeated fix rounds. A short list of confirmed findings is worth more than a long list of maybes — every false positive costs the reviewer's trust.
Read the review renderer contract. After semantic verification, use required scripts/review-report.mjs to validate source locations and derive counts, verdict, report tiers and version-1 handoff from one findings object. Do not manually produce contradictory Markdown/JSON. Existing report shapes below describe the rendered output; legacy implement callers still retain their outcome-line behavior without a new handoff.
For working-tree reviews, supply review_scope with each inspected repository, its base, comparison (branch or working-tree) and exact reviewed paths. Include only inspected paths; the writer snapshots their diffs, not proof of semantic review. branch covers merge-base through the current working tree; working-tree covers HEAD through current working tree, excluding earlier branch commits. Later delivery compares against the complete branch diff and discloses missing or changed coverage. Committed/legacy reviews without this evidence retain unknown scope.
Supply ui_verification: {status, note}. For UI changes, check the available browser tooling and use it to exercise the changed behavior and inspect layout and relevant states. Treat an upstream claim of unavailability as context to verify, not a prescribed disposition; absence of a dedicated browser tool alone does not establish that a local browser runner is unavailable. passed requires actual observations in note; unavailable browser access/setup uses pending with the availability check or failed attempt, a concrete reason and unchecked behavior. Use not-applicable with a reason when no UI behavior is affected. Code inspection and unit tests do not establish browser verification. Route observed failures through the ordinary findings rules. Missing evidence remains pending and must be visible in the review and completion report; it does not add a blanket browser gate for all changes.
Deliver the review in two tiers — a durable, pasteable report in a file, and a scannable summary in chat. Both lead with a verdict so the reader knows the outcome before reading a single finding.
For the saved report, follow report-writing guidance. Write each finding's claim and evidence in plain language: problem, practical consequence, and recommended correction. Supply meaningful coverage and verification limitations; the renderer adds the opening from these existing facts. Keep the compact chat summary and required machine-readable lines unchanged.
Save to make-it-work/{TICKET}/{TICKET}-review.md (create the make-it-work/{TICKET}/ directory at the repo root if it doesn't exist), or to the path the user specifies. PR-comment style — verdict first, then findings, no checklist boilerplate:
The file write is a required step of every completed review. Save it before
printing Tier 2, then confirm it exists; do not substitute the chat summary
or a ReportFindings tool call for the report file.
### Code review — {TICKET} (<branch>, <reviewed commit short-hash>)
**Verdict:** <Approve | Approve with nits | Request changes> — <N Critical, N Major, N Minor>
**Solid:** <one line on what the change does well — omit if nothing noteworthy, never pad>
Found N issues:
1. **[Critical]** <one-line claim>. <Evidence-dense paragraph: what the code does,
the concrete input/state → wrong outcome, comparison to the sibling/guarded code
if one exists, and the specific fix.>
`path/to/file.ts:123` — <skill/rule violated, e.g. uc-02 / architecture.md constraint / CLAUDE.md logging>
Introduced by fix of: <#N | none> (implement-mode re-reviews only; omit otherwise)
2. **[Major]** ...
**Pre-existing (not blocking)**: <only if something severe was noticed in unmodified code>
**Coverage**: diffed `<base>...<head>`; skills consulted: <uc-/domain- list>; requirements source: <user-provided file/text | ticket TICKET-123 | inferred from branch and commits>; docs-sync: <updated skills verified | gaps flagged | not applicable>.
When the reviewed commit hash is known, link each finding to the source file at that commit using the repo's hosting URL (e.g. https://github.com/org/repo/blob/<commit>/path/file.ts#L123 or the equivalent for Bitbucket/GitLab).
Print a compact, scannable version in chat — the verdict, one line per finding (severity + claim + file:line), and a pointer to the full report. No evidence paragraphs; the reader opens the file for those.
Verdict: Request changes (1 Critical, 2 Major)
1. [Critical] <one-line claim of the defect> — <file>:<line>
2. [Major] <one-line claim of the defect> — <file>:<line>
3. [Major] <one-line claim of the defect> — <file>:<line>
→ full report: make-it-work/{TICKET}/{TICKET}-review.md
In an implement-mode re-review, append (introduced by fix of #N) to a finding's line when its Introduced by fix of: field names one.
When there are no findings, say so plainly in both tiers — Verdict: Approve — no issues found plus the Coverage line — and don't invent filler.
Severity:
any, missing explicit types) unless it demonstrably hides a defect in this diff, typos in messages, log-format inconsistencies, import order, DRY suggestions, missing/stale shared-index entry for a relevant changed test, touched UC/domain with no evidence-backed test relationship after complete assessment.Causal-chain citation: when a finding's impact runs through unchanged code — an exception caught by a generic handler, a downstream consumer, a shared utility — cite the whole chain, not just the diff line: the changed line that introduces the behavior AND the unchanged handler/consumer where the consequence materializes (file:line for each). The author must be able to verify the claim without re-tracing it.
Do not flag: pre-existing issues (separate note only), formatting the linter will fix automatically, intentional pattern-breaking in test mocks/stubs, style preferences no CLAUDE.md rule names, optimizations without a measured need.
Workspace runs owned by implement: when supplied workspace_contract (workspace_version: 1), read the workspace contract before detection or artifact writes. Its artifact root and approved repository IDs/roots/branches/bases override standalone layout detection, any requirement for root CLAUDE.md, and repo-root artifact assumptions. Run source/Git/test operations in the explicit named repo; keep workflow artifacts under the supplied artifact root. Assess only approved scope, including selected test repos. Return newly affected repos or required branch changes before edits there so the parent obtains user confirmation. Forward the contract to nested skills and delegated agents. This override does not change standalone or legacy single-repo behavior.
Activity ownership — follow implement's activity contract. The parent session saves the independent-review description before dispatch and retains it while awaiting this report. This review subagent must not write workflow activity or dashboards; return the review result for the parent to checkpoint.
This section applies only when /make-it-work:implement dispatches the review; a standalone review ignores it entirely and runs every step above as written.
Inputs — the dispatch prompt provides: the ticket key, the spec path, the current plan path (absent in Lightweight mode, which has no plan), the base branch, the literal no PR, the review cycle number, the list of known unrelated regressions (may be empty), and the list of decided findings (may be empty).
When the prompt also provides a verification-ledger path, read it with the plan's AC traceability table. Check whether each claimed automated/manual verification has actual step evidence and call out unverified criteria in the report's coverage discussion; do not infer AC coverage from a passing full suite alone. This is an evidence review, not an instruction to rerun tests. For acceptance_evidence_version: 1, compare the clause inventory with every material condition/output in the accepted spec, then inspect the cited test assertions or retained manual observations. Verify the evidence actually asserts each clause, including included/excluded data, boundaries, ordering, error paths and parity where required. A passing named test that only asserts a total does not prove ordering or parity. Missing clauses and unsupported verified claims are findings; genuine unverified rows stay visible. This is source/evidence inspection, not a request to rerun tests. The absence of the optional path on an older run changes nothing.
Read the frozen target's verification_context when present, including policy provenance, retained user decisions and their explicitly unverified criteria. A retained decision provides context; it neither changes the accepted spec nor establishes a successful check. Distinguish an intentional manual policy from an omitted required automated test, and independently report missing observations, unsupported success claims and requirements conflicts. In Lightweight mode this context still applies even though there is no plan or ledger.
For internal-only access, inspect available service/gateway enforcement rather than inferring protection from a URL prefix or an existing controller pattern. If infrastructure evidence is unavailable, record the requirement as unverified and recommend obtaining that evidence. Documenting an assumption or accepting its risk is not verification of enforcement.
When the plan has ## Verification Policy, review its per-repo choices alongside that evidence. For manual repos, check the concrete actions/observations and nearby regression scenarios; automated coverage remains unavailable even after successful manual verification. An unperformed manual scenario or a missing AC observation is a verification gap, not evidence of success. Mixed policies require both automated results and manual observations. Proposals in a strategy's ## Recommended Setup are not installed tooling or executed tests.
Skipped prompts — do not run Step 0 (PR link), and skip Step 1's requirements question and its branch-pair confirmation. The requirements source of truth is the current accepted refined spec, including its explicitly accepted revisions. The original ticket is provenance/context; refinement may legitimately complete or change it. The plan describes how to implement the spec and cannot amend its requirements. Read the spec and inspect the diff before reading the plan, then check both code→spec and plan→spec. Inspect assumptions, scope exclusions, deferred behavior and reference deviations for conflicts with the spec; these are review subjects, not automatic defects. A plan approval or a Decided finding does not authorize a requirements deviation unless that decision was explicitly incorporated into the accepted refined spec. Cite the affected spec criterion and inspected evidence for each conflict. A clear code/plan defect with an unambiguous correction within the spec routes to fix or replan as appropriate. A contradiction requiring a requirements decision routes to human, even if the code follows the plan; it cannot receive CLEAN. Never resolve such a conflict by reverting to the original ticket or silently changing the spec.
Delivery scope contract — when supplied review_scope_version: 1, read the
parent's exact review_target JSON and verify its dispatched hash before judging
the change. Its repo roots, base/merge-base and complete path list are the same
snapshot final packaging will deliver, including earlier branch commits. Read
its binary-safe diff artifacts and inspect every affected file. Do not override
it with a HEAD-only or current-ticket-only diff, or exclude inherited files
because they predate this run. Distinguish inherited work's requirements from
the current accepted spec; inspect it against its available project context and
record any material limitation honestly rather than inventing requirements.
Write through scripts/review-report.mjs with the supplied review_target and
review_target_sha256, plus implement.review_scope_version: 1. Keep the target
field artifact-relative exactly as returned by scope preparation. For example,
review_target: "make-it-work/DEMO/<returned-target>.json" stays relative even
when you resolve it against the artifact root to read the file. Copy the supplied
hash unchanged; do not construct the target filename or replace the field with
its absolute read path. The input file itself can use an absolute path:
node "<plugin-base>/scripts/review-report.mjs" write --root "/absolute/artifact-root" --input "/absolute/review-input.json"
Here --root is the artifact root, --input is the review-input JSON file,
and its review_target field is the original relative target string. Record scope: branch and all actually inspected paths for every approved repo. The writer
requires target-aligned evidence and detects scope changes during review. Do not
hand-write a CLEAN handoff after a rejected report or imply that merely listing
paths proves semantic review. Return the stale-scope error to the parent so it
can prepare and review the updated target. Later final-sync changes may cause
another review round; those changes must receive review before packaging.
Diff to review — the work is not committed and there is no PR, so review the working tree against the base:
git diff $(git merge-base <base> HEAD) — this covers committed and uncommitted work together.git ls-files --others --exclude-standard -- . ':!make-it-work' — read each one in full.make-it-work/ from everything above.working tree on <HEAD short-hash>, and omit hosted-source links.Unchanged steps — Steps 2–5 and Step 7 apply as written, including Step 5's unresolved-stub check.
Docs-sync override (Step 6) — implement updates skills and rules files in its own final context sync, after review. A missing or stale uc-*, domain-*, or rules-file update is therefore not a finding here: list each one under a **Context gaps (for final sync):** block in the report instead. A skill or rules update that is in the diff but contradicts the code is still a finding.
Known unrelated regressions — list the ones implement passed in under a **Known unrelated regressions (documented, out of scope):** block, not as findings — unless the diff demonstrably caused one, in which case report it as a normal finding with that evidence.
Decided findings — a Route: human question the user has already decided in an earlier cycle (passed in by implement) is settled only insofar as it is consistent with the current accepted refined spec: do not raise it again unless the relevant code or spec changed. A recorded decision that would change a requirement must first be explicitly incorporated into the accepted spec; otherwise report the unresolved requirements conflict as Route: human. List each one under a **Decided (not re-raised):** block in the report.
Fix-cycle regression check — when the review cycle number is above 1 and the plan carries an **Amended for fix cycle <n> ...** marker, the diff includes fix steps added in response to earlier findings (the steps after the plan's pre-amendment step count, each naming the finding it fixes). For each such step, explicitly check whether it regressed its own code path or introduced a new defect in the region it changed — re-run the Step 3 state-space enumeration over that region, including the complement of any guard, reject, or filter the fix added. Every finding in a re-review then carries Introduced by fix of: #N, naming the earlier finding or fix step it descends from, or none. A finding with a value other than none is a repeat offender: say so in the finding so plan-the-work can recommend a replan instead of stacking another patch.
For each affected defect class, name the bounded sibling/complement cases actually inspected or exercised, the outcome, and remaining gaps in the review evidence. Siblings are every place in the delivery diff with the same shape, not only the same function: when a finding is a test-design defect (for example a test that stubs or bypasses the layer that owns new behavior), list each other chain or step in the change that uses the same pattern and its outcome in the same cycle. Every coverage claim names the tests it measured; if it did not measure all tests affected by the change, list the changed files it left unmeasured instead of marking dependent requirements satisfied. Reconcile any cases promised in a Lightweight fix diagnosis or escalation plan against actual tests/results. A statement that sibling cases were checked is insufficient when the cited tests cover only the reported instance. Distinguish an old defect newly discovered from a regression introduced by a fix; repeated location alone does not prove causation. Preserve the same checks after escalation or replan even when the review-cycle counter resets.
With no plan (Lightweight mode), the review cycle number above 1 alone marks a re-review: the fixes are the changes made since the previous review, and the prompt supplies that review's findings and regions. Apply the same check to each region those findings named, and set Introduced by fix of: against those findings. A repeat offender there makes implement escalate to its TDD workflow.
Finding routes — tag every numbered finding with exactly one route:
Before returning a verdict, reconcile any requirement exceptions acknowledged
in your coverage, qualifications, solid observations or prior review handback
against the current accepted spec and inspected diff. "Unchanged except ...",
"follows one scenario but conflicts with another", or a disclosed behavioral
change is a comparison to resolve, not permission to waive the affected clause.
For an actual violation, emit a cited finding using the existing requirement
fields and routes below. Restore behavior through fix when the accepted
requirement settles the correction; use human when the clauses or intended
behavior need a requirements decision. Do not bury that conflict in notes and
return CLEAN, including during Lightweight work or a later review cycle.
An explicitly accepted spec amendment can resolve the discrepancy; verify its
source and review against the amended authority rather than reopening a
superseded clause. Compatible implementation choices and ordinary caveats are
not automatically requirement violations. No keyword-based gate is implied.
Route: fix — a correction required in this run within the current approach (includes an unresolved plan-the-work stub). This is actionable even when severity is Minor; it produces Request changes and enters the existing fix loop.
Route: replan — the approach itself, or an assumption the plan relies on, is wrong. With no plan, it means the change needs the planned, test-first workflow; implement escalates to it.
Route: human — needs a product, business, or architectural decision no document settles (the "question to the author" cases above).
For a finding that violates the current accepted spec, set requirement_violation: true and requirement to the precise accepted criterion/clause. It must route to fix, replan or human, even when severity is Minor; the renderer rejects advisory disposition. An explicitly approved spec amendment changes the requirements authority; a reviewer’s preference or “nit” label does not. This check validates the declared disposition, not the truth of the finding.
Route: advisory — Minor only: nonblocking polish or maintenance left unfixed. Use this default for optional nits, including nonblocking test-map maintenance. Keep it in both report tiers and the final package as an unfixed advisory; exclude it from actionable handoffs and fix scope. Do not print Route: fix for an item you intend to leave unresolved. Severity and disposition are distinct: not every Minor must block completion.
Advisory severity determines code-fix routing, not whether implement performs its required documentation/test-map maintenance. Keep affected mapping gaps in Context gaps for parent reconciliation; do not authorize skipping them to avoid another review.
Record review_limitations: [{repo, paths, depth: "skimmed | partial | not-reviewed", reason}] for work only skimmed, partially reviewed or not reviewed against its requirements, including inherited branch changes. Use repo IDs from repo_roots and exact paths from review_scope. New context-version-2 runs require an explicit array ([] only when no qualifications apply). Keep the same qualifications in report/chat coverage; matching snapshot hashes and a CLEAN verdict do not upgrade review depth. The renderer carries the structured qualifications into evidence, packages, delivery previews and PR text.
The optional renderer actionable flag must agree with the route. In particular, fix with actionable: false is invalid. Replanning and fix amendments address only actionable findings; advisory items do not become correction work merely because the report also contains a fix.
Outcome line — end both the Tier 1 report and the Tier 2 chat summary with exactly one line:
Orchestrator outcome: CLEAN | FIX_REQUIRED | REPLAN_REQUIRED | HUMAN_DECISION
CLEAN.REPLAN_REQUIRED if any finding is Route: replan; otherwise HUMAN_DECISION if any is Route: human; otherwise FIX_REQUIRED.No questions — never ask the user anything in this mode. Anything that would need a question becomes a Route: human finding.
Version 1 handoff — when the caller's workflow state contains handoff_version: 1, also read ../implement/references/handoffs.md and write a new review-<N>.json under make-it-work/<TICKET>/<TICKET>-handoffs/. Use the actual saved Tier 1 review report as the report artifact. Record the current review_cycle, each actionable finding's id, route, stable code region, and Introduced by fix of: value (null for none); include the context gaps for final sync. Only Route: advisory Minor findings stay out of findings. An advisory-only review remains CLEAN; a Minor Route: fix finding must be included and produces FIX_REQUIRED unless another actionable route has precedence. Include all counts and keep unfixed advisory items visible in the Markdown report and chat summary. Do not write this file for an older run. End the Tier 2 chat summary with Handoff: <path> after the Orchestrator outcome: line so implement can validate and route it.
Carry every failed, unrun or partially verified check from the implementation report into validation_notes unless inspected evidence resolves it. Baseline attribution by inspection remains “suspected baseline; not independently confirmed”; only an actual comparison or identified baseline evidence supports “confirmed pre-existing.” Put unmet acceptance behavior (including gate parity, real-service behavior and large-input claims) in those notes when unobserved. Carry the parent’s risk reassessment into the coverage discussion. Rendered CLEAN means no routed findings, and must not replace “Approve with nits,” verification qualifications, or partial branch coverage.
For Test coverage contract plans, inspect progression/regression purpose and the changed-code → domain → candidate-UC impact reasoning, including exclusions. Shared domain membership alone does not establish required coverage. Check baseline claims against preparation evidence; missing baseline evidence is a qualification, not permission to add runs or alter gates.
What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/architect-the-epicDefine an Epic's architecture and key contracts before slicing. Confirm involved repositories, interview the architect adaptively, and produce a phased high-level design with optional Confluence publication. Use for Epic-level architecture, not implementation task planning or story slicing./assess-changeAssess completed changes or an explicitly scoped PR for code complexity and production change risk, with revision-bound Markdown and JSON reports. Also runs before packaging new Implement deliveries./close-the-gapsRefines a requirement into an AI-ready ticket: a Product Analyst session that fetches the ticket, loads project skills, explores affected code, optionally searches connected Slack channels for related ticket context with consent, asks gap-analysis questions in dependency-ordered batches, and outputs a Gherkin-format refined ticket. Supports an offline mode (export every question to a file to answer outside the session) and Slack modes (draft or explicitly send the questions as a direct message to the Product Manager); re-invoke with the questions file to inject the answers and resume. Use when refining a ticket before dev starts.npx claudepluginhub insideout-ai/make-it-work --plugin make-it-workOther plugins' skills for the same job