Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →分析情况自动建议最优角色和方法。「审查一下」「代码质量检查」「最佳方法?」等触发。
.claude/skills/wasabeef-754470/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 51% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 14% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 10% | 0% |
分析当前情况,自动建议最佳角色和方法的命令。
bash/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 + analyzerbash$ /smart-review src/auth/login.js → 「检测到认证文件」 → 「推荐使用 security 角色分析」 → 「是否执行? [y]es / [n]o / [m]ore options」
bash$ /smart-review src/mobile/components/ → 「📱🎨 检测到移动端 + 前端元素」 → 「推荐方法:」 → 「[1] mobile 角色单独」 → 「[2] frontend 角色单独」 → 「[3] multi-role mobile,frontend」 → 「[4] role-debate mobile,frontend」
bash$ /smart-review error.log → 「⚠️ 检测到错误日志」 → 「使用 analyzer 角色开始根本原因分析」 → 「[自动执行] /role analyzer」 $ /smart-review slow-api.log → 「🐌 检测到性能问题」 → 「推荐:[1]/role performance [2]/role-debate performance,analyzer」
bash$ /smart-review architecture-design.md → 「🏗️🔒⚡ 检测到架构 + 安全 + 性能元素」 → 「由于设计决策复杂,推荐讨论形式」 → 「[推荐] /role-debate architect,security,performance」 → 「[替代] /multi-role architect,security,performance」
bash# 分析当前目录 /smart-review 「请建议最佳的角色和方法」 # 分析特定文件 /smart-review src/auth/login.js 「请建议此文件的最佳审查方法」 # 分析错误日志 /smart-review error.log 「请建议解决此错误的最佳方法」
bash$ /smart-review → 「📊 正在分析项目...」 → 「检测到 React + TypeScript 项目」 → 「确认包含认证功能 + API + 移动端支持」 → 「」 → 「💡 推荐工作流程:」 → 「1. security 检查认证系统」 → 「2. frontend 评估 UI/UX」 → 「3. mobile 确认移动端优化」 → 「4. architect 审查整体设计」 → 「」 → 「是否自动执行? [y]es / [s]elect role / [c]ustom」
bash$ /smart-review "JWT 有效期应该如何设置" → 「🤔 检测到技术设计决策」 → 「这是需要多个专业视角的问题」 → 「」 → 「推荐方法:」 → 「/role-debate security,performance,frontend」 → 「原因:需要平衡安全性、性能和用户体验」
bash# 结合文件内容分析 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」
Other measured skills in the registry, with their headline benchmark lift.