review-it
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Code review closeout for Claude Code, Codex, OpenCode, and DeepSeek TUI: local dirty changes, branch vs main, parallel tests.
3installs
Sourcesmallnest/goal-workflow
Added on
NPX Install
npx skill4agent add smallnest/goal-workflow review-itTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →CC Review
Run automated code review as a closeout check before committing or shipping. Works across multiple AI coding agents.
Use when:
- user asks for code review / review-it / autoreview
- after non-trivial code edits, before final/commit/ship
- reviewing a local branch or PR branch after fixes
Supported Agents
| Agent | Review Command | Notes |
|---|---|---|
| Claude Code | | Built-in, works on uncommitted changes or diff |
| Codex | | Pass diff file or let it auto-detect |
| OpenCode | | Same as Claude Code |
| DeepSeek TUI | | Pass diff content for analysis |
Contract
- Treat review output as advisory. Never blindly apply it.
- Verify every finding by reading the real code path and adjacent files.
- Read dependency docs/source/types when the finding depends on external behavior.
- Reject unrealistic edge cases, speculative risks, broad rewrites, and fixes that over-complicate the codebase.
- Prefer small fixes at the right ownership boundary; no refactor unless it clearly improves the bug class.
- Keep going until review returns no accepted/actionable findings.
- If a review-triggered fix changes code, rerun focused tests and rerun review.
- Stop as soon as the review comes back clean with no actionable findings.
- If rejecting a finding as intentional/not worth fixing, add a brief inline code comment only when it explains a real invariant or ownership decision that future reviewers should know.
- Do not push just to review. Push only when the user requested push/ship/PR update.
Pick Target
Claude Code / OpenCode / DeepSeek TUI
Dirty local work (default — works on uncommitted changes):
/review/reviewBranch/PR work — review all changes against base:
First generate a diff, then review it:
bash
git diff origin/main...HEAD > /tmp/review-it.diffThen review the diff file with a focused prompt:
/review the changes in /tmp/review-it.diff against origin/mainIf an open PR exists, use its actual base:
bash
base=$(gh pr view --json baseRefName --jq .baseRefName)
git diff "origin/$base"...HEAD > /tmp/review-it.diffCodex
bash
# Review uncommitted changes
codex review
# Review branch diff
git diff origin/main...HEAD > /tmp/review-it.diff
codex review /tmp/review-it.diffParallel Closeout
Format first if formatting can change line locations. Then it's OK to run tests and review in parallel:
bash
scripts/review-it --parallel-tests "<focused test command>"Tradeoff: tests may force code changes that stale the review. If tests or review lead to code edits, rerun the affected tests and rerun review until no accepted/actionable findings remain.
Uncommitted vs Branch Review
Choose the right mode:
- Uncommitted changes (staged/unstaged): use directly (or
/review)codex review - Committed, not pushed: use + review
git diff origin/main...HEAD - Pushed/PR: same as committed, against the PR base
- Clean working tree: skip review if there's truly nothing to review
Helper
Bundled helper script for parallel test + review orchestration:
bash
~/.claude/skills/review-it/scripts/review-it --helpThe helper:
- Detects whether to use uncommitted review or branch diff review
- For branch mode: generates diff against (or PR base), then triggers review
origin/main - Supports for concurrent test + review execution
--parallel-tests - Supports for checking what command would be used
--dry-run - Prints when review is clean
review-it clean: no accepted/actionable findings reported
Final Report
Include:
- review target (uncommitted / branch / PR base)
- tests/proof run
- findings accepted/rejected, briefly why
- the clean review result, or why a remaining finding was consciously rejected
Do not run another review solely to improve the final report wording. If review exited clean with no actionable findings, report that as clean.