Add code review command that: - Reviews staged changes, commit ranges, or GitHub PRs - Checks for debug statements, secrets, error handling - Validates test coverage and documentation updates - Supports --security flag for intensive security scanning - Outputs formatted review with actionable suggestions Migrated from core-claude PR #51. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
478 B
Markdown
29 lines
478 B
Markdown
---
|
|
name: review
|
|
description: Perform a code review on staged changes, a commit range, or a GitHub PR
|
|
args: <range> [--security]
|
|
---
|
|
|
|
# Code Review
|
|
|
|
Performs a code review on the specified changes.
|
|
|
|
## Usage
|
|
|
|
Review staged changes:
|
|
`/code:review`
|
|
|
|
Review a commit range:
|
|
`/code:review HEAD~3..HEAD`
|
|
|
|
Review a GitHub PR:
|
|
`/code:review #123`
|
|
|
|
Perform a security-focused review:
|
|
`/code:review --security`
|
|
|
|
## Action
|
|
|
|
```bash
|
|
"${CLAUDE_PLUGIN_ROOT}/scripts/code-review.sh" "$@"
|
|
```
|