Commandpython
/review-changes Command
Review all uncommitted changes before commit
Review all uncommitted changes and provide feedback.
Steps:
-
Get Change Summary
- Run
git statusto see all changed files - Run
git diffto see actual changes (staged and unstaged)
- Run
-
Analyze Each Changed File For each modified file, check:
- Does it follow platform patterns from CLAUDE.md?
- Any security concerns (hardcoded secrets, SQL injection, XSS)?
- Any performance issues (N+1 queries, missing async/await)?
- Proper error handling?
- Code style compliance?
-
Check for Common Issues
- Unused imports or variables
- Console.log/Debug.WriteLine statements left in
- Hardcoded values that should be configuration
- Missing async/await keywords
- Incorrect exception handling
- Missing validation
-
Backend-Specific Checks
- CQRS patterns followed correctly
- Repository usage (no direct DbContext access)
- Entity DTO mapping patterns
- Validation using PlatformValidationResult
-
Frontend-Specific Checks
- Component base class inheritance correct
- State management patterns
- Memory leaks (missing unsubscribe)
- Template binding issues
-
Provide Summary
- Critical Issues: Must fix before commit
- Warnings: Should consider fixing
- Info: Minor suggestions
- Suggested commit message: Based on changes