/fabrik:code-reviewfrom fabrik
Guides code reviews using a cross-model panel (Claude, OpenAI, Gemini) on the same brief. Useful when asked to review changes or before committing.
Ships in fabrik. 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.
Always start by inspecting the changes. If you're on the main git branch, typically the (staged) git diff. If you're on a different branch, the committed and uncommitted changes compared to the main branch. A caller may instead name the repository or worktree to review, and add concerns of its own for the reviewers.
Every reviewer gets the same brief, so their reviews can be compared: brief.md next to this file, followed by a scope section you write. The brief covers the competing framing, architecture and implementation, the two targeted checks (comment context leakage and single-use constants), and the report format. It also tells each reviewer to review the change itself: codex and agy have this skill installed too, and without that line a reviewer may load it and start a panel of its own. Don't reword it per reviewer, and don't add hints about what you expect them to find.
The brief also tells reviewers that their sandbox may not let them run tests or read git history, and not to depend on either: the diff is their source of truth. The reviewers don't vouch for the tests, so run the tests and linters yourself.
Same-family reviewers share blind spots, so in Claude Code the panel spans three model families, all on the same brief and run in parallel:
model: fable.codex CLI.agy CLI.You run codex and agy yourself as part of this method. Don't invoke the second-opinion skill -- it is for opinions the user asks for. Instead, read its file, ../second-opinion/SKILL.md from this skill's directory, and use its codex and agy sections for the commands and their mechanics only. What the reviewers are asked comes from brief.md, not from second-opinion's advice on prompts or its codex exec review mode. Expect the review to take minutes, not seconds: the CLIs take several minutes each.
Make a fresh working directory in the session scratchpad, one per review round, so a re-review doesn't overwrite the previous round's files:
DIR=<your scratchpad>/code-review-$(date +%Y%m%d-%H%M%S)
mkdir -p "$DIR/input"
Shell variables don't survive from one command to the next, so note the resolved path and write it out in full in every later command; $DIR below stands for it. As in second-opinion's "Shared setup", $DIR is never the repository under review, and scope boundaries that forbid working outside the workspace aren't aimed at these scratch files, nor at reading this skill's own files and second-opinion's.
Capture the change to $DIR/input/changes.diff. It gets a directory of its own because agy is given access to it, and the reviews land in $DIR:
git -C <repo root> diff --cached, or git -C <repo root> diff HEAD when nothing is staged.git -C <repo root> diff <merge base>, where <merge base> is the output of git -C <repo root> merge-base <main branch> HEAD. This holds committed and uncommitted changes to tracked files.git -C <repo root> ls-files --others --exclude-standard, and keep only those that belong to the change.Write $DIR/prompt.md: the contents of brief.md, followed by this scope section:
## Scope
- Repository: <absolute path to the repository or worktree root>
- Change: <absolute path to $DIR/input/changes.diff>, the diff of <what it is, e.g. "branch foo against main, including uncommitted changes">
- New untracked files, part of the change: <list, or "none">
- Additional concerns from the caller: <the caller's concerns and any context it gave, or "none">
Check each CLI before launching it:
command -v codex, then the auth check in second-opinion's codex "Preflight" section.command -v agy, then the auth check in second-opinion's agy "Preflight" section.A CLI that is missing or not signed in doesn't stop the review: replace it with an extra Claude reviewer (see step 5) and launch that one with the others. Don't stop to ask the user to authenticate, as second-opinion does; mention it in the report instead.
agy also serves Claude models. If you can read its configured model (second-opinion's agy "Model and effort" section says where) and it is a Claude model, agy can't be the panel's Gemini reviewer: replace it as if it had failed preflight.
Start all three reviewers at once, in one message, leaving out any CLI that failed preflight and launching its substitute instead:
model: fable, whose prompt is the contents of $DIR/prompt.md, verbatim.-C <repo root>, -s read-only, the prompt from $DIR/prompt.md, -o "$DIR/codex.md", and the event stream to $DIR/codex.log. Append ; echo $? > "$DIR/codex.exit" so you can tell when it has finished and how.--sandbox and --settings flags unchanged, the output to $DIR/agy.json, and stderr to $DIR/agy.log. Add --add-dir "$DIR/input" so agy can read the diff. Add nothing for a worktree's git directory: in a worktree agy may have no git history, and reviews from the diff and the worktree's files, as that section explains. Keep -p last. Append ; echo $? > "$DIR/agy.exit".Omit model and effort flags for both CLIs, so the user's configuration decides (second-opinion's "Model and effort" sections). Never pass a Claude model to agy.
Wait on the exit files of the CLIs you launched, not with pgrep -- other agents may be running the same CLIs. Use a bounded loop, backgrounded or via Monitor. With both CLIs launched:
i=0; until [ -s "$DIR/codex.exit" ] && [ -s "$DIR/agy.exit" ] || [ $i -ge 80 ]; do sleep 15; i=$((i+1)); done
Leave out the test for a CLI you didn't launch. 80 rounds of 15 seconds is 20 minutes; a CLI that hasn't finished by then has failed: stop its background task.
Don't cat codex.log, agy.log, or agy.json into context. Take only what you need: head -15 "$DIR/codex.log" for the model and effort, jq -r .status "$DIR/agy.json" for agy's status, and jq -r '.response // empty' "$DIR/agy.json" > "$DIR/agy.md" for its review.
A CLI reviewer has failed if:
codex.md or agy.md missing or holding only whitespace, or agy's status not SUCCESS (second-opinion's agy section says where to look for why).Replace each failed CLI with an extra Claude reviewer: another Agent call with model: fable and the same $DIR/prompt.md. Record which reviewer was substituted and why, in a few words (e.g. "codex not on PATH", "agy exited 1", "codex returned an empty review"). The review never blocks on a CLI.
Name each reviewer by family and, where known, model:
codex.log header, e.g. "OpenAI gpt-6.2-astra, high (codex)".Then apply the rules in "Surfacing issues".
The cross-model panel is Claude Code only. In Codex and Antigravity, dispatch two subagents of the same family instead, both on the same brief: brief.md plus the scope section from step 1. Point the scope section at the change itself, e.g. "branch foo against main, including uncommitted changes", rather than at a diff file, and skip the rest of the Claude Code method: the scratch directory, the preflight, and the CLIs. Run them on the most capable model available: in Codex, use gpt-6.2-astra; in Antigravity, use TypeName: "research" and Model: "pro". Reviewing is where depth pays off, regardless of which model wrote the code.
Signal-to-noise ratio matters more than completeness. When reporting back to the caller:
Structure the report like this:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub maragudk/fabrik --plugin fabrik28 skills in this plugin
/ableton-liveGuide for making music in Ableton Live 12 on macOS. Use this skill whenever the user asks how to do something in Ableton Live or "in Live", wants help with a Live Set, project, or session, asks which stock Live device or instrument to use for a sound (Operator, Wavetable, Drift, Meld, Simpler, Sampler, Roar, Echo, Hybrid Reverb, Auto Filter, Drum Rack, Racks, Macros...), needs warping, Session vs Arrangement, clip launching, Follow Actions, MIDI editing, MIDI Tools, scale awareness, grooves, automation, clip envelopes, routing, sidechain, resampling, comping, stem separation, bouncing, freezing, exporting, Push 1/2, Link, MIDI sync, CPU or latency troubleshooting, or keyboard shortcuts. Trigger even when the user doesn't say "Ableton" -- words like "Live Set", ".als", "clip slot", "scene", "Drum Rack", "Simpler", "warp marker", "Session View", "Arrangement View", "Max for Live", or "Push" are enough. Also use it when the user is producing electronic music and asks for a workflow or sound-design recipe that will be executed in Live./accomplishmentsExtract accomplishments from new implementation diary entries into docs/accomplishments.md, written as one-line reflections that blend self-appraisal with Markus's appreciation. Use only when the user invokes /accomplishments or explicitly asks to extract, update, or refresh accomplishments from the diary. Do not run proactively./address-code-reviewAddress code review feedback by walking through comments one at a time with the user. Use when the user has received code review comments — on a GitHub PR, in a document in the repo, or directly in conversation — and wants to work through them methodically. Also trigger when the user mentions "address review", "review comments", "PR feedback", or wants to respond to code review feedback./atprotoGuide for building on the AT Protocol (the "atmosphere") -- authoring Lexicons, building app views, consuming the firehose, working with identity (DIDs, handles), repositories, records, XRPC endpoints, and OAuth. Use this skill whenever the user is building anything on atproto/Bluesky/the atmosphere -- writing Lexicon JSON, calling com.atproto.* or app.bsky.* endpoints, parsing AT URIs (`at://...`), DIDs (`did:plc:...`, `did:web:...`), handles, TIDs, the indigo Go SDK (`github.com/bluesky-social/indigo`), the firehose / `subscribeRepos`, MSTs, CAR files, DAG-CBOR/DRISL, app views, feed generators, labelers, or PDS interactions. Triggers even if the user doesn't say "atproto" -- words like "lexicon", "PDS", "app view", "firehose", "did:plc", or `at://` URIs are enough./blueskyGuide for posting content to the Bluesky social network using the bsky terminal app. This skill should be used proactively when working in public repositories and there is interesting, shareable content (new features, insights, achievements, or announcements worth sharing with the community). Use it when asked to post to Bluesky, or when content seems worth sharing publicly./bombadilTest web UIs with Bombadil, Antithesis's property-based testing tool that explores a running web app in a real browser and checks correctness properties. Use this skill whenever the task is testing a web UI in a browser -- before writing, adding, or setting up any browser, end-to-end (e2e), UI, or acceptance tests (including adding them to CI such as GitHub Actions), and before reaching for Playwright, Cypress, or Selenium. Also use it to fuzz or click around a frontend to check a change didn't break it, to hunt flaky or hard-to-reproduce UI bugs like double submits, to check that a page or form keeps an invariant, and to read a Bombadil trace or violation. Triggers even when the user doesn't say "Bombadil" -- "browser tests", "e2e tests", "test the UI", or "does the frontend still work" are enough. Not for driving a browser without testing (screenshots, scraping, filling in a form), handler or unit tests, or load testing.