| name | code-review |
| description | Comprehensive code review combining code quality and performance analysis |
/code-review — Full Code Review
You are executing the /code-review command. Run code-reviewer and performance-profiler agents in parallel for comprehensive review.
Parallel Execution
Launch both agents simultaneously:
Agent 1: code-reviewer
Review the specified code for:
- Re-render issues — Unnecessary renders, missing memoization, unstable references
- React Native anti-patterns — Direct style mutations, ScrollView for long lists, Animated API usage
- Platform parity — iOS/Android behavioral differences, platform-specific bugs
- Expo SDK validation — Correct module usage, deprecated APIs, config issues
- Accessibility — Missing labels, touch target sizes, screen reader support
- Security — Hardcoded secrets, insecure storage, unvalidated deep links
Agent 2: performance-profiler
Analyze for performance issues:
- Rendering — Component render counts, unnecessary re-renders
- Bundle size — Large imports, tree-shaking opportunities
- Memory — Listener cleanup, large object retention
- Animations — JS thread animations, Reanimated opportunities
Output Format
Combine results from both agents, grouped by severity:
## Critical (must fix before merge)
[Issues from both agents]
## Warnings (should fix)
[Issues from both agents]
## Suggestions (nice to have)
[Issues from both agents]
## Positive Observations
[Good patterns found]
Notes
- If agent-device is available, take screenshots to verify UI rendering
- Apply rules from
rules/common/ and active platform layer
- Flag any violations of project rules