| name | code-review |
| description | Review code changes against hard rules and conventions |
Code Review Skill
Systematically review code for quality, conventions, and potential issues.
When to Use
- Before committing changes (auto-triggered)
- Reviewing others' PRs
- Self-review before pushing
- Pre-push validation (Phase 0)
Phase 0: Pre-Push Validation
Before reviewing code, ensure build passes:
If any check fails, fix before proceeding to code review.
Quick check command:
npm run typecheck && npm run lint
Check for console.log:
git diff --cached --name-only | xargs grep -l "console.log" 2>/dev/null
Review Checklist
Hard Rules Check
Code Quality Check
Conventions Check
Security Check
Output Format
Present findings as:
Code Review Summary
Files Changed: [count]
Issues Found: [count by severity]
Critical (must fix)
Warnings (should fix)
Suggestions (nice to have)
Approved
Proceed with commit? (yes / fix issues first)
Auto-Trigger
This skill is automatically invoked before every commit.