Spaces:
Running
Running
File size: 1,240 Bytes
81aa0b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | ---
name: review
description: Review the current changes for bugs and quality issues
argument-hint: Optional file or PR to review
---
## Review Task
Review the current code changes for quality and correctness.
If $ARGUMENTS is provided, review that specific file or changeset.
Otherwise, review the current `git diff HEAD`.
## Process
1. Use `bash` to get the diff:
- If arguments given and it's a file: `git diff HEAD -- $ARGUMENTS`
- Otherwise: `git diff HEAD`
2. Read each changed file fully with `read_file` for context.
3. Apply the code-review skill — focus on HIGH SIGNAL issues only:
- Bugs that will cause incorrect behavior
- Security issues (hardcoded secrets, injection, path traversal)
- Syntax/type errors
- Clear convention violations
4. Do NOT flag:
- Subjective style preferences
- Potential issues that depend on specific inputs
- Pedantic nitpicks
5. Output your review in this format:
```
## Code Review
### Critical
- `file:line` — Description and fix
### High
- `file:line` — Description and fix
### Medium
- `file:line` — Description and fix
### Summary
Brief overall assessment.
```
If no issues: state "No issues found. Checked for bugs, security, and conventions."
|