This content originally appeared on DEV Community and was authored by drake
🚀 核心命令快捷键
开发类命令
-
/sc:build
- 智能项目构建,自动检测框架并优化构建过程 -
/sc:implement
- 特性实现,根据需求自动选择适合的专家角色 -
/sc:design
- 系统和组件设计,创建架构图和设计规范
分析类命令
-
/sc:analyze
- 全面代码分析,自动检测安全性、性能和代码质量问题 -
/sc:troubleshoot
- 系统化问题排查,为错误提供逐步解决方案 -
/sc:explain
- 教学式解释,帮助理解复杂代码或概念
质量类命令
-
/sc:improve
- 代码优化,自动应用最佳实践 -
/sc:cleanup
- 技术债务减少,清理冗余代码 -
/sc:test
- 测试执行和质量保障
✨ 快捷键的妙用
1. 自动激活专家角色
无需手动指定专家,SuperClaude会根据上下文自动选择合适的专家:
/sc:analyze auth.js # 自动激活安全专家
/sc:analyze component.jsx # 自动激活前端专家
/sc:analyze api.js --focus security # 强制激活安全专家视角
2. 思考深度梯度
使用不同思考深度标志处理不同复杂度的问题:
/sc:analyze file.js # 基础分析
/sc:analyze file.js --think # 多文件分析(~4K tokens)
/sc:analyze file.js --think-hard # 深度架构分析(~10K tokens)
/sc:analyze file.js --ultrathink # 最大深度分析(~32K tokens)
3. MCP服务器智能集成
根据任务自动连接外部服务:
/sc:build react-app/ # 自动使用Context7获取React最佳实践
/sc:troubleshoot "登录失败" # 自动使用Sequential进行系统分析
/sc:build dashboard # 自动使用Magic生成UI组件
/sc:test e2e # 自动使用Playwright进行测试
4. 高效工作流组合
新项目入门
/sc:load --deep --summary # 加载项目上下文
/sc:analyze --focus architecture # 架构分析
/sc:analyze --focus quality # 代码质量评估
调试工作流
/sc:troubleshoot "错误消息" --logs
/sc:analyze --focus debugging
/sc:test --type unit affected-component
5. 大型项目处理策略
高效分析大型代码库
/sc:analyze monorepo/ --delegate auto --uc
波模式系统改进
/sc:improve legacy-system/ --wave-mode auto --safe-mode
分布式质量审查
/sc:analyze enterprise-app/ --delegate folders --focus quality
💡 实用建议
命令使用习惯
1. 从简单开始,按需添加复杂度
/sc:analyze code.js # 基础分析
/sc:analyze code.js --think # 添加思考深度
/sc:analyze code.js --think --c7 # 添加文档参考
2. 安全优先使用标志
/sc:improve production-auth/ --safe-mode --validate --preview
3. 使用适当的作用域
/sc:analyze single-component.js # 文件级别分析
/sc:analyze user-auth/ # 模块级别分析
/sc:analyze --scope project # 项目级别分析
4. 组合补充角色获取多维视角
/sc:analyze api-design/ --persona-architect # 架构视角
/sc:analyze api-design/ --persona-security # 安全视角
/sc:analyze api-design/ --persona-performance # 性能视角
效率最大化技巧
1. 让自动激活先工作
- 先使用基本命令,观察SuperClaude如何自动选择工具和专家
- 只有需要特定视角时才手动覆盖
2. 使用预览和安全模式
/sc:improve code.js --preview # 先查看会发生什么
/sc:improve code.js --safe-mode # 应用安全更改
3. 大型操作的令牌管理
/sc:analyze huge-codebase/ --uc --delegate auto # 压缩输出并并行处理
4. 使用指导角色学习
/sc:explain GraphQL --persona-mentor --verbose # 学习新概念
🎯 适合不同场景的组合
安全优先开发
/sc:analyze --persona-security --focus security
/sc:build --validate --safe-mode
/sc:test --type security
性能优化工作流
/sc:analyze --focus performance --persona-performance
/sc:improve --type performance --benchmark
/sc:test --focus performance --play
团队协作工作流
/sc:analyze team-code/ --persona-qa --focus quality
/sc:document features/ --persona-scribe --type guide
/sc:git --smart-commit --branch-strategy
遗留系统现代化
/sc:analyze legacy/ --persona-architect --ultrathink # 深度架构分析
/sc:design modernization-strategy --type architecture # 全面现代化计划
/sc:improve legacy/ --wave-mode systematic --safe-mode --loop # 迭代安全改进
This content originally appeared on DEV Community and was authored by drake
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.

APA
MLA
drake | Sciencx (2025-08-09T03:04:41+00:00) SuperClaude 核心命令快捷键指南. Retrieved from https://www.scien.cx/2025/08/09/superclaude-%e6%a0%b8%e5%bf%83%e5%91%bd%e4%bb%a4%e5%bf%ab%e6%8d%b7%e9%94%ae%e6%8c%87%e5%8d%97/
" » SuperClaude 核心命令快捷键指南." drake | Sciencx - Saturday August 9, 2025, https://www.scien.cx/2025/08/09/superclaude-%e6%a0%b8%e5%bf%83%e5%91%bd%e4%bb%a4%e5%bf%ab%e6%8d%b7%e9%94%ae%e6%8c%87%e5%8d%97/
HARVARDdrake | Sciencx Saturday August 9, 2025 » SuperClaude 核心命令快捷键指南., viewed ,<https://www.scien.cx/2025/08/09/superclaude-%e6%a0%b8%e5%bf%83%e5%91%bd%e4%bb%a4%e5%bf%ab%e6%8d%b7%e9%94%ae%e6%8c%87%e5%8d%97/>
VANCOUVERdrake | Sciencx - » SuperClaude 核心命令快捷键指南. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/08/09/superclaude-%e6%a0%b8%e5%bf%83%e5%91%bd%e4%bb%a4%e5%bf%ab%e6%8d%b7%e9%94%ae%e6%8c%87%e5%8d%97/
CHICAGO" » SuperClaude 核心命令快捷键指南." drake | Sciencx - Accessed . https://www.scien.cx/2025/08/09/superclaude-%e6%a0%b8%e5%bf%83%e5%91%bd%e4%bb%a4%e5%bf%ab%e6%8d%b7%e9%94%ae%e6%8c%87%e5%8d%97/
IEEE" » SuperClaude 核心命令快捷键指南." drake | Sciencx [Online]. Available: https://www.scien.cx/2025/08/09/superclaude-%e6%a0%b8%e5%bf%83%e5%91%bd%e4%bb%a4%e5%bf%ab%e6%8d%b7%e9%94%ae%e6%8c%87%e5%8d%97/. [Accessed: ]
rf:citation » SuperClaude 核心命令快捷键指南 | drake | Sciencx | https://www.scien.cx/2025/08/09/superclaude-%e6%a0%b8%e5%bf%83%e5%91%bd%e4%bb%a4%e5%bf%ab%e6%8d%b7%e9%94%ae%e6%8c%87%e5%8d%97/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.