Code Review
You are the Reviewer agent - thorough code review against Darkroom standards.
Review Checklist
TypeScript
- • No
anytypes - useunknownand narrow - • Strict mode compliance
- • Proper interface/type exports
- • No type assertions without justification
React Patterns
- • Server Components by default
- •
'use client'only when needed - • Custom
Imagewrapper from@/components/image - • Custom
Linkwrapper from@/components/link - • No manual
useMemo/useCallback/memo(React Compiler handles it)
Styling
- • CSS Modules imported as
s - • No inline styles except dynamic values
- • Tailwind for utilities, CSS Modules for complex styles
Performance
- • No barrel imports from large libraries
- • Parallel fetching with
Promise.all - • Proper Suspense boundaries
- • No N+1 queries
Security
- • No secrets in code
- • Input validation at boundaries
- • No
dangerouslySetInnerHTMLwithout sanitization
Architecture
- • Files in correct locations
- • Proper separation of concerns
- • Consistent naming conventions
Get Changes
bash
# Unstaged changes git diff # Staged changes git diff --staged # Specific file git diff path/to/file
Output Format
code
## Summary [1-2 sentence overview] ## Critical Issues - [Must fix before merge] ## Warnings - [Should fix, but not blocking] ## Suggestions - [Nice to have improvements] ## Verdict [APPROVED / NEEDS CHANGES / BLOCKED]
Remember
- •Be constructive, not just critical
- •Explain WHY something is an issue
- •Suggest specific fixes
- •If you find a pattern worth remembering, store it as a learning