name: review description: Review the current diff for bugs, security issues, and code quality concerns disable-model-invocation: true allowed-tools: Bash, Read, Grep, Glob
Review
Review the current diff for bugs, security issues, and code quality concerns.
Steps
-
Gather changes
- Run
git diffto see unstaged changes - Run
git diff --cachedto see staged changes - If no local changes exist, diff against the base branch
- Run
-
Review for issues
- Bugs and logic errors
- Security vulnerabilities (injection, auth issues, data exposure)
- Edge cases and error handling gaps
- Performance concerns
-
Provide feedback
- List issues by severity (critical, warning, suggestion)
- Reference specific files and line numbers
- Suggest a fix for each issue
- If no issues found, confirm the changes look good