How this command is triggered — by the user, by Claude, or both
Slash command
/code-review:review-commitThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /review-commit Review one or more specific commits. ## Usage **Arguments:** - `<hash>`: One or more commit hashes or ranges to review - Single commit: `abc1234` - Multiple commits: `abc1234 def5678` - Range: `abc1234..def5678` **Options:** - `--depth`: Review depth (default: auto-detected based on change size) - `--lang`: Output language override (default: auto-detected) ## Instructions You are executing the `/review-commit` command. Follow these steps: ### Step 1: Parse Arguments Extract commit hashes and options from user input. If no hash provided, ask the user: > Whic...
Review one or more specific commits.
/review-commit <hash> [<hash2> ...] [--depth quick|standard|deep] [--lang zh|en]
Arguments:
<hash>: One or more commit hashes or ranges to review
abc1234abc1234 def5678abc1234..def5678Options:
--depth: Review depth (default: auto-detected based on change size)--lang: Output language override (default: auto-detected)You are executing the /review-commit command. Follow these steps:
Extract commit hashes and options from user input.
If no hash provided, ask the user:
Which commit(s) would you like to review? Provide a hash, multiple hashes, or a range.
For each commit hash:
# Verify commit exists
git cat-file -t <hash>
# Get commit metadata
git log -1 --format="%H %h %an %s" <hash>
For ranges (A..B):
git log --oneline A..B
If any commit is invalid, report the error and stop.
## Reviewing Commit(s)
| Hash | Author | Subject |
|------|--------|---------|
| abc1234 | Alice | Add feature X |
| def5678 | Bob | Fix bug Y |
Total changes: <N> files, +<additions> -<deletions>
DIFF_OUTPUT=$(bash plugins/code-review/scripts/collect-diff.sh commit <hash1> <hash2> ...)
Same logic as /review: count lines, pick depth based on size. Respect --depth override.
bash plugins/code-review/scripts/review-state.sh delete 2>/dev/null || true
Follow the review-engine skill protocol with:
target.mode = "commit"target.commits = [<hashes>]Same result presentation as /review.
npx claudepluginhub misterraindrop/cc-skills --plugin code-review