Forge Code Review
Read the target repository's root and applicable nested instruction maps before
judging code. Follow only the standards links relevant to the candidate, and
re-resolve that authority when investigation enters another subtree or standards
domain. The target's accepted intent and harness govern; this skill supplies the
portable review method.
Code includes UI markup and styles, even a CSS-only change. Inspect their source
correctness and engineering standards; an assigned Design judge owns the rendered
visual judgment. Pure design artifacts without code are outside this leaf.
When Forge Review assigns this skill, use the exact candidate, base, path scope,
authority packet, allowed commands, and report boundary in the assignment. When
invoked directly, resolve those inputs with the procedure.
Consume credible supplied proof before running checks. Run relevant non-fixing
lint, type, or test checks only when required proof is absent, stale,
contradictory, or needed to test a concrete hypothesis.
P0: demonstrated applicable accepted-Spec or critical trust, correctness, security,
privacy, data-loss, public-contract, or build-boundary failure.
P1: reachable current-path defect, material engineering-standard violation,
misleading required proof, or required evidence gap with a scope-aligned remedy.
P2: useful nonblocking advice; omit preference and speculative future work.
Use PASS, REVISE, RETHINK, READY_FOR_USER, or BLOCKED. PASS means the
Code Review dimension found no unresolved P0/P1 and has sufficient evidence for
its claims. REVISE means supported correction; RETHINK means the mechanism needs
reconsideration; READY_FOR_USER identifies a consequential authority/intent choice;
BLOCKED means required evidence or capability prevents judgment. Missing required
proof precludes PASS. It does not establish integrated Forge Review or Acceptance.
1---2name: forge-code-review3description: Independently review an exact code candidate, including UI markup and styles, for reachable defects, regressions, security, engineering standards, and test quality. Use when the user asks for a standalone code review, PR review, branch review, commit review, diff inspection, or code-only critique. Do not use for implementation, repair, full Forge lifecycle Review, acceptance testing, pure visual design artifact review, or knowledge-work review.4---56# Forge Code Review78<setup>9Adopt the bundled [Reviewer](../../agents/reviewer/instructions.md) as the senior10engineering lens. Stay adversarial in investigation, conservative in findings,11and read-only throughout.1213Read the target repository's root and applicable nested instruction maps before14judging code. Follow only the standards links relevant to the candidate, and15re-resolve that authority when investigation enters another subtree or standards16domain. The target's accepted intent and harness govern; this skill supplies the17portable review method.18</setup>1920<activation>21This is a leaf skill. It may run directly for a standalone code review or as the22Code Review dimension assigned by Forge Review. It never invokes Forge Review,23starts a delivery lifecycle, integrates other dimensions, edits the candidate,24runs Acceptance, or routes repair.2526Code includes UI markup and styles, even a CSS-only change. Inspect their source27correctness and engineering standards; an assigned Design judge owns the rendered28visual judgment. Pure design artifacts without code are outside this leaf.2930When Forge Review assigns this skill, use the exact candidate, base, path scope,31authority packet, allowed commands, and report boundary in the assignment. When32invoked directly, resolve those inputs with the procedure.33</activation>3435<workflow>36Follow the [code-review procedure](references/code-review.md). Pin the complete37scoped diff before forming hypotheses, trace real callers and observable38consequences, inspect tests as code, and use installed or version-matched evidence39for dependency claims.4041Consume credible supplied proof before running checks. Run relevant non-fixing42lint, type, or test checks only when required proof is absent, stale,43contradictory, or needed to test a concrete hypothesis.44</workflow>4546<finding_policy>47Admit a finding only when authority, a reachable current trigger, observed48evidence or a concrete causal trace, and a material consequence all survive scrutiny. Use Forge's severity semantics:4950- `P0`: demonstrated applicable accepted-Spec or critical trust, correctness, security,51 privacy, data-loss, public-contract, or build-boundary failure.52- `P1`: reachable current-path defect, material engineering-standard violation,53 misleading required proof, or required evidence gap with a scope-aligned remedy.54- `P2`: useful nonblocking advice; omit preference and speculative future work.5556Use `PASS`, `REVISE`, `RETHINK`, `READY_FOR_USER`, or `BLOCKED`. PASS means the57Code Review dimension found no unresolved P0/P1 and has sufficient evidence for58its claims. REVISE means supported correction; RETHINK means the mechanism needs59reconsideration; READY_FOR_USER identifies a consequential authority/intent choice;60BLOCKED means required evidence or capability prevents judgment. Missing required61proof precludes PASS. It does not establish integrated Forge Review or Acceptance.62</finding_policy>6364<output>65Use the concise [Code Review report](assets/report.md). Return the selected skill66and source, exact candidate/base and path scope, inspected authority, checks and67observed evidence, findings, gaps, and one Code Review verdict. The record-owning68coordinator preserves the return as its own labelled section69or linked managed document when Forge Review assigned it; this reviewer never70writes records.71</output>7273<checklist>74- Exact candidate, base, dirty state, and scoped paths are reproducible75- Applicable accepted intent and target-repository standards were resolved76- Complete scoped diff preceded hypotheses and focused source exploration77- Real callers, boundaries, async/state/error paths, and test validity were traced as applicable78- Dependency claims use installed source/types or authoritative version-matched evidence79- Every finding has authority, reachability, evidence, consequence, severity, and proportionate remedy80- Public input behavior was not inferred only from a golden fixture81- Report is read-only, dimension-scoped, concise, and honest about gaps82</checklist>