From cook-zh-tw
Analyzes current directory or specified file/path/logs, detects project type/security/performance issues, and suggests optimal review roles/methods like single-role, multi-role, or debate.
npx claudepluginhub wasabeef/claude-code-cookbook --plugin cook-zh-tw## 智能審查 分析當前情况,自動建議最佳角色和方法的命令。 ### 使用方法 ### 自動判定邏輯 ### 基于文件擴展名的判定 - `package.json`, `*.tsx`, `*.jsx`, `*.css`, `*.scss` → **frontend** - `Dockerfile`, `docker-compose.yml`, `*.yaml` → **architect** - `*.test.js`, `*.spec.ts`, `test/`, `__tests__/` → **qa** - `*.rs`, `Cargo.toml`, `performance/` → **performance** ### 安全相關文件檢測 - `auth.js`, `security.yml`, `.env`, `config/auth/` → **security** - `login.tsx`, `signup.js`, `jwt.js` → **security + frontend** - `api/auth/`, `middleware/auth/` → **security + architect** ### 復合判定模式 - `mobile/` + `*.swift`, `*.kt`, `react-native/` → **mobi...
/smart-reviewAnalyzes files, directories, logs, or text to detect context like security risks or performance issues, then suggests optimal Claude roles/methods (e.g., security, role-debate) with execution prompts.
/smart-reviewAnalyzes directory or file/path for patterns (frontend, security, performance, architecture, errors) and suggests optimal Claude roles/approaches like single-role, multi-role, or debate.
/smart-reviewAnalyzes directory or file path for tech patterns, security risks, errors, and performance issues; suggests optimal role(s) like frontend/security/performance and execution approach (single/multi/debate).
/smart-reviewAnalyzes current directory or specified file/dir to detect context (frontend, security, performance, etc.) and suggests optimal role(s) and analysis approach with execution options.
/smart-reviewAnalyzes files, directories, logs, or queries to detect patterns and suggest optimal review roles (security, frontend, architect, performance) with execution options.
/smart-reviewAnalyzes directory, file, or log for project type, security risks, errors, performance issues; proposes optimal single/multi/debate roles with execution options.
Share bugs, ideas, or general feedback.
分析當前情况,自動建議最佳角色和方法的命令。
/smart-review # 分析當前目錄
/smart-review <文件/目錄> # 分析特定對象
package.json, *.tsx, *.jsx, *.css, *.scss → frontendDockerfile, docker-compose.yml, *.yaml → architect*.test.js, *.spec.ts, test/, __tests__/ → qa*.rs, Cargo.toml, performance/ → performanceauth.js, security.yml, .env, config/auth/ → securitylogin.tsx, signup.js, jwt.js → security + frontendapi/auth/, middleware/auth/ → security + architectmobile/ + *.swift, *.kt, react-native/ → mobilewebpack.config.js, vite.config.js, large-dataset/ → performancecomponents/ + responsive.css → frontend + mobileapi/ + auth/ → security + architecterror.log, crash.log → analyzermemory leak, high CPU, slow query → performance + analyzerSQL injection, XSS, CSRF → security + analyzer$ /smart-review src/auth/login.js
→ 「檢測到認證文件」
→ 「推薦使用 security 角色分析」
→ 「是否執行? [y]es / [n]o / [m]ore options」
$ /smart-review src/mobile/components/
→ 「📱🎨 檢測到移動端 + 前端元素」
→ 「推薦方法:」
→ 「[1] mobile 角色單独」
→ 「[2] frontend 角色單独」
→ 「[3] multi-role mobile,frontend」
→ 「[4] role-debate mobile,frontend」
$ /smart-review error.log
→ 「⚠️ 檢測到錯誤日誌」
→ 「使用 analyzer 角色開始根本原因分析」
→ 「[自動執行] /role analyzer」
$ /smart-review slow-api.log
→ 「🐌 檢測到性能問題」
→ 「推薦:[1]/role performance [2]/role-debate performance,analyzer」
$ /smart-review architecture-design.md
→ 「🏗️🔒⚡ 檢測到架構 + 安全 + 性能元素」
→ 「由于設計決策復杂,推薦讨論形式」
→ 「[推薦] /role-debate architect,security,performance」
→ 「[替代] /multi-role architect,security,performance」
# 分析當前目錄
/smart-review
「請建議最佳的角色和方法」
# 分析特定文件
/smart-review src/auth/login.js
「請建議此文件的最佳審查方法」
# 分析錯誤日誌
/smart-review error.log
「請建議解決此錯誤的最佳方法」
$ /smart-review
→ 「📊 正在分析項目...」
→ 「檢測到 React + TypeScript 項目」
→ 「確認包含認證功能 + API + 移動端支持」
→ 「」
→ 「💡 推薦工作流程:」
→ 「1. security 檢查認證系統」
→ 「2. frontend 評估 UI/UX」
→ 「3. mobile 確認移動端優化」
→ 「4. architect 審查整體設計」
→ 「」
→ 「是否自動執行? [y]es / [s]elect role / [c]ustom」
$ /smart-review "JWT 有效期應该如何設置"
→ 「🤔 檢測到技術設計決策」
→ 「這是需要多個專業視角的問題」
→ 「」
→ 「推薦方法:」
→ 「/role-debate security,performance,frontend」
→ 「原因:需要平衡安全性、性能和用戶體驗」
# 結合文件內容分析
cat src/auth/middleware.js
/smart-review
「請結合此文件內容從安全角度分析」
# 結合錯誤分析
npm run build 2>&1 | tee build-error.log
/smart-review build-error.log
「請建議構建錯誤的解決方法」
# 設計咨询
/smart-review
「請讨論應该選擇 React Native 還是 Progressive Web App」