Domain-agnostic critique. One-line findings, severity-tagged, with a written REVIEW.md artifact.
Severity vocabulary (all domains)
- BLOCK -- must-fix before ship. Bug, data loss, broken claim, factual error, WCAG violation, missing CTA.
- FLAG -- should discuss. Risky choice, weak evidence, voice break, ambiguous audience, fragile coupling.
- NIT -- polish. Phrasing, micro-spacing, naming, redundancy.
Format per finding: <LOC>: [SEVERITY] <one-line problem>. <one-line fix>.
<LOC> is file:line for code, <section> or <page> for prose/design.
Domain checklists
Software (code diff / PR)
- Null & undefined handling, error paths, retry/backoff semantics.
- Security boundaries: input validation, authz, secret leakage, path traversal.
- Test coverage: happy path + at least one failure case per public surface.
- Concurrency: race conditions, idempotency, ordering assumptions.
- Public API: backward compatibility, types, naming.
Book chapter
- Continuity with prior chapters (character state, world facts, timeline).
- Voice / POV consistency.
- Pacing: scene-vs-summary ratio, dwell on stakes.
- Character beats: motivation legible, agency visible.
- Stakes: what is at risk on this page, why now.
Campaign brief
- Audience: named, specific, has a current alternative.
- Message-to-channel fit: format matches where the audience already is.
- CTA: single, frictionless, measurable.
- KPI coverage: leading + lagging indicator named.
- Kill criteria: the condition under which you stop spending.
Landing page (copy + layout)
- Promise -> proof -> CTA alignment in the first viewport.
- Mobile-readiness: tap targets >= 44px, no horizontal scroll, hero readable at 375px.
- Accessibility: WCAG AA contrast 4.5:1 body / 3:1 large text; alt text on meaningful images; keyboard reachable CTA.
- Conversion-path friction: number of decisions before primary CTA.
Design artifact (tokens / mockup)
- Token consistency: every color/space/radius/shadow resolves to a defined token.
- Contrast: WCAG AA on every text-on-surface pair.
- Type scale: modular ratio respected; no orphan sizes.
- Spacing rhythm: 4/8 baseline (or declared grid) respected.
Output rules
- Lead with BLOCK findings, then FLAG, then NIT.
- No praise for meeting baseline expectations.
- Max 10 findings unless the caller asks for exhaustive.
- If nothing found:
Clean. Reviewed <N> <units> across BLOCK/FLAG/NIT gates. No findings.
Artifact-write contract (MANDATORY)
Every review MUST write a REVIEW.md to a predictable path so the artifact is durable and resumable:
- Software review of a planned unit of work:
.planning/<milestone>/<phase-dir>/REVIEW.md
- Software review without a planning context (ad-hoc PR):
REVIEW.md at the repo root, or <branch>-REVIEW.md if reviewing a named branch.
- Standalone artifact (chapter, brief, page, design file): write
<artifact-basename>-REVIEW.md alongside the artifact. Example: chapter-7.md -> chapter-7-REVIEW.md.
REVIEW.md required sections
# Review: <artifact name>
Reviewed: <ISO-8601 timestamp>
Reviewer: ijfw-review
Domain: <software | book | campaign | landing | design>
## Summary
<2-4 sentences. Headline verdict + the single most important thing to fix.>
## BLOCK findings (must-fix)
- <LOC>: <one-line problem>. <one-line fix>.
## FLAG findings (should-discuss)
- <LOC>: <one-line problem>. <one-line fix>.
## NIT findings (polish)
- <LOC>: <one-line problem>. <one-line fix>.
If a section has no findings, keep the header and write (none) underneath -- absence is a signal, not a typo.
Second opinion
For high-stakes artifacts the caller can request a multi-lens audit via /cross-audit -- this fans the same artifact across Trident (codex / gemini / claude) and converges on a consensus verdict. Use it when stakes warrant a second pair of eyes.
Output contract
Emit a gate-result block as the LAST content of your output. Nothing
after it. Use gate="swarm-review". Statuses: PASS | CONDITIONAL | WARN | FLAG | FAIL.
affected_artifacts MUST include the absolute path to the REVIEW.md that was written.
Format:
{
"schema_version": "1.0",
"gate": "swarm-review",
"status": "<STATUS>",
"project_type": "<from project-type-detector>",
"lenses": [],
"affected_artifacts": ["<absolute path to REVIEW.md>"],
"accounting": {"duration_ms": 0, "lenses_invoked": 0, "cost_usd": null},
"remediation": [],
"receipts_ref": null,
"supersedes": null,
"gate_id": "<gate-with-colons-replaced-by-dashes>-<ts>-<rand4>",
"emitted_at": "<ISO-8601>"
}
1---2name: ijfw-review-23description: Use when the user asks for a review of any artifact -- code diff, PR, book chapter, campaign brief, landing-page copy, or design tokens. Trigger: review, code review, review this, PR review, review my X, review chapter, review brief, review page, /ijfw-review4---56Domain-agnostic critique. One-line findings, severity-tagged, with a written `REVIEW.md` artifact.78## Severity vocabulary (all domains)910- **BLOCK** -- must-fix before ship. Bug, data loss, broken claim, factual error, WCAG violation, missing CTA.11- **FLAG** -- should discuss. Risky choice, weak evidence, voice break, ambiguous audience, fragile coupling.12- **NIT** -- polish. Phrasing, micro-spacing, naming, redundancy.1314Format per finding: `<LOC>: [SEVERITY] <one-line problem>. <one-line fix>.`15`<LOC>` is `file:line` for code, `<section>` or `<page>` for prose/design.1617## Domain checklists1819### Software (code diff / PR)20- Null & undefined handling, error paths, retry/backoff semantics.21- Security boundaries: input validation, authz, secret leakage, path traversal.22- Test coverage: happy path + at least one failure case per public surface.23- Concurrency: race conditions, idempotency, ordering assumptions.24- Public API: backward compatibility, types, naming.2526### Book chapter27- Continuity with prior chapters (character state, world facts, timeline).28- Voice / POV consistency.29- Pacing: scene-vs-summary ratio, dwell on stakes.30- Character beats: motivation legible, agency visible.31- Stakes: what is at risk on this page, why now.3233### Campaign brief34- Audience: named, specific, has a current alternative.35- Message-to-channel fit: format matches where the audience already is.36- CTA: single, frictionless, measurable.37- KPI coverage: leading + lagging indicator named.38- Kill criteria: the condition under which you stop spending.3940### Landing page (copy + layout)41- Promise -> proof -> CTA alignment in the first viewport.42- Mobile-readiness: tap targets >= 44px, no horizontal scroll, hero readable at 375px.43- Accessibility: WCAG AA contrast 4.5:1 body / 3:1 large text; alt text on meaningful images; keyboard reachable CTA.44- Conversion-path friction: number of decisions before primary CTA.4546### Design artifact (tokens / mockup)47- Token consistency: every color/space/radius/shadow resolves to a defined token.48- Contrast: WCAG AA on every text-on-surface pair.49- Type scale: modular ratio respected; no orphan sizes.50- Spacing rhythm: 4/8 baseline (or declared grid) respected.5152## Output rules5354- Lead with BLOCK findings, then FLAG, then NIT.55- No praise for meeting baseline expectations.56- Max 10 findings unless the caller asks for exhaustive.57- If nothing found: `Clean. Reviewed <N> <units> across BLOCK/FLAG/NIT gates. No findings.`5859## Artifact-write contract (MANDATORY)6061Every review MUST write a `REVIEW.md` to a predictable path so the artifact is durable and resumable:6263- **Software review of a planned unit of work**: `.planning/<milestone>/<phase-dir>/REVIEW.md`64- **Software review without a planning context** (ad-hoc PR): `REVIEW.md` at the repo root, or `<branch>-REVIEW.md` if reviewing a named branch.65- **Standalone artifact** (chapter, brief, page, design file): write `<artifact-basename>-REVIEW.md` alongside the artifact. Example: `chapter-7.md` -> `chapter-7-REVIEW.md`.6667### REVIEW.md required sections6869```markdown70# Review: <artifact name>7172Reviewed: <ISO-8601 timestamp>73Reviewer: ijfw-review74Domain: <software | book | campaign | landing | design>7576## Summary77<2-4 sentences. Headline verdict + the single most important thing to fix.>7879## BLOCK findings (must-fix)80- <LOC>: <one-line problem>. <one-line fix>.8182## FLAG findings (should-discuss)83- <LOC>: <one-line problem>. <one-line fix>.8485## NIT findings (polish)86- <LOC>: <one-line problem>. <one-line fix>.87```8889If a section has no findings, keep the header and write `(none)` underneath -- absence is a signal, not a typo.9091## Second opinion9293For high-stakes artifacts the caller can request a multi-lens audit via `/cross-audit` -- this fans the same artifact across Trident (codex / gemini / claude) and converges on a consensus verdict. Use it when stakes warrant a second pair of eyes.9495## Output contract9697Emit a `gate-result` block as the **LAST** content of your output. Nothing98after it. Use `gate="swarm-review"`. Statuses: `PASS | CONDITIONAL | WARN | FLAG | FAIL`.99100`affected_artifacts` MUST include the absolute path to the `REVIEW.md` that was written.101102Format:103104```gate-result105{106 "schema_version": "1.0",107 "gate": "swarm-review",108 "status": "<STATUS>",109 "project_type": "<from project-type-detector>",110 "lenses": [],111 "affected_artifacts": ["<absolute path to REVIEW.md>"],112 "accounting": {"duration_ms": 0, "lenses_invoked": 0, "cost_usd": null},113 "remediation": [],114 "receipts_ref": null,115 "supersedes": null,116 "gate_id": "<gate-with-colons-replaced-by-dashes>-<ts>-<rand4>",117 "emitted_at": "<ISO-8601>"118}119```