review
Skill4 starsChanged 54 days agoMITView on GitHub
Codex-backed second-opinion code review — 0-5 verdict plus prioritized issues with file:line citations, covering correctness, security, spec conformance and performance. Use when the user says "review", "/review", "review my changes".
- Reads credentials
- Installs packages
192 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/veronatheir own version, first seen Nov 8, 2026
- microsoft/FluidFrameworktheir own version, first seen Nov 8, 2026
- charliee1w/consolidation-memorytheir own version, first seen Nov 8, 2026
- jisuzzzz/haechitheir own version, first seen Nov 8, 2026
- apokamo/kajitheir own version, first seen Nov 8, 2026
- dirien/yet-another-agent-harnesstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use close-spec, design-with-images 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.
dzhngSkillclose-spec
When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).
Also in 5 projects that use this
dzhngSkilldesign-with-images
Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.
Also in 5 projects that use this
LambenthanSkilldaily-arxiv
每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新
Also in 5 projects that use this
LambenthanSkillexp-eval
实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges
Also in 5 projects that use this
- +3 more from dzhng
- +5 more from Lambenthan
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- garrytan/gstack★ 141ksame name
- ansible/ansible★ 71ksame name
- docling-project/docling★ 70ksame name
- traefik/traefik★ 65ksame name
- ClickHouse/ClickHouse★ 51ksame name
- temporalio/temporal★ 24ksame name
- tisfeng/Easydict★ 15ksame name
- juicedata/juicefs★ 15ksame name
- elie222/inbox-zero★ 13ksame name
- gitkraken/vscode-gitlens★ 10ksame name
182 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 repository18 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-browserSkill
- ai-writing-detectorSkill
- animate-svgSkill
- browserbaseSkill
- clickhouseSkill
- commitSkill
- geist-designSkill
- generate-faviconSkill
- generate-imageSkill
- google-indexingSkill
- google-search-consoleSkill
- google-searchSkill
- humanizerSkill
- keyword-researchSkill
- parallelSkill
- remove-backgroundSkill
- web-uiSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 3 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 157 edited versions we read keep these.
3
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
- Distinctive: line 47
Default source: uncommitted changes if any exist, otherwise prompts for a base branch or commit.
- Distinctive: line 52
Only you (the agent) have the conversation context.
- Very specific: line 97
Call mcp__codex__codex-reply with the same threadId:
- Very specific: line 128
Run a single self-verifying pass (step 4's "re-read your citations" is folded into the prompt, since claude -p is naturally one-shot):
- Distinctive: line 151
ONLY the JSON object." Then persist and render as in step 5.
“Common” is measured: kept by at least 6 in 10 of the 157 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
Review
Local, high-signal code review: build a bundle of context on disk, hand it to Codex via MCP, render the structured JSON verdict back to the user.
vs. the built-ins
This is the second-opinion review — a different vendor's model reads the
change, catching what own-model review is blind to. Claude Code's built-ins are
complementary: /code-review (own-model review of the diff, with --fix and
--comment for inline PR comments), /simplify (quality-only; does not hunt
bugs), /security-review (security pass over branch changes).
When to Use
User says "review", "/review", "review my changes"; before committing non-trivial work or opening a PR; after addressing feedback, to confirm resolution.
Workflow
1. Assemble the bundle
prepare gathers disk-side context and prints the bundle directory path as the
last line of stdout.
./scripts/review prepare \
--issues "#123,PROJ-456" \
--plan ./plan.md \
--title "Refactor auth flow"It writes: CHANGES.diff (unified diff), CHANGED_FILES.txt, ISSUES.md
(fetched GitHub / Linear / Sentry context), PLAN.md (--plan, else most recent
~/.claude/plans/*.md), CONVENTIONS.md (repo REVIEW.md + CLAUDE.md + user
~/.claude/CLAUDE.md), REFERENCED_FILES.md (contents of --files),
REVIEW_PROMPT.md (reviewer prompt, copied from this skill), MANIFEST.json,
and AGENT_CONTEXT.md — a placeholder you fill in next.
Default source: uncommitted changes if any exist, otherwise prompts for a base branch or commit.
2. Write AGENT_CONTEXT.md
Only you (the agent) have the conversation context. Overwrite the placeholder with what's not on disk: the user request (quote the original ask and clarifying turns), user feedback (corrections and course-corrections during the work), plan iteration (decisions and tradeoffs that shaped the change, especially ones the plan file missed), and a one-paragraph task summary.
Be concrete. This is the canonical statement of intent the reviewer uses for spec-conformance judgments.
3. Invoke the reviewer
Reviewer priority is Codex → Claude. Read <bundle>/REVIEW_PROMPT.md and
pass its contents to mcp__codex__codex with the bundle path. Recommended
config:
{
"approval-policy": "never",
"sandbox": "workspace-write",
"model": "gpt-6-astra",
"config": { "model_reasoning_effort": "medium" }
}Model policy (2026-09-07): reviews run on gpt-6-astra at medium reasoning.
That model needs Codex CLI ≥ 0.154.0-alpha.3 (npm i -g @openai/codex@alpha,
and bun install -g @openai/codex@alpha if a bun-global codex shadows it on
PATH; check codex --version). If the MCP answers "requires a newer version of
Codex", the MCP server process is still the old binary: reconnect it (/mcp)
or restart the session, and until then use the CLI form below with the same
model flags.
Prompt shape:
{REVIEW_PROMPT.md contents}
Review bundle directory:
<absolute bundle path>Read every file in that directory (check MANIFEST.json for the list) before producing your JSON response.
Capture the returned threadId from structuredContent.threadId.
4. Verification pass (required)
Call mcp__codex__codex-reply with the same threadId:
For each issue you returned, re-read the file and lines cited in
evidence. Drop any finding where the citation does not substantiate the claim (wrong file, wrong line, code doesn't match the description, or you inferred from naming rather than reading). Return the updated JSON object — same schema, only verified findings. Recomputeseverity_countsandscoreaccordingly.
This single step is the biggest quality lever — it suppresses hallucinated findings that name functions or lines that don't exist.
5. Parse, persist, render
Parse the final JSON; if Codex wrapped it in prose or fences, strip them and
retry, then send one more codex-reply asking for valid JSON only. Write the
verified JSON to <bundle>/review.json.
Render terse — the user reads review.json for detail: score + verdict headline
(e.g. 4/5 — ready-with-nits), one-line summary, spec_alignment, then issues
grouped by severity (critical → high → medium → nit → pre_existing) with
title, files[].path:lines and a one-line description; strengths /
improvements if present; the <bundle> path for raw artifacts.
Fallback: claude -p (on ANY Codex error)
On any Codex failure — MCP tool not loaded, usage/credit limit, timeout, auth error, empty or non-JSON output, anything else — switch to a headless Claude review with the SAME bundle. It runs on Anthropic credits, independent of Codex's OpenAI quota, so a Codex outage never blocks the review. Never abandon the review because Codex failed; this is a first-class path, not a last resort.
Run a single self-verifying pass (step 4's "re-read your citations" is folded
into the prompt, since claude -p is naturally one-shot):
claude -p "$(cat <bundle>/REVIEW_PROMPT.md)
Review bundle directory: <bundle path>
Read every file in that directory (check MANIFEST.json) before producing your JSON
response. You MAY read files in the working repository to verify cross-file findings.
Before emitting, RE-READ each finding's cited file:line and DROP any you cannot
substantiate (wrong file/line, code doesn't match, or inferred from naming).
Recompute severity_counts and score. Return ONLY the JSON object — no prose, no fences." \
--model opus \
--permission-mode bypassPermissions \
> <bundle>/review.json--permission-mode bypassPermissionslets the headless reviewer read bundle + repo without prompts (the prompt is read-only by intent). For least-privilege, use--allowedTools "Read Grep Glob Bash"instead.--model opusfor review quality; omit to use the user's default model.- stdout is the JSON object. If it won't parse after stripping fences, re-run the
same
claude -pappending "Your previous output did not parse as JSON. Return ONLY the JSON object." Then persist and render as in step 5.
Older fallback: Codex CLI
The CLI hits the same backend and credits as the MCP — if the MCP failure was a
credit/usage limit, the CLI fails identically, so go straight to claude -p. Use
the CLI only when the MCP tool is merely not loaded in the session:
codex exec --cd <bundle path> --sandbox workspace-write \
-m gpt-6-astra -c model_reasoning_effort=medium --skip-git-repo-check \
"$(cat <bundle>/REVIEW_PROMPT.md)
Review bundle directory: <bundle path>
Read every file in that directory before producing your JSON response." < /dev/null< /dev/null matters when the shell is not a TTY (background jobs, agents):
codex exec otherwise blocks on "Reading additional input from stdin..." until
the timeout and produces nothing. Use -o <file> to capture the final message.
Output schema
REVIEW_PROMPT.md in this skill is the single source of truth for the JSON
schema, the severity ladder, and the 0–5 verdict ladder (ship →
ready-with-nits → needs-changes → significant-changes → rethink). Read it
there rather than restating it.
Command
./scripts/review prepare [OPTIONS]Options
| Option | Description |
--base, -b BRANCH | Compare against branch |
--uncommitted, -u | Review staged/unstaged/untracked changes (default when changes exist) |
--commit, -c SHA | Review specific commit |
--issues, -i REFS | Issue refs (comma-separated): #123, PROJ-456, sentry:12345, or URLs |
--plan, -p PATH | Plan file path (default: most recent ~/.claude/plans/*.md) |
--files, -f PATHS | Additional files (comma-separated) |
--title, -t TEXT | Commit/PR title recorded in MANIFEST.json |
--bundle-dir PATH | Override bundle location (default: ~/.claude/review-bundles/<iso>) |
Requirements
- Codex MCP (
mcp__codex__codex+mcp__codex__codex-reply), preferred; theclaudeCLI as the always-available fallback. - Codex CLI ≥ 0.154.0-alpha.3 for
gpt-6-astra(see model policy above). - Codex MCP server: set
client_session_timeout_secondshigh (e.g.360000) — reviews routinely run many minutes. ghCLI for GitHub issues. Optional:LINEAR_API_KEY;SENTRY_AUTH_TOKEN+SENTRY_ORG.
Per-repo customization — REVIEW.md
Drop a REVIEW.md at the repo root to inject house rules (skip paths, nit caps,
mandatory checks). It concatenates into CONVENTIONS.md in every bundle and
overrides the generic prompt where they conflict. See REVIEW.md.example in this
skill for a template.
Examples
./scripts/review prepare # uncommitted, auto-pick latest plan
./scripts/review prepare --uncommitted --issues "#142" # with linked issue
./scripts/review prepare --commit HEAD # last commit
./scripts/review prepare --base main # branch diffDoes 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.

