agent/claude/code/commands/review.md
Snider 5f136dea2a
feat(code): add /code:review for automated code review (#107)
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>
2026-02-02 07:31:30 +00:00

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" "$@"
```