review
Reviews a diff or a pull request line by line against this repo's rules and prints findings a reviewer would leave as comments, split into Must fix and Worth a look. Never edits, commits or approves. Use when the user types /review [<range> | <PR number>].
- License 许可
- MIT
- 最近更新
- 2026-10-29
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- review
- agent
- general-purpose
- context
- fork
- background
- false
- description
- Reviews a diff or a pull request line by line against this repo's rules and prints findings a reviewer would leave as comments, split into Must fix and Worth a look. Never edits, commits or approves. Use when the user types /review [<range> | <PR number>].
- allowed-tools
- Bash(bash scripts/agent/*) Bash(bash scripts/git/*) Bash(git diff *) Bash(git log *) Bash(gh pr diff *) Bash(gh pr view *)
- disable-model-invocation
- true
03 SKILL.md 正文
Review — read like a reviewer, report like one
Target: $ARGUMENTS (a <base>..<tip> range, a PR number, or nothing = bash scripts/agent/gates.sh range)
The gates prove the mechanics; a review proves the change is the right one, small enough, and says why. This runs in a fresh context so the author's session never reviews its own work. It writes nothing and changes nothing.
1. Get the diff
range="$(bash scripts/agent/gates.sh range)"; git diff "$range" # or: gh pr diff <n>
bash scripts/agent/scan-diff.sh "$range" # the mechanical findings, first
Mechanical lines (✖, ⚠) are quoted, not re-derived. Everything below is what a script cannot see.
2. Read every added line against the rubric
| Look for | Rule |
|---|---|
| A reason the reader cannot infer | a comment says why, ≤2 lines; a directive is one line with -- <why> |
| New UI | built with this repo's own UI library and its existing components (its UI skill); no new kit or design system without a ticket |
| State read in a render | selectors stable, no object literals as props, keys stable |
| A test that only mirrors the implementation | tests assert behaviour the user sees |
| A doc the change makes wrong | module docs move with the code (scripts/git/doc-map.txt) |
| Scope creep | files the ticket does not need; a second change hiding in the first |
| A dependency added | the trailer says why, the size is known, nothing already in the tree does it; deps-check.mjs passed (no unreviewed install script, typo-squat name or licence outside DEPS_LICENSES), and any docs/DEPS-EXCEPTIONS.md row is dated and explained |
| A secret-scan or build-scan finding | the value is rotated, never just deleted; an allowlist entry in .gitleaks.toml names one rule and one path, below friday's block |
3. Report in this shape, then stop
One line per finding, as the comment you would leave, with the exact place. At most 20 lines.
## /review — <range | PR #n> · <n> files · <n> findings
Must fix
<file>:<line> <what is wrong> → <the fix>
Worth a look
<file>:<line> <the question or the smaller way>
Mechanical: <scan-diff summary line>
Next
/task <prompt that fixes the Must fix lines> | nothing to fix: /finalize
then ./orbit ship <KEY>; once the PR checks pass, the Arivu review: a PR comment /arivu review, or ./orbit ci review <repo> <pr>
(after a fix: --since last · --model haiku|sonnet|opus|fable · --all)
Stop conditions
Stop after the report. Don't fix, don't approve, don't run /review again yourself.
04 同仓库更多 Skills
task
Builds one change to this repo: reads the skills that govern it, plans as much as the work type needs (hotfix: none; change: printed; new: approved first), does the work and runs the gates at the plan's risk. Runs inside /flow for every request, or when the user types /task <request>.
scan
Orients an agent in this repo once per session: reads every skill and governing doc in full, checks what they claim against the filesystem, and reports what governs this repo and where CLAUDE.md has drifted. Use only when the user types /scan.
handoff
Writes the QA test plan for a finished change — what changed for the user, where to look, and the test cases — into the tracked change record, in a tester's words with no code, and comments it on the ticket. Use when /flow reaches it, or when the user types /handoff after /finalize said ready.
flow
Carries any request in this repo from the first message to a pull request: decides where the work belongs and which type it is, settles the ticket and branch, runs /task, asks the developer before any commit, runs the second check, /handoff and ship.sh, and ends with what the developer does next. Use for every request when TASK_MODE=auto, or when the user types /flow <request>.
finalize
Judges a change from exit codes only: stage 1 on the proposed commit before the commit question, stage 2 on the committed sha, or the branch range. Never fixes, commits, pushes or asks. Runs when /flow reaches it, or when the user types /finalize.
task
暂无简介