Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Switch to expert role for specialized analysis. Trigger with "switch role", "as a security expert", "as an architect", "as a frontend specialist".
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 86% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 1341% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 135% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 137% | 0% |
Switch to a specific role to perform specialized analysis or work.
bash/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)bash# 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"
bash# 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"
bash# 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
textEvidence-Based Security Audit Results ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ OWASP Top 10 Compliance: XX% / CVE Matching: Completed Threat Modeling: STRIDE Analysis Completed
Evidence-First Performance Optimization
Professional Report Format
textEvidence-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
textEvidence-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 rolesbash/smart-review → Analyze current situation and propose optimal role /smart-review src/auth/ → Recommend security role based on authentication-related files
bash/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
bash/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.
bash# 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/ directoryOther measured skills in the registry, with their headline benchmark lift.