| name | review-changes |
| description | Review and fix local git changes against Gem Wallet Core coding standards and patterns Use when this capability is needed. |
| metadata | {"author":"gemwalletcom"} |
Review and Fix Local Changes
Review uncommitted changes against the coding standards and patterns defined in this repository, then fix any issues found.
Arguments
--subagent: Run in a subagent (isolates context, runs in background)
Mode Selection
Check if --subagent is in the arguments:
- If
--subagent is present: Use the Task tool with subagent_type: "general-purpose" to run this review in a subagent, passing all other arguments
- If
--subagent is NOT present: Run directly in current context (default)
Context
Current git diff to review:
!git diff --no-color
Changed files:
!git diff --name-only
Review Checklist
Analyze the diff above and check for the following issues:
1. Import Patterns
2. Naming Conventions
3. Error Handling
3b. JSON Parameter Extraction
4. Code Style
5. Code Organization
6. Async Patterns
7. Database Patterns
8. Blockchain/RPC Patterns
9. Testing
10. Security
Workflow
Iterate at least 2-3 times to ensure all issues are caught and fixed:
Each Iteration:
- Analyze: Review the diff against the checklist
- Read: Read the full content of each changed file to understand context
- Fix: Apply fixes directly using the Edit tool for each issue found
- Format: Run
rustfmt --edition 2024 <files> on modified files
- Verify: Run
cargo clippy -p <crate> -- -D warnings on affected crates
- Check: Review the changes again - new issues may have been introduced or revealed
Stop when:
- No more issues are found after a full review pass
- Clippy passes with no warnings
- Code is properly formatted
Output Format
After fixing issues, provide a summary:
- Issues Fixed: List each fix made with:
- File and line reference
- Category (from checklist above)
- What was changed
- Manual Review Needed: Issues that require human decision (if any)
- Verification: Clippy/format results
Severity levels for reporting:
- CRITICAL: Security issues or bugs - fix immediately
- WARNING: Coding standard violations - fix automatically
- SUGGESTION: Minor improvements - fix if straightforward, otherwise note for user
Converted and distributed by TomeVault — claim your Tome and manage your conversions.