22 lines
874 B
Markdown
22 lines
874 B
Markdown
---
|
|
description: Review code, diffs, or changes with actionable feedback
|
|
argument-hint: "[target: file path, diff, or PR]"
|
|
subagent: true
|
|
fork: true
|
|
---
|
|
Review the following code or changes: $@
|
|
|
|
Provide feedback in these categories:
|
|
- **Correctness** — bugs, logic errors, edge cases, race conditions
|
|
- **Security** — injection, unsafe defaults, secrets, auth/z issues
|
|
- **Performance** — unnecessary work, memory leaks, hot-path inefficiencies
|
|
- **Maintainability** — naming, complexity, duplication, testability
|
|
- **Style & Idioms** — consistency with the surrounding codebase
|
|
- **Error Handling** — missing or misleading failure modes
|
|
|
|
For each issue, include:
|
|
- The specific location (file, line, function)
|
|
- A clear description of the problem
|
|
- A concrete suggestion or example fix
|
|
|
|
Also call out anything done well. Keep the review concise and prioritized. |