codex-review
Skill1 starsChanged 41 days agoMITView on GitHub
Codex only: craft's review of a diff or PR in any language, run from a Codex session — one command, `sh <plugin root>/bin/craft review run --backend codex`, the plugin root two directories above this SKILL.md (`craft` is not on PATH; never run bare `craft`) — the mechanical gate, review lenses per profile, verification, one report and an Approve/Warning/Block verdict, each review agent its own `codex exec` process. Use in Codex whenever the user asks, in whatever language they write, to review a PR, a branch or a diff before commit or merge, to re-review fix commits, or to resume a stopped review: such a request runs this command, never a review by hand instead. Triggers: review this branch, review the diff, is this mergeable, re-review the fixes, resume the review. Not in Claude Code: there the review is the craft:review workflow (Workflow tool), never this skill. Not in OpenCode: there the review is the /craft-review command (the `review` tool), never this skill and never `codex exec`.
97 other projects use a version of this.
Adopted by
Most recently taken up by
- ryanportfolio/Harness-Firmwaretheir own version, first seen Nov 29, 2026
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- jha0313/skills_repotheir own version, first seen Nov 29, 2026
- ryanportfolio/HarnessFirmware.comtheir own version, first seen Nov 28, 2026
- alinaqi/maggytheir own version, first seen Nov 27, 2026
- mia-cx/skillstheir own version, first seen Nov 23, 2026
Used with
Projects with it also use addskill, apply-firmware and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
ryanportfolioSkilladdskill
Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.
Also in 6 projects that use this
ryanportfolioSkillapply-firmware
Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.
Also in 6 projects that use this
- +10 more from ryanportfolio
Other versions97 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 97
- ClickHouse/ClickHouse★ 51ksame name
- chaseai-yt/claudex-loop★ 3.2ksame name
- morethanwords/tweb★ 2.7ksame name
- alinaqi/claude-bootstrap★ 712same name
- alinaqi/maggy★ 712same name
- ThibautBaissac/rails_ai_agents★ 665same name
- ai-analyst-lab/ai-analyst★ 304same name
- Sateezg/codex-bridge★ 248same name
- sd0xdev/sd0x-dev-flow★ 196same name
- sd0xdev/sd0x-harness★ 196same name
87 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- addressing-findingsSkill
- auditSkill
- codebase-onboardingSkill
- compatibilitySkill
- debuggingSkill
- developSkill
- distributed-racesSkill
- memorySkill
- nix-dev-envSkill
- nix-flakesSkill
- nixosSkill
- nix-packagingSkill
- nix-reviewSkill
- refactoringSkill
- retroSkill
- review-initSkill
- review-rulesSkill
- rust-architecture-reviewSkill
- rust-architectureSkill
- rust-cliSkill
- rust-cloud-nativeSkill
- rust-concurrencySkill
- rust-ecosystemSkill
- rust-embeddedSkill
- rust-errorsSkill
- rust-fintechSkill
- rust-idiomsSkill
- rust-macrosSkill
- rust-mlSkill
- rust-navigationSkill
- rust-ownershipSkill
- rust-performanceSkill
- rust-pluginsSkill
- rust-reviewSkill
- rust-securitySkill
- rust-testingSkill
- rust-traitsSkill
- rust-unsafeSkill
- rust-webSkill
- specsSkill
- sql-reviewSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 83 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Run it once, in this session, never in a subagent, and relay what it prints on stdout — the ## Verdict block, the report's path and the ## …
- Very specific: line 57
If it says Codex is not logged in, tell the human to run codex login, then resume.
“Common” is measured: kept by at least 6 in 10 of the 83 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
codex-review — craft's review from Codex
In Claude Code, stop here: launch the craft:review workflow with the Workflow tool instead;
this skill is the Codex route to the same review.
In Codex, the review is one command. Its plugin root is two directories above this file's
directory (this file is <plugin root>/skills/codex-review/SKILL.md):
sh "<plugin root>/bin/craft" review run --backend codex [flags ...]craft is not on PATH: always name it by that path, never as a bare craft.
bin/craft runs the craft binary of this plugin version, downloading it from the plugin's GitHub
release into ~/.craft/bin/<version>/ the first time. If it fails with one craft: … line (no
download tool, no network, a platform with no released binary), relay that line.
Run it once, in this session, never in a subagent, and relay what it prints on stdout — the
## Verdict block, the report's path and the ## Findings list — then read the report file it
names for the details. Do not review the diff yourself beside it.
The review never submits a GitHub review verdict: no gh pr review --approve or
--request-changes, no approving and no merging. Its verdict goes to the user only; findings
reach the PR only through craft's --comment, and only when the user asked for that.
It exits 1 when the review's work was cut short (INCOMPLETE, Warning (INCOMPLETE), …); that
is still its answer, with its ## Verdict block: relay it, and its ## What the agents said section when there is one — the errors the
review agents died on (a model the account does not support, for one, is fixed with --models). A run with nothing to review — INCOMPLETE (empty diff) or
INCOMPLETE (no language profile) — exits 0. It exits 2 when it refused its arguments and ran
nothing; the ## Verdict block says why.
This route is new and not yet observed running in a real Codex session. If the command cannot
run here, or fails without a ## Verdict block, say so plainly and review the diff yourself
instead: the checklist of craft:rust-review (Rust), craft:nix-review (Nix) or
craft:sql-review (SQL), otherwise read the diff for defects, and report the findings by severity with file:line.
How to run it:
- It runs long (minutes to an hour on a large diff): give the shell call the longest timeout your tool allows.
- It needs to run outside the sandbox (ask for escalated permissions the user approves): it
writes under
~/.craft, may fetch the craft binary from GitHub, builds and runs the branch's code for the mechanical gate — on a Rust change also its test suite, once per mutant of the changed lines, up to 10 minutes (--no-gateturns both off for a branch you do not trust), and startscodex exec -s read-onlyprocesses that call the model with this session's login and need Codex's own sandbox to start. If that sandbox itself cannot start here (every command fails,bwrap: …errors), tell the user that and stop. - It prints
run=<directory>on stderr as soon as the run starts. If the call is cut off or the run stops on the usage limit, resume it with--run <that directory>alone (beside--backend codex). - If it says Codex is not logged in, tell the human to run
codex login, then resume.
Flags:
--cwd <repository>(default: the current directory),--base <ref>(default: the merge-base with origin's default branch),--depth light|full,--path <directory>.- Re-review of fix commits:
--base <the commit the review was made on> --fresh --delta --full-every 0 --depth light --extra-lenses off(--delta: a clean re-review of fix commits reads Warning, never Approve — Approve comes only from a full review).--deltaneeds a base after the merge-base: with the merge-base or an older commit — or no--baseand no earlier round of the branch — the binary refuses it before anything runs, since that round would review the whole branch. --strict,--no-gate,--optional all|<lens,...>,--pr <number>,--comment(post the defects on the PR; doubtful findings stay in the report for the human),--extra-lenses <agent,...>|off,--prior-decisions <file>(a JSON list of the launcher's decision, question and rule records).--pr <number>from a checkout that lacks the PR's head (the trunk, say): craft fetches the head and reviews it in its own detached worktree, one per head and never moved,~/.craft/worktrees/<repo>/pr-<number>-<head>(runs on that head at once share it), and the answer names it; your checkout is not touched. The gate builds and runs the PR's code: add--no-gatefor a PR you do not trust (Codex itself, in that untrusted directory, takes only the head'sAGENTS.md, as instructions). If it still refuses (it could not fetch the head or lay the worktree), make a detached worktree in a fresh directory of your own (mktemp -d) as the refusal says and run again with--cwd <that worktree>and no--pr, without asking the human — never reuse a worktree another session or craft made.--run <directory>resumes a stopped run; with--commentit publishes a finished run.- The mechanical gate alone is another command:
sh "<plugin root>/bin/craft" review gate [--cwd …] [--base …]. CRAFT_BIN=<absolute path>in the environment runs a local build of the binary.--concurrency <n>— review agents at once, 1 to 16 (default 4; alsoCRAFT_CODEX_CONCURRENCY);--models <model>or--models opus=<model>,sonnet=<model>,haiku=<model>— the Codex model for each tier the review asks for (default: Codex's own configured model; alsoCRAFT_CODEX_MODELS).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

