/cook-en:role runs instead · from cook-en
Switches Claude to specialized expert roles (security, performance, architect, QA, etc.) for focused analysis. Supports sub-agent execution for large-scale tasks.
This skill never runs in Claude Code
It ships in cook-en at skills/, but /cook-en:role (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Switch to a specific role to perform specialized analysis or work.
/role <role_name> [--agent|-a]
--agent or -a: Execute as a sub-agent (recommended for large-scale analysis)
security: Security audit expert (OWASP Top 10, threat modeling, Zero Trust principles, CVE matching)performance: Performance optimization expert (Core Web Vitals, RAIL model, phased optimization, ROI analysis)analyzer: Root cause analysis expert (5 Whys, systems thinking, hypothesis-driven, cognitive bias countermeasures)frontend: Frontend and UI/UX expert (WCAG 2.1, design systems, user-centered design)mobile: Mobile development expert (iOS HIG, Android Material Design, cross-platform strategy)backend: Backend and server-side expert (RESTful design, scalability, database optimization)reviewer: Code review expert (readability, maintainability, performance, refactoring proposals)architect: System architect (Evidence-First design, MECE analysis, evolutionary architecture)qa: Test engineer (test coverage, E2E/integration/unit strategy, automation proposals)# Switch to security audit mode (normal)
/role security
"Check the security vulnerabilities of this project"
# Run security audit as a sub-agent (large-scale analysis)
/role security --agent
"Perform a security audit of the entire project"
# Switch to code review mode
/role reviewer
"Review recent changes and point out improvements"
# Switch to performance optimization mode
/role performance
"Analyze the bottlenecks of the application"
# Switch to root cause analysis mode
/role analyzer
"Investigate the root cause of this failure"
# Switch to frontend specialist mode
/role frontend
"Evaluate UI/UX improvements"
# Switch to mobile development specialist mode
/role mobile
"Evaluate mobile optimization of this app"
# Return to normal mode
/role default
"Return to normal Claude"
# Security-specific analysis
/role security
cat app.js
"Analyze potential security risks in this code in detail"
# Architecture evaluation
/role architect
ls -la src/
"Present problems and improvements for the current structure"
# Test strategy planning
/role qa
"Propose the optimal test strategy for this project"
# Analysis with multiple roles
/role security
"First check from a security perspective"
git diff HEAD~1
/role reviewer
"Next review general code quality"
/role architect
"Finally evaluate from an architectural perspective"
# Role-specific output format
/role security
Security Analysis Results
━━━━━━━━━━━━━━━━━━━━━
Vulnerability: SQL Injection
Severity: High
Location: db.js:42
Fix: Use parameterized queries
Each role adopts an Evidence-First approach, conducting analysis and making proposals based not on speculation but on proven methods, official guidelines, and objective data.
Evidence-Based Security Audit
Professional Report Format
Evidence-Based Security Audit Results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OWASP Top 10 Compliance: XX% / CVE Matching: Completed
Threat Modeling: STRIDE Analysis Completed
Evidence-First Performance Optimization
Professional Report Format
Evidence-First Performance Analysis
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Core Web Vitals: LCP[XXXms] INP[XXXms] CLS[X.XX]
Performance Budget: XX% / ROI Analysis: XX% Improvement Prediction
Evidence-First Root Cause Analysis
Professional Report Format
Evidence-First Root Cause Analysis
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Analysis Confidence: High / Bias Countermeasures: Implemented
Hypothesis Verification Matrix: XX% Confidence
Evidence-First Frontend Development
Each role has unique discussion stances, evidence sources, and strengths according to their specialized field.
Combining roles with different discussion characteristics enables balanced analysis:
/smart-review: Automatic role proposal through project analysis/role-help: Optimal role selection guide according to the situation/multi-role <Role 1>,<Role 2>: Simultaneous analysis by multiple roles/role-debate <Role 1>,<Role 2>: Discussion between roles/smart-review
→ Analyze current situation and propose optimal role
/smart-review src/auth/
→ Recommend security role based on authentication-related files
/multi-role security,performance
"Evaluate this API from multiple perspectives"
→ Integrated analysis from both security and performance perspectives
/role-debate frontend,security
"Discuss the UX of 2-factor authentication"
→ Discussion from usability and security perspectives
/role-help "API is slow and security is also a concern"
→ Propose appropriate approach (multi-role or debate)
/role-help compare frontend,mobile
→ Differences and appropriate usage between frontend and mobile roles
default (role specialization is removed)For large-scale analysis or independent specialized processing, you can run a role as a sub-agent using the --agent option.
# Security: OWASP full-item check, CVE matching
/role security --agent
"Security audit of entire codebase"
# Analyst: Root cause analysis of large logs
/role analyzer --agent
"Analyze error logs from the past week"
# Reviewer: Detailed review of large PR
/role reviewer --agent
"Review 1000-line changes in PR #500"
| Situation | Recommendation | Command |
|---|---|---|
| Simple confirmation | Normal role | /role security |
| Large-scale analysis | Sub-agent | /role security --agent |
| Interactive work | Normal role | /role frontend |
| Independent audit | Sub-agent | /role qa --agent |
.claude/agents/roles/ directoryWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
role-switching, expert-analysis, security-audit, code-review
39 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"./check-factVerify information accuracy against codebase and docsVerify information accuracy against codebase and documentation. Trigger with "is this correct?", "fact check", "verify this", "is this accurate?"./check-promptEvaluate and improve AI prompt qualityEvaluate and improve AI prompt quality. Trigger with "check this prompt", "evaluate prompt quality", "improve this prompt"./commit-messageGenerate commit messages from staged changesGenerate commit messages from staged changes. Trigger with "suggest commit message", "generate commit message", "what should the commit say?", "write commit message"./context7Search technical documentation via Context7 MCPSearch technical documentation via Context7 MCP. Trigger with "check the docs", "look up documentation", "how to use this library?", "API reference".2 plugins ship this exact skill · first indexed Jul 16, 2026
npx claudepluginhub wasabeef/claude-code-cookbook --plugin cook-enOther plugins' skills for the same job