| name | code-review |
| description | Perform structured code reviews with a focus on bugs, security, testing, and maintainability. |
Code Review Skill
Use this skill when the user asks you to review code, inspect a diff, or audit a codebase.
Review priorities
- Start with correctness and regressions.
- Then check security and data-handling risks.
- Look for missing tests around the changed behavior.
- Flag maintainability issues only after the functional risks.
Suggested workflow
- Read the changed files or the relevant entry points.
- Identify the behavior the code is trying to implement.
- Compare that behavior with the actual implementation.
- Record concrete findings with file paths and line references when possible.
Output style
- Lead with findings, ordered by severity.
- Keep the summary brief.
- Mention residual risks or missing validation if tests were not run.
Common things to catch
- Unsafe shell execution or path handling
- Missing error handling
- Edge cases around empty input or invalid state
- Tests that do not cover the risky branches