docs(commands): add disallowed-tools field, /reload-skills and /workflows commands
- Bump version badge to v2.1.158 (Jun 01, 2026) - Add disallowed-tools frontmatter field (15 -> 16): inverse of allowed-tools, clears on next message - Add /reload-skills (#44, Extensions): re-scan skill/command dirs without restart - Add /workflows (#82, Session): open the workflow progress view - Official command count 80 -> 82; renumber downstream rows Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Commands Best Practice
|
# Commands Best Practice
|
||||||
|
|
||||||
 <br>
|
 <br>
|
||||||
[](../implementation/claude-commands-implementation.md)
|
[](../implementation/claude-commands-implementation.md)
|
||||||
|
|
||||||
Claude Code commands — frontmatter fields and official built-in slash commands.
|
Claude Code commands — frontmatter fields and official built-in slash commands.
|
||||||
@@ -14,7 +14,7 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Frontmatter Fields (15)
|
## Frontmatter Fields (16)
|
||||||
|
|
||||||
| Field | Type | Required | Description |
|
| Field | Type | Required | Description |
|
||||||
|-------|------|----------|-------------|
|
|-------|------|----------|-------------|
|
||||||
@@ -27,6 +27,7 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
|||||||
| `user-invocable` | boolean | No | Set `false` to hide from the `/` menu — command becomes background knowledge only |
|
| `user-invocable` | boolean | No | Set `false` to hide from the `/` menu — command becomes background knowledge only |
|
||||||
| `paths` | string/list | No | Glob patterns that limit when this skill is activated. Accepts a comma-separated string or a YAML list. When set, Claude loads the skill automatically only when working with files matching the patterns |
|
| `paths` | string/list | No | Glob patterns that limit when this skill is activated. Accepts a comma-separated string or a YAML list. When set, Claude loads the skill automatically only when working with files matching the patterns |
|
||||||
| `allowed-tools` | string | No | Tools allowed without permission prompts when this command is active |
|
| `allowed-tools` | string | No | Tools allowed without permission prompts when this command is active |
|
||||||
|
| `disallowed-tools` | string/list | No | Tools removed from Claude's available pool while this command is active. Clears when you send your next message. The inverse of `allowed-tools` |
|
||||||
| `model` | string | No | Model to use when this command runs (e.g., `haiku`, `sonnet`, `opus`) |
|
| `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`, `xhigh`, `max`) |
|
| `effort` | string | No | Override the model effort level when invoked (`low`, `medium`, `high`, `xhigh`, `max`) |
|
||||||
| `context` | string | No | Set to `fork` to run the command in an isolated subagent context |
|
| `context` | string | No | Set to `fork` to run the command in an isolated subagent context |
|
||||||
@@ -36,7 +37,7 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
##  **(80)**
|
##  **(82)**
|
||||||
|
|
||||||
| # | Command | Tag | Description |
|
| # | Command | Tag | Description |
|
||||||
|---|---------|-----|-------------|
|
|---|---------|-----|-------------|
|
||||||
@@ -83,43 +84,45 @@ Claude Code commands — frontmatter fields and official built-in slash commands
|
|||||||
| 41 | `/mcp` |  | Manage MCP server connections and OAuth authentication |
|
| 41 | `/mcp` |  | Manage MCP server connections and OAuth authentication |
|
||||||
| 42 | `/plugin` |  | Manage Claude Code plugins |
|
| 42 | `/plugin` |  | Manage Claude Code plugins |
|
||||||
| 43 | `/reload-plugins` |  | Reload all active plugins to apply pending changes without restarting. Reports counts for each reloaded component and flags any load errors |
|
| 43 | `/reload-plugins` |  | Reload all active plugins to apply pending changes without restarting. Reports counts for each reloaded component and flags any load errors |
|
||||||
| 44 | `/skills` |  | List available skills. Press `t` to sort by token count |
|
| 44 | `/reload-skills` |  | Re-scan skill and command directories so skills added or changed on disk during the session become available without restarting. Reports how many skills are available and how many were added or removed |
|
||||||
| 45 | `/memory` |  | Edit `CLAUDE.md` memory files, enable or disable auto-memory, and view auto-memory entries |
|
| 45 | `/skills` |  | List available skills. Press `t` to sort by token count |
|
||||||
| 46 | `/effort [low\|medium\|high\|xhigh\|max\|auto]` |  | Set the model effort level. Available levels depend on the model and include `low`, `medium`, `high`, `xhigh`, and `max` (session-only). Without an argument, opens an interactive slider to pick the level. `auto` resets to the model default. Takes effect immediately without waiting for the current response to finish |
|
| 46 | `/memory` |  | Edit `CLAUDE.md` memory files, enable or disable auto-memory, and view auto-memory entries |
|
||||||
| 47 | `/fast [on\|off]` |  | Toggle fast mode on or off |
|
| 47 | `/effort [low\|medium\|high\|xhigh\|max\|auto]` |  | Set the model effort level. Available levels depend on the model and include `low`, `medium`, `high`, `xhigh`, and `max` (session-only). Without an argument, opens an interactive slider to pick the level. `auto` resets to the model default. Takes effect immediately without waiting for the current response to finish |
|
||||||
| 48 | `/model [model]` |  | Select or change the AI model. For models that support it, use left/right arrows to adjust effort level. The change takes effect immediately without waiting for the current response to finish. When switching mid-conversation after prior output, Claude warns before applying the change |
|
| 48 | `/fast [on\|off]` |  | Toggle fast mode on or off |
|
||||||
| 49 | `/passes` |  | Share a free week of Claude Code with friends. Only visible if your account is eligible |
|
| 49 | `/model [model]` |  | Select or change the AI model. For models that support it, use left/right arrows to adjust effort level. The change takes effect immediately without waiting for the current response to finish. When switching mid-conversation after prior output, Claude warns before applying the change |
|
||||||
| 50 | `/plan [description]` |  | Enter plan mode directly from the prompt. Pass an optional description to enter plan mode and immediately start with that task, for example `/plan fix the auth bug` |
|
| 50 | `/passes` |  | Share a free week of Claude Code with friends. Only visible if your account is eligible |
|
||||||
| 51 | `/ultraplan <prompt>` |  | Draft a plan in an ultraplan session, review it in your browser, then execute remotely or send it back to your terminal |
|
| 51 | `/plan [description]` |  | Enter plan mode directly from the prompt. Pass an optional description to enter plan mode and immediately start with that task, for example `/plan fix the auth bug` |
|
||||||
| 52 | `/add-dir <path>` |  | Add a working directory for file access during the current session. Most `.claude/` configuration is not discovered from the added directory |
|
| 52 | `/ultraplan <prompt>` |  | Draft a plan in an ultraplan session, review it in your browser, then execute remotely or send it back to your terminal |
|
||||||
| 53 | `/diff` |  | Open an interactive diff viewer showing uncommitted changes and per-turn diffs. Use left/right arrows to switch between the current git diff and individual Claude turns, and up/down to browse files |
|
| 53 | `/add-dir <path>` |  | Add a working directory for file access during the current session. Most `.claude/` configuration is not discovered from the added directory |
|
||||||
| 54 | `/init` |  | Initialize project with a `CLAUDE.md` guide. Set `CLAUDE_CODE_NEW_INIT=1` for an interactive flow that also walks through skills, hooks, and personal memory files |
|
| 54 | `/diff` |  | Open an interactive diff viewer showing uncommitted changes and per-turn diffs. Use left/right arrows to switch between the current git diff and individual Claude turns, and up/down to browse files |
|
||||||
| 55 | `/review` |  | Review a pull request locally in your current session. For a deeper cloud-based review, see `/ultrareview` |
|
| 55 | `/init` |  | Initialize project with a `CLAUDE.md` guide. Set `CLAUDE_CODE_NEW_INIT=1` for an interactive flow that also walks through skills, hooks, and personal memory files |
|
||||||
| 56 | `/security-review` |  | Analyze pending changes on the current branch for security vulnerabilities. Reviews the git diff and identifies risks like injection, auth issues, and data exposure |
|
| 56 | `/review` |  | Review a pull request locally in your current session. For a deeper cloud-based review, see `/ultrareview` |
|
||||||
| 57 | `/team-onboarding` |  | Generate a team onboarding guide from your Claude Code usage history. Analyzes sessions, commands, and MCP server usage from the past 30 days |
|
| 57 | `/security-review` |  | Analyze pending changes on the current branch for security vulnerabilities. Reviews the git diff and identifies risks like injection, auth issues, and data exposure |
|
||||||
| 58 | `/ultrareview [PR]` |  | Run a deep, multi-agent code review of the given pull request in a cloud sandbox. Produces a structured review with prioritized findings; complements the local `/review` command |
|
| 58 | `/team-onboarding` |  | Generate a team onboarding guide from your Claude Code usage history. Analyzes sessions, commands, and MCP server usage from the past 30 days |
|
||||||
| 59 | `/autofix-pr [prompt]` |  | Spawn a Claude Code on the web session that watches the current branch's PR and pushes fixes when CI fails or reviewers leave comments. Detects the open PR from your checked-out branch with `gh pr view`; to watch a different PR, check out its branch first. Requires the `gh` CLI and access to Claude Code on the web |
|
| 59 | `/ultrareview [PR]` |  | Run a deep, multi-agent code review of the given pull request in a cloud sandbox. Produces a structured review with prioritized findings; complements the local `/review` command |
|
||||||
| 60 | `/desktop` |  | Continue the current session in the Claude Code Desktop app. macOS and Windows only. Alias: `/app` |
|
| 60 | `/autofix-pr [prompt]` |  | Spawn a Claude Code on the web session that watches the current branch's PR and pushes fixes when CI fails or reviewers leave comments. Detects the open PR from your checked-out branch with `gh pr view`; to watch a different PR, check out its branch first. Requires the `gh` CLI and access to Claude Code on the web |
|
||||||
| 61 | `/install-github-app` |  | Set up the Claude GitHub Actions app for a repository. Walks you through selecting a repo and configuring the integration |
|
| 61 | `/desktop` |  | Continue the current session in the Claude Code Desktop app. macOS and Windows only. Alias: `/app` |
|
||||||
| 62 | `/install-slack-app` |  | Install the Claude Slack app. Opens a browser to complete the OAuth flow |
|
| 62 | `/install-github-app` |  | Set up the Claude GitHub Actions app for a repository. Walks you through selecting a repo and configuring the integration |
|
||||||
| 63 | `/mobile` |  | Show QR code to download the Claude mobile app. Aliases: `/ios`, `/android` |
|
| 63 | `/install-slack-app` |  | Install the Claude Slack app. Opens a browser to complete the OAuth flow |
|
||||||
| 64 | `/remote-control` |  | Make this session available for remote control from claude.ai. Alias: `/rc` |
|
| 64 | `/mobile` |  | Show QR code to download the Claude mobile app. Aliases: `/ios`, `/android` |
|
||||||
| 65 | `/remote-env` |  | Configure the default remote environment for web sessions started with `--remote` |
|
| 65 | `/remote-control` |  | Make this session available for remote control from claude.ai. Alias: `/rc` |
|
||||||
| 66 | `/schedule [description]` |  | Create, update, list, or run routines. Claude walks you through the setup conversationally. Alias: `/routines` |
|
| 66 | `/remote-env` |  | Configure the default remote environment for web sessions started with `--remote` |
|
||||||
| 67 | `/teleport` |  | Pull a Claude Code on the web session into this terminal: opens a picker, then fetches the branch and conversation. Also available as `/tp`. Requires a claude.ai subscription |
|
| 67 | `/schedule [description]` |  | Create, update, list, or run routines. Claude walks you through the setup conversationally. Alias: `/routines` |
|
||||||
| 68 | `/web-setup` |  | Connect your GitHub account to Claude Code on the web using your local `gh` CLI credentials. `/schedule` prompts for this automatically if GitHub is not connected |
|
| 68 | `/teleport` |  | Pull a Claude Code on the web session into this terminal: opens a picker, then fetches the branch and conversation. Also available as `/tp`. Requires a claude.ai subscription |
|
||||||
| 69 | `/background [prompt]` |  | Detach the current session to run as a background agent and free this terminal. Alias: `/bg` |
|
| 69 | `/web-setup` |  | Connect your GitHub account to Claude Code on the web using your local `gh` CLI credentials. `/schedule` prompts for this automatically if GitHub is not connected |
|
||||||
| 70 | `/branch [name]` |  | Create a branch of the current conversation at this point. Alias: `/fork`. When `CLAUDE_CODE_FORK_SUBAGENT` is set, `/fork` instead spawns a forked subagent and is no longer an alias for this command |
|
| 70 | `/background [prompt]` |  | Detach the current session to run as a background agent and free this terminal. Alias: `/bg` |
|
||||||
| 71 | `/btw <question>` |  | Ask a quick side question without adding to the conversation |
|
| 71 | `/branch [name]` |  | Create a branch of the current conversation at this point. Alias: `/fork`. When `CLAUDE_CODE_FORK_SUBAGENT` is set, `/fork` instead spawns a forked subagent and is no longer an alias for this command |
|
||||||
| 72 | `/clear` |  | Start a new conversation with empty context. The previous conversation stays available in `/resume`. To free up context while continuing the same conversation, use `/compact` instead. Aliases: `/reset`, `/new` |
|
| 72 | `/btw <question>` |  | Ask a quick side question without adding to the conversation |
|
||||||
| 73 | `/compact [instructions]` |  | Compact conversation with optional focus instructions |
|
| 73 | `/clear` |  | Start a new conversation with empty context. The previous conversation stays available in `/resume`. To free up context while continuing the same conversation, use `/compact` instead. Aliases: `/reset`, `/new` |
|
||||||
| 74 | `/exit` |  | Exit the CLI. Alias: `/quit` |
|
| 74 | `/compact [instructions]` |  | Compact conversation with optional focus instructions |
|
||||||
| 75 | `/goal [condition\|clear]` |  | Set a goal — Claude keeps working across turns until the condition is met. Pass `clear` to remove an existing goal |
|
| 75 | `/exit` |  | Exit the CLI. Alias: `/quit` |
|
||||||
| 76 | `/recap` |  | Generate a one-line summary of the current session on demand, without affecting the ongoing conversation |
|
| 76 | `/goal [condition\|clear]` |  | Set a goal — Claude keeps working across turns until the condition is met. Pass `clear` to remove an existing goal |
|
||||||
| 77 | `/rename [name]` |  | Rename the current session and show the name on the prompt bar. Without a name, auto-generates one from conversation history |
|
| 77 | `/recap` |  | Generate a one-line summary of the current session on demand, without affecting the ongoing conversation |
|
||||||
| 78 | `/resume [session]` |  | Resume a conversation by ID or name, or open the session picker. Alias: `/continue` |
|
| 78 | `/rename [name]` |  | Rename the current session and show the name on the prompt bar. Without a name, auto-generates one from conversation history |
|
||||||
| 79 | `/rewind` |  | Rewind the conversation and/or code to a previous point, or summarize from a selected message. See checkpointing. Alias: `/checkpoint`, `/undo` |
|
| 79 | `/resume [session]` |  | Resume a conversation by ID or name, or open the session picker. Alias: `/continue` |
|
||||||
| 80 | `/stop` |  | Stop the current background session. The transcript and worktree are kept |
|
| 80 | `/rewind` |  | Rewind the conversation and/or code to a previous point, or summarize from a selected message. See checkpointing. Alias: `/checkpoint`, `/undo` |
|
||||||
|
| 81 | `/stop` |  | Stop the current background session. The transcript and worktree are kept |
|
||||||
|
| 82 | `/workflows` |  | Open the workflow progress view to watch, pause, resume, or save running and completed workflows |
|
||||||
|
|
||||||
Bundled skills such as `/debug` can also appear in the slash-command menu, but they are not built-in commands.
|
Bundled skills such as `/debug` can also appear in the slash-command menu, but they are not built-in commands.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user