|
|
|
@@ -1,6 +1,6 @@
|
|
|
|
|
# Commands Best Practice
|
|
|
|
|
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
[](../implementation/claude-commands-implementation.md)
|
|
|
|
|
|
|
|
|
|
Claude Code commands — frontmatter fields and official built-in slash commands.
|
|
|
|
@@ -61,7 +61,7 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
|
|
|
|
| 21 | `/status` |  | Open the Settings interface (Status tab) showing version, model, account, and connectivity |
|
|
|
|
|
| 22 | `/usage` |  | Show plan usage limits and rate limit status (subscription plans only) |
|
|
|
|
|
| 23 | `/doctor` |  | Check the health of your Claude Code installation |
|
|
|
|
|
| 24 | `/feedback [description]` |  | Generate a GitHub issue URL for reporting bugs or feedback. Alias: `/bug` |
|
|
|
|
|
| 24 | `/feedback [report]` |  | Submit feedback about Claude Code. Alias: `/bug` |
|
|
|
|
|
| 25 | `/help` |  | Show slash-command help |
|
|
|
|
|
| 26 | `/release-notes` |  | Show recent Claude Code release notes |
|
|
|
|
|
| 27 | `/tasks` |  | List and manage background tasks |
|
|
|
|
@@ -78,13 +78,13 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
|
|
|
|
| 38 | `/memory` |  | Edit CLAUDE.md memory files, enable or disable auto-memory, and view auto-memory entries |
|
|
|
|
|
| 39 | `/effort [low\|medium\|high\|max\|auto]` |  | Set the model effort level |
|
|
|
|
|
| 40 | `/fast [on\|off]` |  | Toggle fast mode — same Opus 4.6 model with faster output |
|
|
|
|
|
| 41 | `/model` |  | Switch models (haiku, sonnet, opus) and adjust effort level |
|
|
|
|
|
| 42 | `/passes [number]` |  | Share a free week of Claude Code with friends. Only visible if your account is eligible |
|
|
|
|
|
| 43 | `/plan` |  | Enter read-only planning mode — suggests approaches without making changes |
|
|
|
|
|
| 44 | `/add-dir` |  | Add additional working directories to the current session |
|
|
|
|
|
| 41 | `/model [model]` |  | Select or change the AI model |
|
|
|
|
|
| 42 | `/passes` |  | Share a free week of Claude Code with friends. Only visible if your account is eligible |
|
|
|
|
|
| 43 | `/plan [description]` |  | Enter plan mode directly from the prompt. Pass an optional description to start immediately with that task |
|
|
|
|
|
| 44 | `/add-dir <path>` |  | Add a new working directory to the current session |
|
|
|
|
|
| 45 | `/diff` |  | Open an interactive diff viewer showing uncommitted changes and per-turn diffs |
|
|
|
|
|
| 46 | `/init` |  | Initialize a new project with a CLAUDE.md guide |
|
|
|
|
|
| 47 | `/pr-comments` |  | Review or reply to pull-request comments |
|
|
|
|
|
| 47 | `/pr-comments [PR]` |  | Fetch and display comments from a GitHub pull request. Auto-detects PR for current branch, or pass a PR URL or number |
|
|
|
|
|
| 48 | `/review` |  | Deprecated — install the `code-review` plugin instead |
|
|
|
|
|
| 49 | `/security-review` |  | Run a focused security review on current changes |
|
|
|
|
|
| 50 | `/desktop` |  | Continue the current session in the Claude Code Desktop app. macOS and Windows only. Alias: `/app` |
|
|
|
|
@@ -94,12 +94,12 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
|
|
|
|
| 54 | `/remote-control` |  | Make this session available for remote control from claude.ai. Alias: `/rc` |
|
|
|
|
|
| 55 | `/remote-env` |  | Inspect or copy the remote-control environment setup |
|
|
|
|
|
| 56 | `/schedule [description]` |  | Create, update, list, or run Cloud scheduled tasks. Claude walks you through the setup conversationally |
|
|
|
|
|
| 57 | `/branch` |  | Fork the current conversation into a new session. Alias: `/fork` |
|
|
|
|
|
| 57 | `/branch [name]` |  | Create a branch of the current conversation at this point. Alias: `/fork` |
|
|
|
|
|
| 58 | `/btw <question>` |  | Ask a quick side question without adding to the conversation |
|
|
|
|
|
| 59 | `/clear` |  | Clear conversation history and free up context. Aliases: `/reset`, `/new` |
|
|
|
|
|
| 60 | `/compact [prompt]` |  | Compress conversation to free context window. Optional prompt focuses the compaction |
|
|
|
|
|
| 60 | `/compact [instructions]` |  | Compact conversation with optional focus instructions |
|
|
|
|
|
| 61 | `/exit` |  | Exit the CLI. Alias: `/quit` |
|
|
|
|
|
| 62 | `/rename <name>` |  | Rename the current session for easier identification |
|
|
|
|
|
| 62 | `/rename [name]` |  | Rename the current session. Without a name, auto-generates one from conversation history |
|
|
|
|
|
| 63 | `/resume [session]` |  | Resume a previous conversation by ID or name, or open the session picker. Alias: `/continue` |
|
|
|
|
|
| 64 | `/rewind` |  | Rewind the conversation and/or code to a previous point, or summarize from a selected message. Alias: `/checkpoint` |
|
|
|
|
|
|
|
|
|
|