/lorenzh:reviewing-across-familiesfrom lorenzh
Cross-family review loop for agent-written changes. Use when one model wrote a change and a model of another family (for example GPT through Codex CLI after Claude, or Claude after GPT) should review it before it ships, when the user asks for a "second opinion", "cross-family review" or "independent review" of an agent's diff, or when an orchestrating session must take a reviewed branch to a merged pull request.
Ships in lorenzh. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
One model family implements, another reviews read-only, the implementer fixes, and the orchestrating session ships.
A review counts only when the runtime proves the reviewer came from the other family, and only the orchestrating session pushes, opens the PR and merges.
Roles, fixed for the whole loop:
| Role | Who | Writes |
|---|---|---|
| Orchestrator | The main session that holds the user's intent | The review brief, the round log, the push, PR and merge |
| Implementer | An agent of family A (a pinned subagent, a CLI run) | Code and tests in the worktree, nothing else |
| Reviewer | An agent of family B, read-only sandbox | One review file per round |
Pick the implementer and reviewer models yourself or let a model router choose them; the rule is only that the families differ. Dispatch each through whatever the harness offers: a subagent pinned to a model, or a CLI such as codex exec -m <model> -s read-only -C <worktree> -o <review file> - < <brief>. An implementer subagent stops at committed, tested code and reports back: auto-mode safety checks often block a subagent's merge ("merge without review"), and a push or PR it makes skips your final checks.
Write the brief to a file. It holds: the base and head (git diff origin/<base>...HEAD), the issue text, what the change claims to cover and what it leaves out, the test command and its last result, and this output contract:
MODEL: <the model id you are running as>
FINDINGS:
- [blocker|should-fix|nit] path:line: defect. Failure: <input or state> -> <wrong result>.
NOT CHECKED: <what you could not verify: images, video, live services, network>
VERDICT: APPROVE | CHANGES REQUESTED
Severities: blocker breaks behaviour, loses data or is a security hole; should-fix is a real defect or a missing test for changed behaviour; nit is style or taste. APPROVE is allowed only with no blocker and no should-fix. The reviewer may not edit files.
Done when the brief file exists and contains the contract.
Run the reviewer in the background and wait for it to exit; a piped head or a short timeout cuts the verdict off. Then read the runtime's own record of the model (the CLI header such as model: gpt-..., or the pinned agent's model field) and the reviewer's MODEL: line.
Append one entry per round to review-log.md in the orchestrator's scratch space: Round <n>: runtime=<model> self=<model> verdict=<...> findings=<ids and severities>.
Done when the log entry exists with both model values.
Send every blocker and should-fix to the implementer (reuse its session when it still exists), with the reviewer's failure scenario. The brief demands a new commit per finding: do not amend or rebase. The implementer fixes the shared cause, adds a test that fails without the fix, and reports SHAs and test results. The orchestrator does not edit code: its fix would reach main without family-B review. Nits are optional; list declined ones with a reason.
Apply this commit gate to delegated fixes. Before reporting completion or starting re-review, run these checks in the implementer's worktree:
git -C <worktree> merge-base --is-ancestor <reviewed SHA> HEAD
git -C <worktree> rev-list --count <reviewed SHA>..HEAD
git -C <worktree> status --porcelain
Require ancestry exit 0, a count above 0 and empty porcelain output. An amend or rebase can rewrite the reviewed commit. A CLI can also answer "fixed" without changes or leave them uncommitted. If any check fails, rerun the fix once. The retry brief demands new commits per finding and empty porcelain output. It also states: no amend or rebase. If any check fails again, report it to the user and stop before re-review. The orchestrator does not commit, stash or discard the implementer's changes.
Tests that time out under machine load: rerun once; a second timeout goes to the user as a timeout, not a pass.
Done when ancestry exits 0, the count is above 0, porcelain is empty, and tests pass.
Give the reviewer its earlier review file and the diff since the reviewed SHA. It marks each earlier finding resolved or open with evidence, then looks only for regressions the new commits caused. Reopening settled code adds rounds without adding safety.
Stop after 3 rounds (tunable). If a blocker or should-fix is still open, report it to the user with the log instead of starting round 4.
Done when the log ends in APPROVE, or in a round-limit entry handed to the user.
Shipping fails halfway in practice (a lost network, a text-substitution error after the PR already exists), so it runs as a script that checks each step's state and resumes on rerun. Decide the issue link first: fixes only when the change closes the whole issue, otherwise refs — a Fixes #N in the PR body, a commit message or the squash body closes the issue on merge.
node <skill dir>/scripts/ship.mjs --dir <worktree> --issue <n> --link fixes|refs --title "<title>" \
--body-file <pr-body.md> [--changelog "- <line> (#PR)"] [--merge]
Run it from anywhere, with <skill dir> the folder holding this file; --help prints the options. It fetches and rebases onto fresh origin/<base> (a fetch failure stops it: ship from a machine with network), pushes, reuses an open PR or creates one, rewrites the PR body, adds the changelog line with the real PR link, watches CI, squash-merges with Fixes|Refs #N as the squash body, and checks the issue state. It refuses a refs run whose title, body or commit messages close the issue. A run that had to rebase stops before the merge: rerun the tests, run step 4 once more if the rebase changed the diff, then rerun the command. On failure it names the step: fix that, then rerun the same command. Without Node, do the same steps by hand in that order and check each before the next.
For manual shipping, push with git push origin HEAD:<pr-branch>; confirm git ls-remote --heads origin <pr-branch> matches git rev-parse HEAD.
F9 measured one wrong-branch push: git push origin HEAD used the local worktree branch name.
The bundled script targets the local branch; use it only when that name matches the intended PR branch.
Put in the PR body the reviewer's runtime model, the round count, and the review's NOT CHECKED line, so the reader knows what no reviewer verified.
Done when the script prints merged <url> and the issue state it reports matches the link kind.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lorenzh/skills --plugin lorenzh27 skills in this plugin
/checking-before-publishingPrivacy check for anything about to go public. Use when about to post an issue or PR comment, opening a PR, committing, pushing, publishing a release, blog post or README, or sharing screenshots, GIFs, videos or terminal recordings; when relaying a subagent's text to a public place; or when the user asks to "check for private data", "scrub" or "redact" something before sharing./cloning-voices-with-kittenttsVoice cloning with KittenTTS 2 from a short recording and text. Use when users say "kitten tts", "Stimme klonen", "clone my voice", "sprich diesen Text mit meiner Stimme", or "text to speech with my voice" and want a speech WAV.
/competing-implementationsImplementation competition for one task. Use when the user asks to have two agents compete on a change, wants competing implementations, asks to compare implementations and ship the winner, or asks for competing implementations on several dependent issues in waves./creating-worktreesGit worktree setup and cleanup for isolated parallel work. Use when the user asks to "work in a worktree", wants an isolated workspace or a parallel branch checkout, is about to execute an implementation plan that should not touch the current checkout, asks how to install dependencies or copy .env files into a worktree, wants a coding agent or sandbox to work in one, or asks to remove or clean up a worktree, or when worktrees fill the disk (ENOSPC, "No space left on device")./cutting-releasesRelease workflow from version bump to verified install. Use when the user asks to "cut a release", "release x.y.z", "ship a new version" or publish to npm or another registry, or when a release was tagged but the package, the back-merge to main or the installed version still needs checking./directing-videosVideo directing workflow for demos, screencasts, terminal tours, tutorials, launch videos and short films. Use when the user asks to plan, script, storyboard or direct a video, wants a "tour of all features", a demo or launch video, asks how long or how paced a video should be, or asks whether a recorded cut is ready to publish.