loom-code-review
Code review is adversarial evidence and implementation judgment, not politeness or rubber-stamping.
This playbook adapts peer code-review request and reception workflows into Loom's
critique, ticket, evidence, and ship layers.
Core Dependency
This playbook requires loom-core. If using-loom and the core owner-layer
skills are not installed or preloaded, stop and load/install loom-core instead
of treating this playbook as a substitute for Loom doctrine or record grammar.
What This Workflow Coordinates
- five-axis review: correctness, readability, architecture, security, performance
- test and evidence review before acceptance
- review packet/context preparation for humans or agents
- external review feedback classification and response
- ticket-owned finding disposition and follow-up routing
What This Workflow Does Not Own
- critique verdict records; use core critique
- ticket acceptance, finding disposition, or closure; use tickets
- evidence artifacts; use evidence
- Git provenance; use
loom-git
- PR or release wording; use
loom-ship
Use This Skill When
- reviewing a diff before merge or acceptance
- an AI agent or human produced code that needs independent scrutiny
- a bug fix needs both implementation and regression-test review
- receiving review comments that may be correct, unclear, optional, or wrong
- a change is large enough that tests passing is not sufficient evidence
Do Not Use This Skill When
- the request is only to read current code and explain it; use codemap or research
- no implementation or reviewable artifact exists yet
- the target is a Loom record rather than code; use core critique directly
- the next step is only packaging already-reviewed work; use
loom-ship
Default Procedure
- Understand intent before diff details: spec, ticket, acceptance IDs, plan,
evidence, risk class, and claimed behavior.
- Review tests first. Ask whether they prove behavior, cover edge/error cases, and
would fail for the likely regression.
- Review implementation across correctness, readability, architecture, security,
and performance.
- Check change size and concern mixing. Ask for split work when reviewability is poor.
- Verify the verification story: commands, browser evidence, scans, screenshots,
benchmarks, skipped checks, and stale outputs.
- Record durable findings in critique when they should persist. Classify severity,
confidence, evidence reviewed, residual risk, and required follow-up.
- Route every open medium/high finding to ticket-owned disposition before closure.
- When receiving feedback, evaluate it technically before implementing. Clarify
unclear items, push back on incorrect or out-of-scope requests, and implement
valid fixes one at a time with verification.
- Use
loom-ship only after review disposition and evidence are truthful.
Finding Severity And Disposition
Use core critique severity in saved critique findings: low, medium, or
high. Put action semantics in the finding title, impact, or required follow-up;
do not replace core severity with peer labels such as Critical, Important,
Suggestion, Nit, or FYI.
high: likely blocks acceptance unless the ticket records resolved,
accepted_risk, superseded, or converted_to_follow_up disposition.
medium: material risk or quality gap that needs ticket-owned disposition
before closure.
low: useful concern or polish issue; record it when it should persist, but it
does not block closure by default.
For open medium/high findings, use only the ticket-owned finding dispositions
from core: resolved, accepted_risk, superseded, or
converted_to_follow_up.
Common Rationalizations
- Rationalization: "Tests pass, so review can be quick."
Reality: Tests do not cover architecture, security, readability, performance, or evidence sufficiency.
- Rationalization: "It's AI-generated but looks plausible."
Reality: AI code needs more scrutiny because it can be confidently wrong.
- Rationalization: "Reviewer feedback is an order."
Reality: Feedback is a claim to evaluate against codebase truth, scope, and owner records.
- Rationalization: "We can clean it up later."
Reality: Deferred cleanup needs ticket disposition; otherwise it usually disappears.
Red Flags
LGTM without evidence of axes reviewed
- no review of tests or evidence
- required and optional comments are indistinguishable
- large mixed feature/refactor/config changes reviewed as one blob
- security-sensitive diff lacks security review
- external feedback implemented before verification or clarification
- medium/high findings lack ticket disposition
Verification
Done Means
- critique and ticket records tell the truth about review outcome
- evidence supports or limits the acceptance claim
- required findings are
resolved, accepted_risk, superseded, or
converted_to_follow_up
- optional feedback is not treated as hidden mandatory scope
- shipping summaries can mirror owner truth without inventing it
Read In This Order
Read immediately for code review:
references/review-and-feedback-loop.md for five-axis review, review packet
context, core severity/disposition usage, external feedback handling, and
dependency review.
- the core
loom-critique skill for durable findings and verdicts.
- the core
loom-tickets skill for finding disposition and closure gate.
- the core
loom-evidence skill for verification story checks.
Then read conditionally:
skills/loom-security/SKILL.md or skills/loom-performance/SKILL.md for specialized risk.
skills/loom-git/SKILL.md when base/head, diff, branch, or PR provenance matters.
skills/loom-ship/SKILL.md when packaging review outcome for PR or release.
1---2name: loom-code-review3description: Run multi-axis implementation review through Loom critique. Use before merge, after feature or bug-fix implementation, when receiving review feedback, when reviewing AI/human code, or when correctness, readability, architecture, security, performance, tests, or evidence need pressure-testing.4---5
6# loom-code-review
7
8Code review is adversarial evidence and implementation judgment, not politeness or rubber-stamping.
9
10This playbook adapts peer code-review request and reception workflows into Loom's
11critique, ticket, evidence, and ship layers.
12
13## Core Dependency
14
15This playbook requires `loom-core`. If `using-loom` and the core owner-layer
16skills are not installed or preloaded, stop and load/install `loom-core` instead
17of treating this playbook as a substitute for Loom doctrine or record grammar.
18
19## What This Workflow Coordinates
20
21- five-axis review: correctness, readability, architecture, security, performance
22- test and evidence review before acceptance
23- review packet/context preparation for humans or agents
24- external review feedback classification and response
25- ticket-owned finding disposition and follow-up routing
26
27## What This Workflow Does Not Own
28
29- critique verdict records; use core critique
30- ticket acceptance, finding disposition, or closure; use tickets
31- evidence artifacts; use evidence
32- Git provenance; use `loom-git`
33- PR or release wording; use `loom-ship`
34
35## Use This Skill When
36
37- reviewing a diff before merge or acceptance
38- an AI agent or human produced code that needs independent scrutiny
39- a bug fix needs both implementation and regression-test review
40- receiving review comments that may be correct, unclear, optional, or wrong
41- a change is large enough that tests passing is not sufficient evidence
42
43## Do Not Use This Skill When
44
45- the request is only to read current code and explain it; use codemap or research
46- no implementation or reviewable artifact exists yet
47- the target is a Loom record rather than code; use core critique directly
48- the next step is only packaging already-reviewed work; use `loom-ship`
49
50## Default Procedure
51
521. Understand intent before diff details: spec, ticket, acceptance IDs, plan,
53 evidence, risk class, and claimed behavior.
542. Review tests first. Ask whether they prove behavior, cover edge/error cases, and
55 would fail for the likely regression.
563. Review implementation across correctness, readability, architecture, security,
57 and performance.
584. Check change size and concern mixing. Ask for split work when reviewability is poor.
595. Verify the verification story: commands, browser evidence, scans, screenshots,
60 benchmarks, skipped checks, and stale outputs.
616. Record durable findings in critique when they should persist. Classify severity,
62 confidence, evidence reviewed, residual risk, and required follow-up.
637. Route every open medium/high finding to ticket-owned disposition before closure.
648. When receiving feedback, evaluate it technically before implementing. Clarify
65 unclear items, push back on incorrect or out-of-scope requests, and implement
66 valid fixes one at a time with verification.
679. Use `loom-ship` only after review disposition and evidence are truthful.
68
69## Finding Severity And Disposition
70
71Use core critique severity in saved critique findings: `low`, `medium`, or
72`high`. Put action semantics in the finding title, impact, or required follow-up;
73do not replace core severity with peer labels such as `Critical`, `Important`,
74`Suggestion`, `Nit`, or `FYI`.
75
76- `high`: likely blocks acceptance unless the ticket records `resolved`,
77 `accepted_risk`, `superseded`, or `converted_to_follow_up` disposition.
78- `medium`: material risk or quality gap that needs ticket-owned disposition
79 before closure.
80- `low`: useful concern or polish issue; record it when it should persist, but it
81 does not block closure by default.
82
83For open medium/high findings, use only the ticket-owned finding dispositions
84from core: `resolved`, `accepted_risk`, `superseded`, or
85`converted_to_follow_up`.
86
87## Common Rationalizations
88
89- **Rationalization:** "Tests pass, so review can be quick."
90 **Reality:** Tests do not cover architecture, security, readability, performance, or evidence sufficiency.
91- **Rationalization:** "It's AI-generated but looks plausible."
92 **Reality:** AI code needs more scrutiny because it can be confidently wrong.
93- **Rationalization:** "Reviewer feedback is an order."
94 **Reality:** Feedback is a claim to evaluate against codebase truth, scope, and owner records.
95- **Rationalization:** "We can clean it up later."
96 **Reality:** Deferred cleanup needs ticket disposition; otherwise it usually disappears.
97
98## Red Flags
99
100- `LGTM` without evidence of axes reviewed
101- no review of tests or evidence
102- required and optional comments are indistinguishable
103- large mixed feature/refactor/config changes reviewed as one blob
104- security-sensitive diff lacks security review
105- external feedback implemented before verification or clarification
106- medium/high findings lack ticket disposition
107
108## Verification
109
110- [ ] Review target, base/head or changed files, and intent are explicit.
111- [ ] Tests and evidence were reviewed before implementation details.
112- [ ] Five axes were considered or scoped out with rationale.
113- [ ] Findings have severity, confidence, evidence, and required action.
114- [ ] Ticket-owned disposition exists for closure-relevant findings.
115- [ ] External feedback was classified before implementation.
116
117## Done Means
118
119- critique and ticket records tell the truth about review outcome
120- evidence supports or limits the acceptance claim
121- required findings are `resolved`, `accepted_risk`, `superseded`, or
122 `converted_to_follow_up`
123- optional feedback is not treated as hidden mandatory scope
124- shipping summaries can mirror owner truth without inventing it
125
126## Read In This Order
127
128Read immediately for code review:
129
1301. `references/review-and-feedback-loop.md` for five-axis review, review packet
131 context, core severity/disposition usage, external feedback handling, and
132 dependency review.
1332. the core `loom-critique` skill for durable findings and verdicts.
1343. the core `loom-tickets` skill for finding disposition and closure gate.
1354. the core `loom-evidence` skill for verification story checks.
136
137Then read conditionally:
138
1395. `skills/loom-security/SKILL.md` or `skills/loom-performance/SKILL.md` for specialized risk.
1406. `skills/loom-git/SKILL.md` when base/head, diff, branch, or PR provenance matters.
1417. `skills/loom-ship/SKILL.md` when packaging review outcome for PR or release.