Files
claude-code-best-practice/best-practice/claude-commands.md
T
Shayan Rais 85e245d6d1 workflow changelog runs for settings, commands, skills, subagents, and concepts reports
Settings (v2.1.78): added voiceEnabled, filesystem.allowManagedReadPathsOnly; moved showTurnDuration/terminalProgressBarEnabled to ~/.claude.json section; fixed MAX_MCP_OUTPUT_TOKENS default (25000); added 3 missing env vars; corrected 4 env var descriptions; added verification Rule 1H (file scope check)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-03-19 00:33:54 +05:00

11 KiB

Commands Best Practice

Last Updated
Implemented

Claude Code commands — frontmatter fields and official built-in slash commands.

← Back to Claude Code Best Practice Claude

Frontmatter Fields (4)

Field Type Required Description
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])
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)

Official (63)

# Command Tag Description
1 /login Auth Authenticate with Claude Code via OAuth
2 /logout Auth Log out from Claude Code
3 /upgrade Auth Open the upgrade page to switch to a higher plan tier
4 /color [color|default] Config Set the prompt bar color for the current session
5 /config Config Open the Settings interface to adjust theme, model, output style, and other preferences. Alias: /settings
6 /keybindings Config Customize keyboard shortcuts per context and create chord sequences
7 /permissions Config View or update tool permissions. Alias: /allowed-tools
8 /privacy-settings Config Manage privacy and telemetry preferences
9 /sandbox Config Configure sandboxing with dependency status
10 /statusline Config Set up Claude Code's status line UI
11 /stickers Config Order Claude Code stickers
12 /terminal-setup Config Enable shift+enter for newlines in IDE terminals
13 /theme Config Change the color theme
14 /vim Config Enable vim-style editing mode
15 /voice Config Toggle push-to-talk voice dictation. Requires a Claude.ai account
16 /context Context Visualize current context usage as a colored grid with token counts
17 /cost Context Show token usage statistics for the current session
18 /extra-usage Context Configure pay-as-you-go overflow billing for subscription plans
19 /insights Context Generate a report analyzing your Claude Code sessions, including project areas, interaction patterns, and friction points
20 /stats Context Visualize daily usage, session history, streaks, and model preferences
21 /status Context Open the Settings interface (Status tab) showing version, model, account, and connectivity
22 /usage Context Show plan usage limits and rate limit status (subscription plans only)
23 /doctor Debug Check the health of your Claude Code installation
24 /feedback [description] Debug Generate a GitHub issue URL for reporting bugs or feedback. Alias: /bug
25 /help Debug Show slash-command help
26 /release-notes Debug Show recent Claude Code release notes
27 /tasks Debug List and manage background tasks
28 /copy [N] Export Copy the last (or Nth-latest) assistant response to clipboard. Shows interactive picker for code blocks
29 /export [filename] Export Export the current conversation to a file or clipboard
30 /agents Extensions Manage custom subagents — view, create, edit, delete
31 /chrome Extensions Manage Claude in Chrome browser integration
32 /hooks Extensions Manage hook configurations for tool events
33 /ide Extensions Connect to IDE integration
34 /mcp Extensions Manage MCP server connections
35 /plugin Extensions Manage Claude Code plugins
36 /reload-plugins Extensions Reload installed plugins without restarting
37 /skills Extensions List available skills
38 /memory Memory Edit CLAUDE.md memory files, enable or disable auto-memory, and view auto-memory entries
39 /effort [low|medium|high|max|auto] Model Set the model effort level
40 /fast Model Toggle fast mode — same Opus 4.6 model with faster output
41 /model Model Switch models (haiku, sonnet, opus) and adjust effort level
42 /passes [number] Model Share a free week of Claude Code with friends. Only visible if your account is eligible
43 /plan Model Enter read-only planning mode — suggests approaches without making changes
44 /add-dir Project Add additional working directories to the current session
45 /diff Project Open an interactive diff viewer showing uncommitted changes and per-turn diffs
46 /init Project Initialize a new project with a CLAUDE.md guide
47 /pr-comments Project Review or reply to pull-request comments
48 /review Project Deprecated — install the code-review plugin instead
49 /security-review Project Run a focused security review on current changes
50 /desktop Remote Continue the current session in the Claude Code Desktop app. macOS and Windows only. Alias: /app
51 /install-github-app Remote Install the GitHub app for PR-linked workflows
52 /install-slack-app Remote Install the Slack app for notifications and sharing
53 /mobile Remote Show QR code to download the Claude mobile app. Aliases: /ios, /android
54 /remote-control Remote Make this session available for remote control from claude.ai. Alias: /rc
55 /remote-env Remote Inspect or copy the remote-control environment setup
56 /branch Session Fork the current conversation into a new session. Alias: /fork
57 /btw <question> Session Ask a quick side question without adding to the conversation
58 /clear Session Clear conversation history and free up context. Aliases: /reset, /new
59 /compact [prompt] Session Compress conversation to free context window. Optional prompt focuses the compaction
60 /exit Session Exit the CLI. Alias: /quit
61 /rename <name> Session Rename the current session for easier identification
62 /resume [session] Session Resume a previous conversation by ID or name, or open the session picker. Alias: /continue
63 /rewind Session 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