/cook-zh-tw:role runs instead · from cook-zh-tw
Switches Claude to specialized professional roles (security, performance, frontend, backend, architect, reviewer, QA, analyzer) for evidence-based analysis and work. Supports sub-agent execution for large-scale tasks.
This skill never runs in Claude Code
It ships in cook-zh-tw at skills/, but /cook-zh-tw:role (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
切換到特定角色 (role),執行專業分析或工作。
/role <角色名> [--agent|-a]
--agent 或 -a : 作為子代理独立執行 (推薦用于大規模分析)
security : 安全審計專家 (OWASP Top 10·威脅建模·Zero Trust 原則·CVE 對照)performance : 性能優化專家 (Core Web Vitals·RAIL 模型·漸進式優化·ROI 分析)analyzer : 根本原因分析專家 (5 Whys·系統思維·假設驅動·認知偏差對策)frontend : 前端·UI/UX 專家 (WCAG 2.1·設計系統·使用者中心設計)mobile : 移動開發專家 (iOS HIG·Android Material Design·跨平台策略)backend : 後端與伺服器端專家 (RESTful 設計·可擴展性·資料庫最佳化)reviewer : 程式碼審查專家 (可讀性·可維護性·性能·重構建議)architect : 系統架構師 (Evidence-First 設計·MECE 分析·演進式架構)qa : 測試工程師 (測試覆蓋率·E2E/整合/單元策略·自動化建議)# 切換到安全審計模式 (常規)
/role security
"檢查這個項目的安全漏洞"
# 使用子代理執行安全審計 (大規模分析)
/role security --agent
"執行整個項目的安全審計"
# 切換到代碼審查模式
/role reviewer
"審查最近的變更並指出改進點"
# 切換到性能優化模式
/role performance
"分析應用程序的瓶頸"
# 切換到根本原因分析模式
/role analyzer
"調查這個故障的根本原因"
# 切換到前端專業模式
/role frontend
"評估 UI/UX 的改進點"
# 切換到移動開發專業模式
/role mobile
"評估這個應用的移動優化"
# 返回常規模式
/role default
"返回常規 Claude"
# 安全專注分析
/role security
cat app.js
"詳细分析這段代碼的潜在安全風險"
# 架構視角評估
/role architect
ls -la src/
"提出當前結構的問題和改進方案"
# 測試策略制定
/role qa
"為這個項目提出最佳測試策略"
# 多角色分析
/role security
"首先從安全角度檢查"
git diff HEAD~1
/role reviewer
"接下來審查一般代碼質量"
/role architect
"最後從架構角度評估"
# 角色特定的輸出格式
/role security
安全分析結果
━━━━━━━━━━━━━━━━━━━━━
漏洞: SQL 注入
严重度: High
位置: db.js:42
修復建議: 使用參數化查询
各角色採用 Evidence-First(基于證據) 方法,基于 經過驗證的方法·官方指南·客觀數據 而非推測進行分析·建議。
Evidence-Based 安全審計
專業報告格式
Evidence-Based 安全審計結果
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
OWASP Top 10 合規度: XX% / CVE 對照: 完成
威胁建模: STRIDE 分析完成
Evidence-First 性能優化
專業報告格式
Evidence-First 性能分析
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Core Web Vitals: LCP[XXXms] INP[XXXms] CLS[X.XX]
Performance Budget: XX% / ROI 分析: XX% 改進預測
Evidence-First 根本原因分析
專業報告格式
Evidence-First 根本原因分析
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
分析可信度: 高 / 偏差對策: 已實施
假設驗證矩阵: XX% 確信度
Evidence-First 前端開發
各角色根據專業領域具有独特的辩論立場·論據來源·優勢。
通過組合具有不同辩論特性的角色,可以實現平衡的分析:
/smart-review : 通過項目分析自動建議角色/role-help : 根據情况的最佳角色選擇指南/multi-role <角色 1>,<角色 2> : 多角色同時分析/role-debate <角色 1>,<角色 2> : 角色間辩論/smart-review
→ 分析當前情况並建議最佳角色
/smart-review src/auth/
→ 從認證相關文件推薦 security 角色
/multi-role security,performance
"從多個視角評估這個 API"
→ 從安全和性能两方面進行综合分析
/role-debate frontend,security
"讨論雙因素認證的 UX"
→ 從可用性和安全性角度進行辩論
/role-help "API 慢且担心安全"
→ 建議適当的方法 (multi-role 或 debate)
/role-help compare frontend,mobile
→ 前端和移動角色的區別與使用分場
default 返回常規模式 (解除角色特化)需要大規模分析或独立專業處理時,可使用 --agent 選項將角色作為子代理執行。
# 安全: OWASP 全項目檢查、CVE 對照
/role security --agent
"全代碼庫的安全審計"
# 分析器: 大量日誌的根本原因分析
/role analyzer --agent
"分析過去一週的錯誤日誌"
# 審查员: 大規模 PR 的詳细審查
/role reviewer --agent
"審查 PR #500 的 1000 行變更"
| 場景 | 推薦 | 命令 |
|---|---|---|
| 簡單確認 | 常規角色 | /role security |
| 大規模分析 | 子代理 | /role security --agent |
| 交互式工作 | 常規角色 | /role frontend |
| 独立審計 | 子代理 | /role qa --agent |
.claude/agents/roles/ 目錄內定義What SKILL.md sets; muted values are Claude Code's defaults
39 skills in this plugin
npx claudepluginhub wasabeef/claude-code-cookbook --plugin cook-zh-tw2 plugins ship this exact skill · first indexed Jul 16, 2026
Other plugins' skills for the same job