/cook-en:multi-role runs instead · from cook-en
Runs parallel analysis with multiple specialist roles (e.g., security, performance, frontend) and generates an integrated report with prioritized recommendations. Trigger via /multi-role or phrases like 'multi-role analysis'.
This skill never runs in Claude Code
It ships in cook-en at skills/, but /cook-en:multi-role (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
A command that analyzes the same target in parallel with multiple roles and generates an integrated report.
/multi-role <role1>,<role2> [--agent|-a] [analysis_target]
/multi-role <role1>,<role2>,<role3> [--agent|-a] [analysis_target]
security: Security audit expertperformance: Performance optimization expertanalyzer: Root cause analysis expertfrontend: Frontend and UI/UX expertmobile: Mobile development expertbackend: Backend and server-side expertreviewer: Code review expertarchitect: System architectqa: Test engineerImportant:
--agent option immediately after specifying roles--agent/multi-role qa,architect --agent Evaluate the plan/multi-role qa,architect Evaluate the plan --agent--agent or -a: Execute each role as a sub-agent in parallel (recommended for large-scale analysis)
# Dual analysis of security and performance (normal)
/multi-role security,performance
"Evaluate this API endpoint"
# Parallel analysis of large-scale system (sub-agents)
/multi-role security,performance --agent
"Comprehensively analyze system security and performance"
# Integrated analysis of frontend, mobile, and performance
/multi-role frontend,mobile,performance
"Consider optimization proposals for this screen"
# Multifaceted evaluation of architecture design (sub-agents)
/multi-role architect,security,performance --agent
"Evaluate microservices design"
Each role independently analyzes the same target
Structure and integrate results
Generate final recommendations
Multi-role Analysis: Security + Performance
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Analysis Target: API endpoint /api/users
Security Analysis Results:
Authentication: JWT verification properly implemented
Authorization: Role-based access control incomplete
Encryption: API keys logged in plain text
Evaluation Score: 65/100
Importance: High (due to sensitive data access)
Performance Analysis Results:
Response Time: Average 180ms (within target of 200ms)
Database Queries: N+1 problem detected
Caching: Redis cache not implemented
Evaluation Score: 70/100
Importance: Medium (currently within acceptable range)
Interrelated Analysis:
Synergistic Opportunities:
- Consider encryption when implementing Redis cache
- Improve logging for both security and performance gains
Trade-off Points:
- Authorization check strengthening ↔ Impact on response time
- Log encryption ↔ Reduced debugging efficiency
Integrated Priorities:
Critical: Fix API key plain text output
High: Resolve N+1 queries
Medium: Implement Redis cache + encryption
Low: Refine authorization control
Implementation Roadmap:
Week 1: Implement API key masking
Week 2: Database query optimization
Weeks 3-4: Cache layer design and implementation
Month 2: Progressive strengthening of authorization control
Multi-role Analysis: Frontend + Mobile + Performance
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Analysis Target: User Profile Screen
Frontend Analysis Results:
Usability: Intuitive layout
Accessibility: 85% WCAG 2.1 compliance
Responsive: Issues with tablet display
Mobile Analysis Results:
Touch Targets: 44pt+ ensured
One-handed Operation: Important buttons placed at top
Offline Support: Not implemented
Performance Analysis Results:
Initial Display: LCP 2.1s (good)
Image Optimization: WebP not supported
Lazy Loading: Not implemented
Integrated Recommendations:
1. Mobile optimization (one-handed operation + offline support)
2. Image optimization (WebP + lazy loading)
3. Tablet UI improvements
Priority: Mobile > Performance > Frontend
Implementation Period: 3-4 weeks
/multi-role security,architect
"Authentication system design"
/multi-role security,frontend
"Login screen security"
/multi-role security,mobile
"Mobile app data protection"
/multi-role performance,architect
"Scalability design"
/multi-role performance,frontend
"Web page speed optimization"
/multi-role performance,mobile
"App performance optimization"
/multi-role frontend,mobile
"Cross-platform UI"
/multi-role frontend,performance
"Balance between UX and performance"
/multi-role mobile,performance
"Mobile UX optimization"
/multi-role architect,security,performance
"Overall system evaluation"
/multi-role frontend,mobile,performance
"Comprehensive user experience evaluation"
/multi-role security,performance,mobile
"Comprehensive mobile app diagnosis"
# Combine with file analysis
cat src/components/UserProfile.tsx
/multi-role frontend,mobile
"Evaluate this component from multiple perspectives"
# Evaluate design documents
cat architecture-design.md
/multi-role architect,security,performance
"Evaluate this design across multiple specialties"
# Error analysis
cat performance-issues.log
/multi-role performance,analyzer
"Analyze performance issues from multiple angles"
Using the --agent option executes each role as an independent sub-agent in parallel.
If role file descriptions include phrases like these, more proactive automatic delegation is enabled when using --agent:
Normal execution:
Role 1 → Role 2 → Role 3 → Integration
(Sequential execution, approx. 3-5 minutes)
--agent execution:
Role 1 ─┐
Role 2 ─┼→ Integration
Role 3 ─┘
(Parallel execution, approx. 1-2 minutes)
# Comprehensive evaluation of large-scale system
/multi-role architect,security,performance,qa --agent
"Comprehensive evaluation of new system"
# Detailed analysis from multiple perspectives
/multi-role frontend,mobile,performance --agent
"Full screen UX optimization analysis"
| Number of Roles | Normal Execution | --agent Execution | Reduction Rate |
|---|---|---|---|
| 2 roles | 2-3 minutes | 1 minute | 50% |
| 3 roles | 3-5 minutes | 1-2 minutes | 60% |
| 4 roles | 5-8 minutes | 2-3 minutes | 65% |
.claude/agents/roles/What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wasabeef/claude-code-cookbook --plugin cook-en39 skills in this plugin
/analyze-dependenciesAnalyze project dependencies and evaluate architectural healthAnalyze project dependencies and evaluate architectural health. Trigger with "analyze dependencies", "detect circular dependencies", "architecture issues?", "check module coupling", "find layer violations". Generates dependency matrix, fan-in/fan-out analysis, and prioritized improvement suggestions./analyze-performancePerformance analysis based on Core Web VitalsPerformance analysis based on Core Web Vitals with UX scoring. Trigger with "analyze performance", "improve speed", "check Core Web Vitals", "page speed", "improve LCP", "identify performance issues"./2 plugins ship this exact skill · first indexed Jul 16, 2026
Other plugins' skills for the same job