with one click
cmd-code-review-sweep
// Review changes for test gaps, simplification, naming consistency, reuse opportunities, and TODO quality
// Review changes for test gaps, simplification, naming consistency, reuse opportunities, and TODO quality
Review protocol code for chain halt risks, non-determinism, and onchain behavior bugs
Improve code readability without altering functionality using idiomatic best practices
Remove dead code and duplication pragmatically with a 5-phase systematic approach
Create structured GitHub issues from conversation context using gh CLI
Simplify documentation for clarity and scannability with approval-gated edits
Generate and edit Mermaid flowcharts and sequence diagrams with syntax validation and style guidance
| name | cmd-code-review-sweep |
| description | Review changes for test gaps, simplification, naming consistency, reuse opportunities, and TODO quality |
| disable-model-invocation | true |
Review all recent changes (staged, unstaged, or a specified branch diff) across five dimensions. Focus on actionable findings — skip nitpicks.
Identify the change scope — ask the user if unclear:
git diff HEADgit diff main...HEADRead all changed files in full before reviewing. Understand the existing patterns, not just the diff.
Review each dimension below. For each finding, cite the file and line.
repo/repository, config/configuration)?For each dimension, output:
### [Dimension Name]
- **[file:line]** — Finding description
Suggestion: ...
- **[file:line]** — Finding description
Suggestion: ...
If a dimension has no findings, output: No issues found.
End with a prioritized list of the top 3-5 most impactful changes, ranked by effort-to-value ratio.