| description | Review current changes for correctness, style, and potential issues |
| name | review |
| user_invocable | true |
Review
Review all staged and unstaged changes in the current repository.
Steps
- Run
git diff and git diff --staged to collect all changes.
- For each changed file, analyze:
- Correctness: Logic errors, off-by-one mistakes, missing error handling.
- Style: Adherence to Rust idioms, naming conventions, code formatting.
- Safety: Unwrap usage, potential panics, unsafe blocks.
- Testing: Whether new code paths have corresponding tests.
- Check that commit messages (if any) follow Conventional Commits format.
- Report findings grouped by severity: errors, warnings, suggestions.
- If no issues are found, confirm the changes look good.