**Version:** 1.0.0
Executes a multi-agent code review with automated checks and quality scoring. Use this to validate code quality, catch issues, and get actionable recommendations before deployment.
/plugin marketplace add nguyenthienthanh/ccpm-team-agents/plugin install nguyenthienthanh-aura-frog-aura-frog-2@nguyenthienthanh/ccpm-team-agentsworkflow/Version: 1.0.0
Purpose: Execute Phase 6 - Code Review
Trigger: Auto-triggered after Phase 5c approval OR manual /workflow:phase:6
Cross-agent code review to ensure quality and best practices.
Deliverables:
Primary Reviewer: Dev agent (mobile-react-native/web-*/backend-laravel)
Secondary Reviewers: qa-automation, ui-designer, pm-orchestrator
Each agent reviews from their perspective:
Automated Checks:
# 1. Linter
npm run lint
ā Must have: 0 errors, 0 warnings ā
# 2. TypeScript
npx tsc --noEmit
ā Must have: No type errors ā
# 3. Tests
npm test
ā Must have: All tests passing ā
# 4. Coverage
npm test -- --coverage
ā Must have: ā„85% coverage ā
# 5. Code complexity (if tool available)
npm run complexity
ā Target: Complexity < 10 per function
Review for:
Architecture:
Readability:
Performance:
Security:
# Code Review Report
## Overall Assessment
**Status:** ā
APPROVED / ā ļø NEEDS CHANGES / ā REJECTED
**Quality Score:** 8.5/10
## Review Summary
Reviewed 5 components + 1 hook (620 lines total)
### Strengths
- ā
Excellent test coverage (88.5%)
- ā
Clean component structure
- ā
Proper TypeScript usage
- ā
Good separation of concerns
- ā
Comprehensive error handling
### Issues Found
**Critical:** 0
**Major:** 1
**Minor:** 3
**Suggestions:** 5
## Detailed Findings
### Major Issues (1)
**M-001: Missing accessibility label**
- File: PostCaptionEditor.tsx, line 45
- Issue: TextInput missing accessibilityLabel
- Fix: Add accessibilityLabel="Caption input"
- Priority: HIGH
### Minor Issues (3)
**m-001: Inconsistent button styles**
- File: PostActionButtons.tsx, lines 25-30
- Issue: Inline styles should use design tokens
- Fix: Extract to styled component
- Priority: LOW
**m-002: Console.log left in code**
- File: useSocialMarketingLogic.ts, line 89
- Issue: Debug console.log not removed
- Fix: Remove console.log
- Priority: MEDIUM
**m-003: Missing JSDoc on public function**
- File: useSocialMarketingLogic.ts, line 120
- Issue: handleCustomize missing documentation
- Fix: Add JSDoc comment
- Priority: LOW
### Suggestions (5)
**s-001:** Consider extracting validation logic into separate util
**s-002:** Could memoize platform options array
**s-003:** Add loading skeleton for media preview
**s-004:** Consider adding analytics events
**s-005:** Add error boundary for graceful error handling
## Agent Reviews
### Mobile React Native Agent
**Score:** 9/10
- Code follows React Native best practices ā
- Proper hook usage ā
- Good component composition ā
- Minor: Missing accessibility label (1 issue)
### QA Automation Agent
**Score:** 9.5/10
- Excellent test coverage (88.5%) ā
- Edge cases well covered ā
- Good mock usage ā
- All tests passing ā
### UI Designer Agent
**Score:** 8/10
- Design tokens used correctly ā
- Responsive implementation good ā
- Minor: Inconsistent button styles (1 issue)
- Suggestion: Add loading states
## Recommendations
### Must Fix Before Merging:
- [ ] Fix M-001: Add accessibility label
### Should Fix:
- [ ] Fix m-002: Remove console.log
- [ ] Fix m-003: Add JSDoc
### Nice to Have:
- [ ] Consider suggestions s-001 to s-005
## Approval Criteria Met
- [x] No critical issues
- [x] All tests passing
- [x] Coverage ā„ 85%
- [x] Linter clean
- [ ] All major issues fixed (1 remaining)
Phase 6 complete when:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
šÆ PHASE 6 COMPLETE: Code Review
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š Summary:
Multi-agent code review complete with quality score 8.5/10
š¦ Deliverables:
š PHASE_6_CODE_REVIEW_REPORT.md
- Overall quality score: 8.5/10
- 9 findings (0 critical, 1 major, 3 minor, 5 suggestions)
š Review Results:
**Critical Issues:** 0 ā
**Major Issues:** 1 ā ļø
**Minor Issues:** 3
**Suggestions:** 5
Agent Scores:
- Mobile RN Agent: 9/10
- QA Agent: 9.5/10
- UI Designer: 8/10
ā
Automated Checks:
ā
Linter: 0 errors, 0 warnings
ā
TypeScript: No type errors
ā
Tests: 73/73 passing
ā
Coverage: 88.5% (target: 85%)
ā ļø Issues to Address:
**Major:**
- M-001: Missing accessibility label (PostCaptionEditor)
**Minor:**
- m-002: Remove console.log (useSocialMarketingLogic)
- m-003: Add JSDoc (handleCustomize function)
ā
Success Criteria:
ā
All agents reviewed
ā
No critical issues
ā ļø 1 major issue (should fix)
ā
Quality score acceptable (8.5/10)
āļø Next Phase: Phase 7 - QA Validation
Final testing before deployment
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ļø ACTION REQUIRED
Type "/workflow:approve" ā Proceed to Phase 7 (accept current quality)
Type "/workflow:reject" ā Fix issues first
Type "/workflow:modify fix M-001" ā Fix specific issue then re-review
Your response:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
logs/contexts/{workflow-id}/deliverables/
āāā PHASE_6_CODE_REVIEW_REPORT.md
After approval ā /workflow:phase:7:
Status: Active command
Related: workflow:phase:5c, workflow:phase:7, workflow:approve