速查手册
高频命令、概念边界、决策树
snapshot 2026/4/1 · 70 条
数据来源:
/Users/star/Downloads/claude-code/src· 可运行 node scripts/extract-claude-code-commands.mjs 更新快照。| 命令 | 说明 | 分类 | 使用示例 | 来源 |
|---|---|---|---|---|
/add-dir | 添加新的工作目录 | Ch02 | /add-dir ../another-repo | local-jsx · commands/add-dir/index.ts |
/advisor | 配置顾问模型 | 源码快照 | /advisor | local · commands/advisor.ts |
/agents | 管理 Agent 配置 | Ch09 | /agents | local-jsx · commands/agents/index.ts |
/bridge-kick | 注入桥接故障状态(用于手动恢复测试) | 源码快照 | /bridge-kick | local · commands/bridge-kick.ts |
/btw | 快速提问而不打断主流对话 | Ch03 | /btw | local-jsx · commands/btw/index.ts |
/chrome | Claude in Chrome(Beta)设置 | 源码快照 | /chrome | local-jsx · commands/chrome/index.ts |
/clear别名:reset, new | 清空对话历史并释放上下文 | Ch10 | /clear | local · commands/clear/index.ts |
/color | 设置当前会话的提示栏颜色 | 源码快照 | /color | local-jsx · commands/color/index.ts |
/commit | 创建 Git 提交 | Ch03/Ch12 | /commit | prompt · commands/commit.ts |
/commit-push-pr | 提交、推送并开启 PR | Ch12 | /commit-push-pr | prompt · commands/commit-push-pr.ts |
/compact | 清空对话历史但在上下文中保留摘要(可选:附加摘要指令) | Ch10 | /compact 保留架构决策和未完成任务 | local · commands/compact/index.ts |
/config别名:settings | 打开配置面板 | 源码快照 | /config | local-jsx · commands/config/index.ts |
/context | 以彩色网格可视化当前上下文占用 | Ch10 | /context | local-jsx · commands/context/index.ts |
/copy | 复制 Claude | 源码快照 | /copy | local-jsx · commands/copy/index.ts |
/desktop别名:app | 在 Claude Desktop 中继续当前会话 | 源码快照 | /desktop | local-jsx · commands/desktop/index.ts |
/diff | 查看未提交的变更及逐轮差异 | Ch03 | /diff | local-jsx · commands/diff/index.ts |
/doctor | 诊断并验证 Claude Code 安装和配置 | 源码快照 | /doctor | local-jsx · commands/doctor/index.ts |
/effort | 设置模型推理的 effort 级别 | Ch03 | /effort | local-jsx · commands/effort/index.ts |
/exit别名:quit | 退出 REPL | 源码快照 | /exit | local-jsx · commands/exit/index.ts |
/export | 将当前对话导出到文件或剪贴板 | 源码快照 | /export | local-jsx · commands/export/index.ts |
/extra-usage | 配置额外用量以在达到限制后继续工作 | 源码快照 | /extra-usage | local-jsx · commands/extra-usage/index.ts |
/fast | 切换快速模式(Opus 4.7 加速输出) | 源码快照 | /fast | local-jsx · commands/fast/index.ts |
/feedback别名:bug | 提交关于 Claude Code 的反馈 | 源码快照 | /feedback | local-jsx · commands/feedback/index.ts |
/files | 列出当前上下文中的所有文件 | 源码快照 | /files | local · commands/files/index.ts |
/help | 显示帮助和可用命令 | 源码快照 | /help | local-jsx · commands/help/index.ts |
/hooks | 查看工具事件的 Hook 配置 | Ch06 | /hooks | local-jsx · commands/hooks/index.ts |
/ide | 管理 IDE 集成并查看状态 | 源码快照 | /ide | local-jsx · commands/ide/index.ts |
/init | 初始化项目(生成 CLAUDE.md 等) | Ch02 | /init | prompt · commands/init.ts |
/init-verifiers | 为代码变更自动验证创建 Verifier Skill | Ch12 | /init-verifiers | prompt · commands/init-verifiers.ts |
/install-github-app | 为仓库配置 Claude GitHub Actions | 源码快照 | /install-github-app | local-jsx · commands/install-github-app/index.ts |
/install-slack-app | 安装 Claude Slack 应用 | 源码快照 | /install-slack-app | local · commands/install-slack-app/index.ts |
/keybindings | 打开或创建快捷键配置文件 | 源码快照 | /keybindings | local · commands/keybindings/index.ts |
/logout | 退出 Anthropic 账号 | 源码快照 | /logout | local-jsx · commands/logout/index.ts |
/mcp | 管理 MCP 服务器 | Ch08 | /mcp | local-jsx · commands/mcp/index.ts |
/memory | 编辑 Claude 记忆文件 | Ch02 | /memory | local-jsx · commands/memory/index.ts |
/mobile别名:ios, android | 显示下载 Claude 移动端应用的二维码 | 源码快照 | /mobile | local-jsx · commands/mobile/index.ts |
/model | 切换当前会话使用的模型 | Ch07 | /model | local-jsx · commands/model/index.ts |
/passes | 管理 passes 配置 | 源码快照 | /passes | local-jsx · commands/passes/index.ts |
/permissions别名:allowed-tools | 管理工具的允许与拒绝权限规则 | Ch07 | /permissions | local-jsx · commands/permissions/index.ts |
/plan | 启用 Plan Mode 或查看当前会话计划 | Ch07 | /plan | local-jsx · commands/plan/index.ts |
/plugin别名:plugins, marketplace | 管理 Claude Code 插件 | Ch05 | /plugin list | local-jsx · commands/plugin/index.tsx |
/privacy-settings | 查看和更新隐私设置 | 源码快照 | /privacy-settings | local-jsx · commands/privacy-settings/index.ts |
/release-notes | 查看版本发布说明 | 源码快照 | /release-notes | local · commands/release-notes/index.ts |
/reload-plugins | 在当前会话激活待处理的插件变更 | Ch05 | /reload-plugins | local · commands/reload-plugins/index.ts |
/remote-control别名:rc | 连接终端进行远程控制会话 | 源码快照 | /remote-control | local-jsx · commands/bridge/index.ts |
/remote-env | 配置 Teleport 会话的默认远程环境 | 源码快照 | /remote-env | local-jsx · commands/remote-env/index.ts |
/rename | 重命名当前对话 | 源码快照 | /rename | local-jsx · commands/rename/index.ts |
/resume别名:continue | 恢复之前的对话 | 源码快照 | /resume | local-jsx · commands/resume/index.ts |
/review | 审查 Pull Request | Ch12 | /review | prompt · commands/review.ts |
/rewind别名:checkpoint | 将代码和/或对话恢复到之前的时间点 | Ch07 | /rewind | local · commands/rewind/index.ts |
/sandbox | 管理沙箱配置 | Ch07 | /sandbox | local-jsx · commands/sandbox-toggle/index.ts |
/session别名:remote | 显示远程会话 URL 和二维码 | 源码快照 | /session | local-jsx · commands/session/index.ts |
/skills | 列出可用的 Skills | Ch05 | /skills | local-jsx · commands/skills/index.ts |
/stats | 显示 Claude Code 使用统计和活动记录 | 源码快照 | /stats | local-jsx · commands/stats/index.ts |
/status | 显示 Claude Code 状态(版本、模型、账号、API 连通性、工具状态) | Ch01 | /status | local-jsx · commands/status/index.ts |
/statusline | 设置 Claude Code 状态栏 | 源码快照 | /statusline | prompt · commands/statusline.tsx |
/stickers | 订购 Claude Code 贴纸 | 源码快照 | /stickers | local · commands/stickers/index.ts |
/tag | 为当前会话切换可搜索的标签 | 源码快照 | /tag | local-jsx · commands/tag/index.ts |
/tasks别名:bashes | 列出并管理后台任务 | Ch09/Ch12 | /tasks | local-jsx · commands/tasks/index.ts |
/terminal-setup | 配置终端环境 | 源码快照 | /terminal-setup | local-jsx · commands/terminalSetup/index.ts |
/theme | 切换界面主题 | 源码快照 | /theme | local-jsx · commands/theme/index.ts |
/think-back | 2025 年 Claude Code 年度回顾 | 源码快照 | /think-back | local-jsx · commands/thinkback/index.ts |
/ultraplan | 约 10–30 分钟 · Web 端起草高级计划供编辑和审批 | 源码快照 | /ultraplan | local-jsx · commands/ultraplan.tsx |
/ultrareview | 约 10–20 分钟 · 多智能体并行审查分支 Bug(v2.1.111+) | 源码快照 | /ultrareview | local-jsx · commands/review.ts |
/upgrade | 升级到 Max 以获得更高速率限制和更多 Opus 用量 | 源码快照 | /upgrade | local-jsx · commands/upgrade/index.ts |
/usage | 显示套餐用量限制(含 /cost 和 /stats,v2.1.118+) | Ch11 | /usage | local-jsx · commands/usage/index.ts |
/version | 打印当前会话运行的版本(非 autoupdate 已下载的版本) | 源码快照 | /version | local · commands/version.ts |
/vim | 在 Vim 和普通编辑模式之间切换 | Ch03 | /vim | local · commands/vim/index.ts |
/voice | 切换语音模式 | Ch03 | /voice | local · commands/voice/index.ts |
/web-setup | 在 Web 上设置 Claude Code(需要连接 GitHub 账号) | 源码快照 | /web-setup | local-jsx · commands/remote-setup/index.ts |
70 / 70 条命令