|
|
|
@@ -1,11 +1,11 @@
|
|
|
|
|
---
|
|
|
|
|
name: larv-review
|
|
|
|
|
description: One-stop shipping pipeline for a work chunk - branch, commit, push, draft PR, then a gated whole-application architecture review (systems-architect), a security pass over the diff, the stability-reviewer in a loop until no 🔴 or 🟡 remains, a product-owner-reviewer loop whenever a reviewer escalates to it, a closing stability round over what that loop changed, and a prose pass that deletes documentation the code already says, then CI watched until green, the PR marked ready, any external auto-reviewer answered, and the PR merged once it aligns with the project's goals. Decisions land in the repo's decision log so repeated reviews converge. Use when the user asks for /larv-review, says "implement X then run larv-review", or wants a chunk shipped, reviewed and merged.
|
|
|
|
|
description: Ship a work chunk through review to a merged PR; decisions land in the repo's decision log so repeated reviews converge. Use when the user asks for /larv-review, says "implement X then run larv-review", or wants a chunk shipped, reviewed and merged.
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# larv-review — ship the chunk, review until clean, gate green, merge
|
|
|
|
|
|
|
|
|
|
You orchestrate, fix, and ship; the reviewer agents only report. Run every reviewer synchronously (`run_in_background: false`) — each step depends on the previous result. Watch CI in the foreground too: a headless run exits when the turn ends, and a background watcher or a scheduled wakeup dies with it. A reviewer's report is input to the next step; the turn runs on until §11. Architecture strictly before security, security before stability: line-level polish on code the architect wants restructured, or on a call the security pass will rewrite, is wasted work. The full order is architecture → security → stability → product-owner when escalated → a closing stability round over what that changed.
|
|
|
|
|
You orchestrate, fix, and ship; the reviewer agents only report. Run every reviewer synchronously (`run_in_background: false`) — each step depends on the previous result. Watch CI in the foreground too: a headless run exits when the turn ends, and a background watcher or a scheduled wakeup dies with it. A reviewer's report is input to the next step; the turn runs on until §11. Architecture strictly before security, security before stability: line-level polish on code the architect wants restructured, or on a call the security pass will rewrite, is wasted work.
|
|
|
|
|
|
|
|
|
|
**Forge-neutral.** Five PR operations recur below: read a PR's diff, open a draft PR, read check status, mark ready, merge. Resolve the tooling from the remote per `~/.claude/CLAUDE.md` → "Git, commits, and PRs"; on any other forge, achieve the same intents through its CLI or API — discover how rather than assuming. A forge without a native draft state gets the closest equivalent (a `WIP:`/`Draft:` title prefix); note any approximation in the summary.
|
|
|
|
|
|
|
|
|
@@ -15,7 +15,7 @@ Verdicts, severities, round caps, declining a finding and where decisions are re
|
|
|
|
|
|
|
|
|
|
- Not a git repo → say so and stop.
|
|
|
|
|
- Someone else's PR, or the user asked for opinions only → single stability pass, report findings, done (skip shipping, fixing, the loops and the merge).
|
|
|
|
|
- Prose only — markdown, docs, comments, no code — → the reviewer loops add nothing: ship the branch (§1), the prose pass (§7), green gate (§8), merge (§10). Say so in the summary. Prose an outside reader lands on — public API docs, README, error or deprecation text — still takes §6's product-owner pass. The chunk that first writes the goals and audience is the exception — a later change to a goal is not: the human's approval is its whole review, since a reviewer's findings on it could only be declined by citing the goals it exists to write.
|
|
|
|
|
- Prose only — markdown, docs, comments, no code — → the reviewer loops add nothing: ship the branch (§1), the prose pass (§7), green gate (§8), merge (§10). Say so in the summary. Prose an outside reader lands on — public API docs, README, CHANGELOG, error or deprecation text — still takes §6's product-owner pass. The chunk that first writes the goals and audience is the exception — a later change to a goal is not: the human's approval is its whole review, since a reviewer's findings on it could only be declined by citing the goals it exists to write.
|
|
|
|
|
- Issue trackers are project-specific — the project's own docs say whether it has one. When it does and the work has a ticket, follow that tracker's conventions for assignment and status.
|
|
|
|
|
- The repo states its goals and audience under literal `## Goals` and `## Audience` headings in `README.md` — `~/.claude/CLAUDE.md` → "Working loop" gates all planned work on it. Neither heading present, or a version too vague to settle a decision → this chunk cannot be judged against them: stop, say so, and write them with the user as the chunk instead. The same content in `AGENTS.md`, in `docs/` or in a decision log does not satisfy it, and neither does an earlier session having passed it; nothing merges and nothing is reported done while it is unmet. Only what that section lets past its gate reaches review without them.
|
|
|
|
|
|
|
|
|
@@ -131,4 +131,4 @@ Marking the PR ready is what summons CodeRabbit and its kind, so this follows §
|
|
|
|
|
|
|
|
|
|
## 11. Wrap up
|
|
|
|
|
|
|
|
|
|
Summarize: PR URL and final state, every verdict reached (architecture, security, stability, product-owner, external), rounds used per loop, findings fixed vs declined vs open — each decline with the goal it rests on — CI status, decisions recorded (file paths), `todo.md`/`CHANGELOG.md` updated, and any 🔀 escalation left for the user.
|
|
|
|
|
Summarize: PR URL and final state, every reviewer's verdict, rounds used per loop, findings fixed vs declined vs open — each decline with the goal it rests on — CI status, decisions recorded (file paths), `todo.md`/`CHANGELOG.md` updated, and any 🔀 escalation left for the user.
|
|
|
|
|