Code Review: Uncommitted Changes
Perform a comprehensive code review of all uncommitted git changes following EasyPlatform standards.
Summary
Goal: Review all uncommitted changes via a report-driven four-phase process before commit.
| Phase | Action | Key Notes |
|---|
| 0 | Collect changes & create report | , , create plans/reports/code-review-*.md
|
| 1 | File-by-file review | Read each diff, update report with summary/purpose/issues |
| 2 | Holistic review | Re-read accumulated report for architecture coherence |
| 3 | Finalize findings | Critical issues, recommendations, suggestions, commit message |
Key Principles:
- Be skeptical. Critical thinking. Everything needs traced proof. — Never accept code at face value; verify claims against actual behavior, trace data flow end-to-end, and demand evidence (file:line references, grep results, runtime confirmation) for every finding
- Ensure code quality: no flaws, no bugs — Verify correctness of logic, data flow, edge cases, and error handling. Flag anything that could fail at runtime
- Clean code and DRY — No duplication, clear naming, single responsibility, early returns. Code should be self-documenting
- Follow existing conventions — Match project patterns, naming style, file organization, and architectural decisions already established in the codebase. Grep for similar implementations before flagging deviations
- Docs must match code — If changes affect behavior, APIs, or features, verify related docs are updated: feature docs (), test specs (), CHANGELOG, README, architecture docs, and inline code comments. Flag any doc that describes old behavior
- Build report incrementally — update after EACH file, not at the end
- Check logic placement in lowest layer (Entity > Service > Component)
- Always suggest conventional commit message based on changes
Review Approach (Report-Driven Four-Phase - CRITICAL)
⛔ MANDATORY FIRST: Create Todo Tasks for Review Phases
Before starting, call TodoWrite with:
Update todo status as each phase completes. This ensures review is tracked.
Phase 0: Get Changes & Create Report
0.1 Get Change Summary
bash
# See all changed files
git status
# See actual changes (staged and unstaged)
git diff HEAD
0.2 Create Report File
Phase 1: File-by-File Review (Build Report Incrementally)
For EACH changed file, read the diff and immediately update report with:
Review Checklist Per File
Architecture Compliance
Code Quality
Naming Conventions
Platform Patterns
Security
Performance
Backend-Specific Checks
Frontend-Specific Checks
Common Anti-Patterns to Flag
Test-Specific Checks (When Diff Includes Test Files)
Apply these checks ONLY to files matching
or
:
Assertion Quality
Data Verification
Test Structure
Anti-Patterns to Flag in Tests
Phase 2: Holistic Review (Review the Accumulated Report)
After ALL files reviewed, re-read the report to see big picture:
Phase 3: Generate Final Review Result
Update report with final sections:
Output Format
Summary: Brief overall assessment of the changes
Critical Issues: (Must fix before commit)
- Issue 1: Description and suggested fix
- Issue 2: Description and suggested fix
High Priority: (Should fix)
- Issue 1: Description
- Issue 2: Description
Suggestions: (Nice to have)
- Suggestion 1
- Suggestion 2
Positive Notes:
Architecture Recommendations: (If applicable)
Suggested Commit Message: Based on changes (conventional commit format)
<type>(<scope>): <description>
<body - what and why>
IMPORTANT Task Planning Notes
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed