速查手册

高频命令、概念边界、决策树

snapshot 2026/4/1 · 70 条
数据来源:/Users/star/Downloads/claude-code/src· 可运行 node scripts/extract-claude-code-commands.mjs 更新快照。
命令说明分类使用示例来源
/add-dir
添加新的工作目录Ch02/add-dir ../another-repolocal-jsx · commands/add-dir/index.ts
/advisor
配置顾问模型源码快照/advisorlocal · commands/advisor.ts
/agents
管理 Agent 配置Ch09/agentslocal-jsx · commands/agents/index.ts
/bridge-kick
注入桥接故障状态(用于手动恢复测试)源码快照/bridge-kicklocal · commands/bridge-kick.ts
/btw
快速提问而不打断主流对话Ch03/btwlocal-jsx · commands/btw/index.ts
/chrome
Claude in Chrome(Beta)设置源码快照/chromelocal-jsx · commands/chrome/index.ts
/clear

别名:reset, new

清空对话历史并释放上下文Ch10/clearlocal · commands/clear/index.ts
/color
设置当前会话的提示栏颜色源码快照/colorlocal-jsx · commands/color/index.ts
/commit
创建 Git 提交Ch03/Ch12/commitprompt · commands/commit.ts
/commit-push-pr
提交、推送并开启 PRCh12/commit-push-prprompt · commands/commit-push-pr.ts
/compact
清空对话历史但在上下文中保留摘要(可选:附加摘要指令)Ch10/compact 保留架构决策和未完成任务local · commands/compact/index.ts
/config

别名:settings

打开配置面板源码快照/configlocal-jsx · commands/config/index.ts
/context
以彩色网格可视化当前上下文占用Ch10/contextlocal-jsx · commands/context/index.ts
/copy
复制 Claude源码快照/copylocal-jsx · commands/copy/index.ts
/desktop

别名:app

在 Claude Desktop 中继续当前会话源码快照/desktoplocal-jsx · commands/desktop/index.ts
/diff
查看未提交的变更及逐轮差异Ch03/difflocal-jsx · commands/diff/index.ts
/doctor
诊断并验证 Claude Code 安装和配置源码快照/doctorlocal-jsx · commands/doctor/index.ts
/effort
设置模型推理的 effort 级别Ch03/effortlocal-jsx · commands/effort/index.ts
/exit

别名:quit

退出 REPL源码快照/exitlocal-jsx · commands/exit/index.ts
/export
将当前对话导出到文件或剪贴板源码快照/exportlocal-jsx · commands/export/index.ts
/extra-usage
配置额外用量以在达到限制后继续工作源码快照/extra-usagelocal-jsx · commands/extra-usage/index.ts
/fast
切换快速模式(Opus 4.7 加速输出)源码快照/fastlocal-jsx · commands/fast/index.ts
/feedback

别名:bug

提交关于 Claude Code 的反馈源码快照/feedbacklocal-jsx · commands/feedback/index.ts
/files
列出当前上下文中的所有文件源码快照/fileslocal · commands/files/index.ts
/help
显示帮助和可用命令源码快照/helplocal-jsx · commands/help/index.ts
/hooks
查看工具事件的 Hook 配置Ch06/hookslocal-jsx · commands/hooks/index.ts
/ide
管理 IDE 集成并查看状态源码快照/idelocal-jsx · commands/ide/index.ts
/init
初始化项目(生成 CLAUDE.md 等)Ch02/initprompt · commands/init.ts
/init-verifiers
为代码变更自动验证创建 Verifier SkillCh12/init-verifiersprompt · commands/init-verifiers.ts
/install-github-app
为仓库配置 Claude GitHub Actions源码快照/install-github-applocal-jsx · commands/install-github-app/index.ts
/install-slack-app
安装 Claude Slack 应用源码快照/install-slack-applocal · commands/install-slack-app/index.ts
/keybindings
打开或创建快捷键配置文件源码快照/keybindingslocal · commands/keybindings/index.ts
/logout
退出 Anthropic 账号源码快照/logoutlocal-jsx · commands/logout/index.ts
/mcp
管理 MCP 服务器Ch08/mcplocal-jsx · commands/mcp/index.ts
/memory
编辑 Claude 记忆文件Ch02/memorylocal-jsx · commands/memory/index.ts
/mobile

别名:ios, android

显示下载 Claude 移动端应用的二维码源码快照/mobilelocal-jsx · commands/mobile/index.ts
/model
切换当前会话使用的模型Ch07/modellocal-jsx · commands/model/index.ts
/passes
管理 passes 配置源码快照/passeslocal-jsx · commands/passes/index.ts
/permissions

别名:allowed-tools

管理工具的允许与拒绝权限规则Ch07/permissionslocal-jsx · commands/permissions/index.ts
/plan
启用 Plan Mode 或查看当前会话计划Ch07/planlocal-jsx · commands/plan/index.ts
/plugin

别名:plugins, marketplace

管理 Claude Code 插件Ch05/plugin listlocal-jsx · commands/plugin/index.tsx
/privacy-settings
查看和更新隐私设置源码快照/privacy-settingslocal-jsx · commands/privacy-settings/index.ts
/release-notes
查看版本发布说明源码快照/release-noteslocal · commands/release-notes/index.ts
/reload-plugins
在当前会话激活待处理的插件变更Ch05/reload-pluginslocal · commands/reload-plugins/index.ts
/remote-control

别名:rc

连接终端进行远程控制会话源码快照/remote-controllocal-jsx · commands/bridge/index.ts
/remote-env
配置 Teleport 会话的默认远程环境源码快照/remote-envlocal-jsx · commands/remote-env/index.ts
/rename
重命名当前对话源码快照/renamelocal-jsx · commands/rename/index.ts
/resume

别名:continue

恢复之前的对话源码快照/resumelocal-jsx · commands/resume/index.ts
/review
审查 Pull RequestCh12/reviewprompt · commands/review.ts
/rewind

别名:checkpoint

将代码和/或对话恢复到之前的时间点Ch07/rewindlocal · commands/rewind/index.ts
/sandbox
管理沙箱配置Ch07/sandboxlocal-jsx · commands/sandbox-toggle/index.ts
/session

别名:remote

显示远程会话 URL 和二维码源码快照/sessionlocal-jsx · commands/session/index.ts
/skills
列出可用的 SkillsCh05/skillslocal-jsx · commands/skills/index.ts
/stats
显示 Claude Code 使用统计和活动记录源码快照/statslocal-jsx · commands/stats/index.ts
/status
显示 Claude Code 状态(版本、模型、账号、API 连通性、工具状态)Ch01/statuslocal-jsx · commands/status/index.ts
/statusline
设置 Claude Code 状态栏源码快照/statuslineprompt · commands/statusline.tsx
/stickers
订购 Claude Code 贴纸源码快照/stickerslocal · commands/stickers/index.ts
/tag
为当前会话切换可搜索的标签源码快照/taglocal-jsx · commands/tag/index.ts
/tasks

别名:bashes

列出并管理后台任务Ch09/Ch12/taskslocal-jsx · commands/tasks/index.ts
/terminal-setup
配置终端环境源码快照/terminal-setuplocal-jsx · commands/terminalSetup/index.ts
/theme
切换界面主题源码快照/themelocal-jsx · commands/theme/index.ts
/think-back
2025 年 Claude Code 年度回顾源码快照/think-backlocal-jsx · commands/thinkback/index.ts
/ultraplan
约 10–30 分钟 · Web 端起草高级计划供编辑和审批源码快照/ultraplanlocal-jsx · commands/ultraplan.tsx
/ultrareview
约 10–20 分钟 · 多智能体并行审查分支 Bug(v2.1.111+)源码快照/ultrareviewlocal-jsx · commands/review.ts
/upgrade
升级到 Max 以获得更高速率限制和更多 Opus 用量源码快照/upgradelocal-jsx · commands/upgrade/index.ts
/usage
显示套餐用量限制(含 /cost 和 /stats,v2.1.118+)Ch11/usagelocal-jsx · commands/usage/index.ts
/version
打印当前会话运行的版本(非 autoupdate 已下载的版本)源码快照/versionlocal · commands/version.ts
/vim
在 Vim 和普通编辑模式之间切换Ch03/vimlocal · commands/vim/index.ts
/voice
切换语音模式Ch03/voicelocal · commands/voice/index.ts
/web-setup
在 Web 上设置 Claude Code(需要连接 GitHub 账号)源码快照/web-setuplocal-jsx · commands/remote-setup/index.ts

70 / 70 条命令