npx claudepluginhub misterraindrop/cc-skills --plugin code-review/review-commitAnalyze a commit's quality including message, changes, atomicity, and completeness.
/review-commitReview working directory changes for code quality, security, and best practices before creating a PR
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.