d913b37cca
Settings report: add editorMode to ~/.claude.json table, move showClearContextOnPlanAccept to settings.json (confirmed on official page), fix terminalProgressBarEnabled terminals, add Config tool to availableModels. README: add /schedule cloud-based scheduled tasks alongside /loop, update development workflow stars (Superpowers 107k, ECC 101k, gstack 41k, GSD 40k), update counts for ECC, gstack, GSD, OpenSpec. All other reports (commands, skills, subagents, concepts) synced with no drift. Co-Authored-By: Claude <noreply@anthropic.com>
112 lines
12 KiB
Markdown
112 lines
12 KiB
Markdown
# Commands Best Practice
|
|
|
|
<br>
|
|
[](../implementation/claude-commands-implementation.md)
|
|
|
|
Claude Code commands — frontmatter fields and official built-in slash commands.
|
|
|
|
<table width="100%">
|
|
<tr>
|
|
<td><a href="../">← Back to Claude Code Best Practice</a></td>
|
|
<td align="right"><img src="../!/claude-jumping.svg" alt="Claude" width="60" /></td>
|
|
</tr>
|
|
</table>
|
|
|
|
---
|
|
|
|
## Frontmatter Fields (11)
|
|
|
|
| Field | Type | Required | Description |
|
|
|-------|------|----------|-------------|
|
|
| `name` | string | No | Display name and `/slash-command` identifier. Defaults to the directory name if omitted |
|
|
| `description` | string | Recommended | What the command does. Shown in autocomplete and used by Claude for auto-discovery |
|
|
| `argument-hint` | string | No | Hint shown during autocomplete (e.g., `[issue-number]`, `[filename]`) |
|
|
| `disable-model-invocation` | boolean | No | Set `true` to prevent Claude from automatically invoking this command |
|
|
| `user-invocable` | boolean | No | Set `false` to hide from the `/` menu — command becomes background knowledge only |
|
|
| `allowed-tools` | string | No | Tools allowed without permission prompts when this command is active |
|
|
| `model` | string | No | Model to use when this command runs (e.g., `haiku`, `sonnet`, `opus`) |
|
|
| `effort` | string | No | Override the model effort level when invoked (`low`, `medium`, `high`, `max`) |
|
|
| `context` | string | No | Set to `fork` to run the command in an isolated subagent context |
|
|
| `agent` | string | No | Subagent type when `context: fork` is set (default: `general-purpose`) |
|
|
| `hooks` | object | No | Lifecycle hooks scoped to this command |
|
|
|
|
---
|
|
|
|
##  **(63)**
|
|
|
|
| # | Command | Tag | Description |
|
|
|---|---------|-----|-------------|
|
|
| 1 | `/login` |  | Authenticate with Claude Code via OAuth |
|
|
| 2 | `/logout` |  | Log out from Claude Code |
|
|
| 3 | `/upgrade` |  | Open the upgrade page to switch to a higher plan tier |
|
|
| 4 | `/color [color\|default]` |  | Set the prompt bar color for the current session |
|
|
| 5 | `/config` |  | Open the Settings interface to adjust theme, model, output style, and other preferences. Alias: `/settings` |
|
|
| 6 | `/keybindings` |  | Customize keyboard shortcuts per context and create chord sequences |
|
|
| 7 | `/permissions` |  | View or update tool permissions. Alias: `/allowed-tools` |
|
|
| 8 | `/privacy-settings` |  | Manage privacy and telemetry preferences |
|
|
| 9 | `/sandbox` |  | Configure sandboxing with dependency status |
|
|
| 10 | `/statusline` |  | Set up Claude Code's status line UI |
|
|
| 11 | `/stickers` |  | Order Claude Code stickers |
|
|
| 12 | `/terminal-setup` |  | Enable shift+enter for newlines in IDE terminals |
|
|
| 13 | `/theme` |  | Change the color theme |
|
|
| 14 | `/vim` |  | Enable vim-style editing mode |
|
|
| 15 | `/voice` |  | Toggle push-to-talk voice dictation. Requires a Claude.ai account |
|
|
| 16 | `/context` |  | Visualize current context usage as a colored grid with token counts |
|
|
| 17 | `/cost` |  | Show token usage statistics for the current session |
|
|
| 18 | `/extra-usage` |  | Configure pay-as-you-go overflow billing for subscription plans |
|
|
| 19 | `/insights` |  | Generate a report analyzing your Claude Code sessions, including project areas, interaction patterns, and friction points |
|
|
| 20 | `/stats` |  | Visualize daily usage, session history, streaks, and model preferences |
|
|
| 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` |
|
|
| 25 | `/help` |  | Show slash-command help |
|
|
| 26 | `/release-notes` |  | Show recent Claude Code release notes |
|
|
| 27 | `/tasks` |  | List and manage background tasks |
|
|
| 28 | `/copy [N]` |  | Copy the last (or Nth-latest) assistant response to clipboard. Shows interactive picker for code blocks |
|
|
| 29 | `/export [filename]` |  | Export the current conversation to a file or clipboard |
|
|
| 30 | `/agents` |  | Manage custom subagents — view, create, edit, delete |
|
|
| 31 | `/chrome` |  | Manage Claude in Chrome browser integration |
|
|
| 32 | `/hooks` |  | Manage hook configurations for tool events |
|
|
| 33 | `/ide` |  | Connect to IDE integration |
|
|
| 34 | `/mcp` |  | Manage MCP server connections |
|
|
| 35 | `/plugin` |  | Manage Claude Code plugins |
|
|
| 36 | `/reload-plugins` |  | Reload installed plugins without restarting |
|
|
| 37 | `/skills` |  | List available skills |
|
|
| 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` |  | 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 |
|
|
| 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 |
|
|
| 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` |
|
|
| 51 | `/install-github-app` |  | Install the GitHub app for PR-linked workflows |
|
|
| 52 | `/install-slack-app` |  | Install the Slack app for notifications and sharing |
|
|
| 53 | `/mobile` |  | Show QR code to download the Claude mobile app. Aliases: `/ios`, `/android` |
|
|
| 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 | `/branch` |  | Fork the current conversation into a new session. Alias: `/fork` |
|
|
| 57 | `/btw <question>` |  | Ask a quick side question without adding to the conversation |
|
|
| 58 | `/clear` |  | Clear conversation history and free up context. Aliases: `/reset`, `/new` |
|
|
| 59 | `/compact [prompt]` |  | Compress conversation to free context window. Optional prompt focuses the compaction |
|
|
| 60 | `/exit` |  | Exit the CLI. Alias: `/quit` |
|
|
| 61 | `/rename <name>` |  | Rename the current session for easier identification |
|
|
| 62 | `/resume [session]` |  | Resume a previous conversation by ID or name, or open the session picker. Alias: `/continue` |
|
|
| 63 | `/rewind` |  | Rewind the conversation and/or code to a previous point, or summarize from a selected message. Alias: `/checkpoint` |
|
|
|
|
Bundled skills such as `/debug` can also appear in the slash-command menu, but they are not built-in commands.
|
|
|
|
---
|
|
|
|
## Sources
|
|
|
|
- [Claude Code Slash Commands](https://code.claude.com/docs/en/slash-commands)
|
|
- [Claude Code Interactive Mode](https://code.claude.com/docs/en/interactive-mode)
|
|
- [Claude Code CHANGELOG](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md)
|