Claude Code Slash Commands Cheat Sheet

145 commands, shortcuts and flags. Updated Sep 29, 2026, Claude Code v2.1.284.

Drill these in /cards

The 10 you will use daily

/initInitializes a project with a CLAUDE.md guide and offers interactive setup.
/compactFrees up context by summarizing the conversation.
/clearStarts a new conversation with empty context, optionally naming the previous one.
/contextVisualizes current context usage and provides optimization suggestions.
/modelSwitches the active AI model and sets it as the default.
/resumeResumes a conversation by ID or name, or opens the session picker.
/rewindRewinds the conversation or code to a previous point.
/reviewReviews the current diff, a PR, branch, or specified path.
/permissionsManages allow, ask, and deny rules for tool permissions.
/mcpManages MCP server connections and OAuth authentication.

Keyboard shortcuts

KeysWhat it does
Shift+TabCycle permission modes (default, accept edits, plan)
EscInterrupt Claude mid-response, keeping the work so far
Esc EscRewind: jump back to an earlier message to edit or restore
Ctrl+CCancel the current input or generation
Ctrl+DExit Claude Code
Ctrl+LClear the terminal screen (keeps the conversation)
Ctrl+RReverse search through prompt history
Ctrl+OToggle the detailed transcript view
Ctrl+BSend a running Bash command to the background
Up / DownNavigate prompt history
Shift+Enter or \ then EnterInsert a newline in the prompt
Ctrl+VPaste an image from the clipboard
! at line startBash mode: run a shell command and add its output to context
@ in a promptMention a file or folder to pull it into context
/ at line startOpen the slash command menu

CLI flags

Command or flagWhat it does
claudeStart an interactive session in the current directory
claude "query"Start a session with an initial prompt
-p, --print "query"Run once non-interactively, print the result and exit
-c, --continueContinue the most recent conversation in this directory
-r, --resume [id]Resume a specific session, or pick one from a list
--model <name>Choose the model for this session (alias or full name)
--permission-mode <mode>Start in default, acceptEdits, plan or bypassPermissions
--output-format text|json|stream-jsonOutput format for print mode
--allowedTools "Read,Edit,Bash(npm test)"Pre-approve tools without prompting
--disallowedTools "Bash(rm:*)"Remove tools from what Claude can use
--add-dir <path>Give Claude access to another directory
--max-turns <n>Cap agentic turns in print mode
--append-system-prompt "..."Add instructions to the default system prompt
--mcp-config <file>Load MCP servers from a JSON file
--verboseShow full turn-by-turn output
claude updateUpdate Claude Code to the latest version
claude mcpAdd, list and remove MCP servers
-v, --versionPrint the installed version

Context and memory (10)

Adds a working directory for file access during the current session.

Adds a working directory for file access in the current session. It provides path suggestions and runs DirectoryAdded hooks. Claude Code confirms the directory immediately if run while Claude is responding, allowing immediate access.

Sets the auto-compact window size for automatic context compaction.

Sets the auto-compact window, defining how full the context window gets before Claude Code automatically compacts it. You can specify a size or use "auto" for model-tuned settings. The value is saved to user settings and applied to the current session.

Asks a side question about the session without adding to the conversation.

Asks a side question about the current session without adding it to the main conversation flow. Running it without a question displays your most recent side question and its answer, allowing you to browse previous interactions.

Starts a new conversation with empty context, optionally naming the previous one.

Starts a new conversation with an empty context. You can optionally pass a name to label the previous conversation, making it easier to find in the `/resume` picker. To free up context while continuing the same conversation, use `/compact` instead.

In Chrome, `/clear` now closes the session's Chrome tab group.

Frees up context by summarizing the conversation.

Frees up context by summarizing the conversation up to the current point. You can optionally provide focus instructions to guide the summary. This helps manage the context window without starting a new conversation.

Visualizes current context usage and provides optimization suggestions.

Visualizes current context usage as a colored grid, offering optimization suggestions for context-heavy tools and memory bloat. It also displays capacity warnings, including how far over the limit you are and commands to free space when the conversation exceeds the context window.

Now includes features to help users self-serve debug context issues.

Sets a persistent goal for Claude to work towards across turns.

This command sets a persistent goal for Claude. Claude will continue working across multiple turns until the specified condition is met or the goal is cleared. Running it without arguments shows the current or most recently achieved goal.

Resuming a session from the `claude --resume` picker now restores its active goal.

Initializes a project with a CLAUDE.md guide and offers interactive setup.

This command initializes a project by creating a CLAUDE.md guide. Setting `CLAUDE_CODE_NEW_INIT=1` enables an interactive flow that guides you through skills, hooks, and personal memory files. It also offers to import existing configurations from other AI tools.

Manages CLAUDE.md files and auto memory settings.

Allows you to edit CLAUDE.md files, enable or disable the auto memory feature, and view existing auto memory entries. This provides control over Claude's contextual memory.

[VSCode] Specific fix for VSCode integration.

Generates a one-line summary of the current session.

Generates a concise, one-line summary of the current session on demand. This provides a quick overview of the conversation's main points.

Sessions and history (10)

Creates a branch of the current conversation to explore different directions.

Creates a branch of the current conversation, allowing you to explore different directions without losing the original. It switches you into the new branch while preserving the original, which you can return to later using `/resume`.

Aliases: /fork

Now the primary name; /fork is an alias.

/cd

Added in v2.1.196

Moves the current session to a new working directory, preserving conversation.

Moves the current session to a new working directory while preserving the ongoing conversation. It provides partial path suggestions, which you can accept by pressing Tab. This command differs from `/add-dir` by changing the primary working context.

Copies the last assistant response, or a specific one, to the clipboard.

Copies the last assistant response to the clipboard. You can specify a number N to copy the Nth-latest response. If code blocks are present, an interactive picker allows selecting individual blocks or the full response, with an option to write to a file.

[VSCode] Specific enhancement for VSCode integration.

Exits the CLI; detaches background sessions, allowing them to continue.

This command exits the Claude Code CLI. If used in an attached background session, it detaches the session, allowing it to continue running independently.

Exports the current conversation as plain text to a file or clipboard.

This command exports the entire current conversation as plain text. You can specify a filename to write directly to a file, or omit it to open a dialog for copying to the clipboard or saving.

Toggles a focus view showing only the last prompt, tool summary, and response.

This command toggles the focus view, which streamlines the display to show only your last prompt, a one-line tool-call summary with edit diffstats, and the final response. It also summarizes subagents and background tasks.

/fork

Added in v2.1.47

Copies the current conversation to a new background session.

This command copies the current conversation into a new background session, allowing you to continue working in the original session. If a prompt is provided, the copied session starts working immediately; otherwise, it waits for its first prompt.

Now an alias for /branch.

Renames the current session, auto-generating a name if none is provided.

Renames the current session and displays the new name on the prompt bar. If no name is provided, it auto-generates one from conversation history. It also replaces control characters and caps names at 200 characters.

Resumes a conversation by ID or name, or opens the session picker.

Resumes a conversation using its ID or name. Alternatively, it can open the session picker to select a conversation. Background sessions are marked, but running ones cannot be resumed directly.

Aliases: /continue

In Chrome, empty tab groups are closed on `/resume`.

Rewinds the conversation or code to a previous point.

Rewinds the conversation or code to a previous point in its history. It can also summarize content from a selected message. This command is related to checkpointing.

[VSCode] Specific fix for VSCode integration.

Review and code quality (9)

Spawns a cloud session to automatically fix PR issues from CI or reviews.

Spawns a cloud session that monitors the current branch's Pull Request. It automatically pushes fixes when CI fails or reviewers leave comments. You can provide a custom prompt to give it specific instructions, overriding the default behavior of fixing all issues.

/code-review

Added in v2.1.196

Reviews code diffs, PRs, or branches for correctness and cleanup opportunities.

This skill reviews code diffs, Pull Requests, branches, or specified paths for correctness bugs. Depending on the model and effort, it also identifies cleanup opportunities. Options allow applying fixes, posting comments to PRs, or running a deep cloud review.

Aliases: /review

Reviews changes in your working tree, including Claude's edits.

This command allows you to review all changes within your working tree. This includes any edits that Claude has made during the session.

Fetches and displays comments from a GitHub pull request.

On earlier versions, this command fetched and displayed comments from a GitHub pull request. It could automatically detect the PR for the current branch, or you could pass a PR URL or number. This command required the gh CLI.

Reviews the current diff, a PR, branch, or specified path.

Reviews the current diff, a pull request number, branch, or specified path. It accepts effort levels and flags, reusing the last level if none is provided. This command is an alias for /code-review.

Analyzes current branch changes for security vulnerabilities.

Analyzes changes on your current branch for security vulnerabilities. It reviews the diff between your branch and the origin's default branch, identifying risks such as injection, authentication issues, and data exposure.

Reviews changed code for cleanup and applies fixes.

Reviews changed code for cleanup opportunities and applies fixes. Four review agents run in parallel, focusing on reuse, simplification, efficiency, and abstraction level. It does not look for correctness bugs.

Runs a deep, multi-agent code review in a cloud sandbox.

Runs a deep, multi-agent code review within a cloud sandbox. You can pass a PR reference to review a pull request, or a base branch/commit to change the comparison base. This command is an alias for `/code-review ultra` and includes 3 free runs on Pro and Max plans.

Skill: Confirms code changes by building, running, and observing the app.

This skill confirms that a code change functions as intended. It achieves this by building your project's application, running it, and then observing the results directly, rather than solely relying on traditional tests or type checks.

Configuration and modes (22)

Drafts autoMode.environment entries and saves them to user settings.

Drafts autoMode.environment entries based on your project and recent sessions. You can then review the generated draft and save it directly to your user settings. This feature requires a Pro, Max, or Team plan.

Sets the prompt bar color for the current session.

Sets the prompt bar color for the current session. You can choose from a list of available colors, use "default" to reset, or run without an argument to pick a random color. The color syncs to claude.ai/code when Remote Control is connected.

Opens the Settings interface or sets preferences directly via key=value pairs.

Opens the Settings interface to adjust preferences like theme, model, and output style. Alternatively, you can set specific settings directly by passing key=value pairs, which also works in non-interactive mode. It cannot enable settings requiring confirmation.

Aliases: /settings

[VSCode] Specific fix for VSCode integration.

Sets Claude's effort level and manages Ultracode for the session.

This command sets Claude's effort level, ranging from low to xhigh, max, or auto. It also controls Ultracode, turning it on or off for the current session at the specified effort level.

[VSCode] Specific fix for VSCode integration.

Toggles fast mode on or off, even mid-response.

This command toggles fast mode on or off. It can be run while Claude is responding, immediately applying the change without waiting for the current turn to finish, though the ongoing turn completes at its original speed.

[VSCode] Specific fix for VSCode integration.

Scans transcripts and adds an allowlist to reduce permission prompts.

This skill scans your transcripts for common read-only Bash and MCP tool calls. It then adds a prioritized allowlist to your project's `.claude/settings.json` file, effectively reducing the number of permission prompts you encounter.

Views hook configurations for tool events.

This command allows you to view the current hook configurations. These configurations are specifically set up for various tool events.

[VSCode] Specific fix for VSCode integration.

Manages IDE integrations and shows their status.

This command allows you to manage integrations with various Integrated Development Environments (IDEs). It also displays the current status of these integrations.

Opens your keyboard shortcuts configuration file.

Opens the file containing your custom keyboard shortcuts. This allows you to view or modify your keybindings.

Switches the active AI model and sets it as the default.

Switches the AI model and saves it as your default for new sessions. For supported models, you can adjust the effort level. Running it without arguments opens a picker, allowing you to switch the model for the current session only. It can apply changes without waiting for the current response to finish.

Fixed slash-command panel in fullscreen mode covering latest messages; conversation now stays pinned above the panel.

/output-style

Added in v2.0.30

Lists available output styles or switches to a specific one.

Lists the available output styles or allows you to switch to a specific one, such as "concise." This command helps you customize how Claude Code presents its responses.

Manages allow, ask, and deny rules for tool permissions.

Manages allow, ask, and deny rules for tool permissions. It opens an interactive dialog to view, add, or remove rules by scope, manage working directories, and review auto mode denials. You can also edit auto mode classifier rules. Changes apply immediately, even during Claude's response.

Enters plan mode directly from the prompt.

Enters plan mode directly from the prompt. You can pass an optional description to immediately start with a specific task upon entering plan mode. This helps structure your interaction with Claude.

Views and updates your privacy settings.

Allows you to view and update your privacy settings. This command is exclusively available for Pro and Max plan subscribers, providing control over your data and preferences.

Toggles sandbox mode on or off.

Toggles the sandbox mode. This feature is only available on supported platforms, enabling or disabling an isolated environment.

Adjusts mouse wheel scroll speed interactively.

Adjusts the mouse wheel scroll speed interactively. It provides a ruler within an open dialog, allowing you to preview changes as you scroll. This feature is only available in fullscreen rendering.

Configures Claude Code's status line.

Configures Claude Code's status line. You can describe your desired configuration, or run the command without arguments to auto-configure it based on your shell prompt.

Configures terminal keybindings and clipboard access for newlines and copying.

Installs Shift+Enter keybindings for newlines in various editors like VS Code. For Apple Terminal, it enables Option+Enter for newlines and disables the audible bell. It also turns on iTerm2 clipboard access for the /copy command.

Changes the color theme, offering auto, light, dark, colorblind, and custom options.

Changes the color theme, providing an auto option that matches your terminal's background. It includes light, dark, colorblind-accessible, and ANSI themes. You can also use custom themes or create a new one.

Sets the terminal UI renderer and relaunches with the conversation intact.

Sets the terminal UI renderer and relaunches the application, preserving your current conversation. Using `fullscreen` enables a flicker-free alt-screen renderer. If no argument is provided, it prints the currently active renderer.

Skill: Describes and applies settings changes to the `settings.json` file.

This skill allows you to describe a settings change, such as allowing a command, setting an environment variable, or adding a hook. Claude then edits the corresponding `settings.json` file to apply these changes. For options like theme and model, use the `/config` command instead.

Toggles voice dictation or enables it in a specific mode.

Toggles voice dictation on or off, or enables it specifically within a particular mode. This functionality requires an active Claude.ai account to operate.

Fixed the `/voice` startup tip still appearing after voice dictation was enabled via the `voice.enabled` setting.

Extend: MCP, plugins, skills, agents (17)

/advisor

Added in v2.1.174

Enables or disables the advisor tool, which consults a second model for guidance.

Enables or disables the advisor tool, which consults a second model for guidance during tasks. It accepts specific model IDs like fable, opus, or sonnet. Without an argument, it opens a model picker.

Orchestrates large-scale codebase changes in parallel using subagents.

This skill orchestrates large-scale codebase changes in parallel. It researches the codebase, decomposes work into independent units, and presents a plan. Upon approval, it spawns background subagents, each implementing its unit, running tests, and publishing changes.

Configures Claude within Chrome browser settings.

This command allows you to configure Claude's settings directly within your Chrome browser.

Imports configuration from other AI coding tools into Claude Code.

This command imports configuration from tools like OpenAI Codex, Google Gemini CLI, or Cursor into Claude Code. It includes instruction files, MCP servers, commands, subagents, and skills. Options exist for dry runs or skipping interactive confirmation.

Installs the Claude GitHub App for a repository, with optional GitHub Actions setup.

This command installs the Claude GitHub App for a specified repository. It includes an optional step to set up GitHub Actions workflows and secrets, guiding you through repository selection and integration configuration. It only works with github.com repositories.

Installs the Claude Slack app by opening a browser for OAuth.

This command initiates the installation of the Claude Slack app. It opens a browser window to guide you through the necessary OAuth flow to complete the integration.

Lists all messageable Claude Code sessions and subagents.

Lists subagents, agent team teammates, and other Claude Code sessions that Claude can message. It displays the name to use for each. This command is available only in sessions where cross-session messaging is enabled.

Now lists your live teammates (previously only subagents and other sessions appeared, so a reachable teammate looked absent).

Runs a prompt repeatedly while the session remains open.

Runs a specified prompt repeatedly, keeping the session open. If no interval is provided, Claude self-paces between iterations. Omitting the prompt causes Claude to run a built-in maintenance prompt or your loop.md file.

Aliases: /proactive

Manages MCP server connections and OAuth authentication.

Manages MCP server connections and OAuth authentication. Running it without arguments opens an interactive list. You can reconnect a disconnected server or enable/disable connections by passing arguments. It also supports a non-interactive mode to print a server status summary.

[VSCode] Specific fix for VSCode integration.

Manages Claude Code plugins.

Manages Claude Code plugins. Running it without arguments opens the plugin menu. You can also pass subcommands like list, install, enable, or disable to perform direct actions. Claude Code may activate a plugin during installation.

Reloads all active plugins to apply pending changes.

Reloads all active plugins, applying pending changes without requiring a restart. It reports counts for reloaded components and flags any load errors. If a reload would change MCP tools or invalidate the prompt cache, it warns and skips unless forced.

Re-scans skill and command directories for updates.

Re-scans skill and command directories, making skills added or changed on disk available without restarting the session. It reports the total number of available skills and how many were added or removed during the re-scan.

Shows skill costs and usage to identify unused skills.

Shows the contextual cost and usage frequency for each of your skills. This helps you identify skills that are rarely used or costly, allowing you to decide which ones to disable.

Lists and manages available skills.

Lists all available skills. You can filter the list by name, description, or source. It also allows sorting by token count and toggling a skill's visibility to Claude and the command menu.

Also, the `/skills` menu was changed to sort alphabetically for easier scanning.

Spawns a forked background subagent for a task.

Spawns a forked background subagent that inherits the full conversation. This subagent works on a task concurrently while you continue working, and its result returns to the main conversation upon completion.

Skill: Loads reference for writing dynamic workflow scripts.

This skill loads the reference documentation for writing dynamic workflow scripts, including the script API, resume behavior, quality patterns, and worked examples. Claude typically loads this automatically, but you can run it manually before editing a saved script. It requires dynamic workflows to be enabled.

/workflows

Added in v2.1.202

Opens the workflow progress view to manage running and completed workflows.

Opens the workflow progress view, providing an interface to watch, pause, resume, or save both running and completed workflows. This allows for comprehensive management of your workflow processes.

Fixed the `/workflows` detail dialog overflowing the terminal and losing its header off-screen when opened while Claude is still responding.

Background, cloud and remote (10)

Detaches the current session to run as a background agent.

Detaches the current session, allowing it to run as a background agent and freeing up your terminal. You can send one final instruction before detaching. Use `claude agents` to monitor the background session.

Continues the current session in the Claude Code Desktop app.

This command allows you to continue your current Claude Code session in the dedicated Desktop app. It requires macOS or x64 Windows and an active Claude subscription.

Displays a QR code to download the Claude mobile app.

Displays a QR code that you can scan to download the Claude mobile application. This provides a convenient way to access the app on your iOS or Android device.

Makes the current session available for Remote Control.

Makes the current session available for Remote Control from claude.ai. If you run it while signed out, it informs you that Remote Control requires a claude.ai subscription and provides instructions on how to sign in.

Chooses the default cloud environment for CLI sessions.

Allows you to choose the default cloud environment that will be used for cloud sessions initiated from the command-line interface. This sets the preferred environment for your cloud-based interactions.

for claude.ai subscribers

Manages cloud-executing routines conversationally.

Creates, updates, lists, or runs routines that execute in the cloud. Claude guides you through the setup process conversationally. You can also inquire about a routine's recent runs.

Stops the current background session.

Stops the current background session. This command is only available when attached to such a session. The conversation transcript and any worktree are preserved after stopping.

Views and manages background work in the current session.

Views and manages all background work within the current session. This includes subagents that have completed their tasks. It is also available via an alias.

[VSCode] Specific enhancement for VSCode integration.

Pulls a cloud session into the current terminal.

Pulls a cloud session into the current terminal. It opens a picker to select the session, then fetches its associated branch and conversation. This command requires a claude.ai subscription.

for claude.ai subscribers

Connects your GitHub account for cloud sessions using local gh CLI credentials.

Connects your GitHub account to enable cloud sessions. It utilizes your local `gh CLI` credentials for authentication, streamlining the setup process.

Account, usage and billing (12)

An alias for the /usage command.

This command is an alias for `/usage`. It performs the same function as `/usage`, which typically displays information about resource consumption or billing.

Cost estimates now include the 1.1× US-only-inference premium for data-residency workspaces.

Signs you into your Anthropic account.

Allows you to sign in to your Anthropic account. This establishes your authenticated session with Claude Code.

Signs you out from your Anthropic account.

Allows you to sign out from your Anthropic account. This terminates your authenticated session with Claude Code.

[VSCode] Specific enhancement for VSCode integration.

Shares a free week of Claude Code with friends.

Allows you to share a free week of Claude Code access with your friends. This command is only visible if your account meets the eligibility criteria.

Shows options to continue working despite usage limits.

Displays options to continue working when a claude.ai usage limit blocks a request. These options include waiting for the limit to reset, adding usage credits, or upgrading your plan. Claude Code can also open this menu automatically when a limit is hit.

Configures Amazon Bedrock authentication and settings.

Configures Amazon Bedrock authentication, region, and model pins. It uses an interactive wizard for setup. This command is hidden until a specific environment variable is set.

Configures Google Cloud Agent Platform authentication and settings.

Configures Google Cloud's Agent Platform authentication, project, region, and model pins. It uses an interactive wizard for setup. This command is hidden until a specific environment variable is set.

Opens the Stats tab, an alias for /usage.

Opens the Settings interface directly on the Stats tab. This command is an alias for /usage, providing quick access to usage statistics.

Opens the Settings interface to the Status tab.

Opens the Settings interface on the Status tab. It displays information such as version, active model, account details, and connectivity status. It also indicates the session kind (e.g., background job, interactive).

Opens the upgrade page in your browser to switch to a higher plan tier.

Opens the upgrade page in your browser, allowing you to switch to a higher plan tier. If the browser fails to open, the command displays a sign-in prompt instead of printing the URL.

Shows session cost, plan usage limits, and activity statistics.

Displays your current session cost, plan usage limits, and activity statistics. For Pro, Max, Team, or Enterprise plans, it also provides a breakdown of what counts against your plan limits. This command is aliased by `/cost` and `/stats`.

This command was added/enabled for the VSCode integration in this release.

Configures usage credits or requests them from an admin.

Configures usage credits or allows you to request them from your admin when a limit is reached. It opens your usage-credits billing settings in the browser. Team and Enterprise members without billing access send a request to their admin from the CLI. If a browser cannot open, it prints the URL.

Aliases: /extra-usage

Help and troubleshooting (9)

/bug

Added in v2.1.178

Reports a bug or shares your conversation with selectable history.

Reports a bug or shares your conversation. You can choose how much session history to include and must confirm on a consent screen before sending. Reports go to Anthropic directly or are saved locally for self-forwarding, depending on your connection.

Enables debug logging for the current session to troubleshoot issues.

This skill enables debug logging for the current session, allowing you to troubleshoot issues by reading the session debug log. If not started with `claude --debug`, running this command mid-session begins capturing logs from that point. You can optionally describe the issue to focus the analysis.

Runs a setup checkup to diagnose and fix Claude Code installation issues.

This skill runs a comprehensive setup checkup, diagnosing and potentially fixing issues. It checks installation health, PATH problems, settings files, and identifies unused skills or slow hooks. It also offers to optimize CLAUDE.md files and pre-approve commands.

Aliases: /checkup

Sends product feedback about Claude Code, or manages drafted feedback.

This command sends product feedback about Claude Code, opening a dialog similar to `/bug`. If Claude has drafted feedback, running it without arguments opens a queue to review, edit, send, or discard these drafts. With an argument, the dialog opens directly.

Aliases: /bug

Writes a JavaScript heap snapshot and memory breakdown for diagnosis.

This command writes a JavaScript heap snapshot and a memory breakdown to your desktop (or home directory on Linux). This output is used for diagnosing high memory usage issues. Only the diagnostics file should be shared, as the snapshot contains sensitive data.

Shows help information and available commands.

This command displays general help information. It also lists all available commands within Claude Code.

Generates an HTML report analyzing recent Claude Code session usage.

This command generates an HTML report that analyzes your recent Claude Code sessions on the current machine. The report details projects, usage patterns, areas of difficulty, and suggested features to explore. It is not available in cloud sessions.

Fixed `/insights` echoing literal `<message>` tags in its response on some models.

Discovers Claude Code features via interactive lessons.

Helps you discover Claude Code features through quick, interactive lessons. These lessons include animated demonstrations, providing an engaging way to learn about the platform's capabilities.

Views the changelog in an interactive version picker.

Views the changelog through an interactive version picker. You can select a specific version to see its release notes or choose to display all versions. The notes appear in your transcript without affecting Claude's conversation context.

Everything else (13)

Lists artifacts, then allows attaching, opening, or copying links.

Lists artifacts you own or that are shared with you. From the list, you can attach an artifact to the current session, open it in your browser, or copy its link. This feature is available where artifacts are supported.

Loads Claude API reference material and provides subcommands for API management.

This skill loads Claude API and Managed Agents reference material for your project's language. It also activates automatically with Anthropic SDK imports. It offers subcommands like `migrate` for model updates, `upgrade` for SDK version changes, `prompt-audit` for prompt optimization, and `cost-optimize` for spend analysis.

Added `upgrade` subcommand to migrate Python projects from `anthropic` 0.x to 1.x, and updated the skill's Python reference for 1.x.

/dataviz

Added in v2.1.198

Provides design guidance for charts, graphs, and dashboards.

This skill provides design guidance for charts, graphs, and dashboards. Claude selects chart forms, assigns colors, validates palettes for accessibility, and applies interaction and accessibility rules. It uses a brand-neutral placeholder palette for customization.

/deep-research

Added in v2.1.196

Fans out web searches, cross-checks sources, and synthesizes a cited report.

This workflow command fans out web searches on a given question. It fetches and cross-checks various sources, then synthesizes the findings into a cited report.

Drafts UI mockups, screen flows, landing pages, or posters as editable artboards.

This skill drafts UI mockups, screen flows, landing pages, or posters as artboards on a single canvas. These are published as a Claude Design artifact, editable in a desktop browser with automatic saving. Artboards can be exported as PNG or PDF.

Authorizes design-system access for /design-sync using your claude.ai account.

This command authorizes design-system access. It specifically enables the `/design-sync` command to function by linking with your claude.ai account.

Converts and uploads a repo's React design system to Claude Design.

This skill converts your repository's React design system and uploads it to Claude Design. This ensures that any designs produced will utilize your actual components. You can optionally name the design system.

Opens Claude FM lo-fi radio in your browser.

Opens Claude FM lo-fi radio directly in your web browser. If no browser is available, it will print the stream URL instead, allowing you to access the music manually.

Launches and drives your project's app to verify changes.

Launches and drives your project's application. This skill allows you to see a change working in practice, beyond just passing tests, to verify its functionality.

Teaches /run and /verify how to build and launch apps.

Teaches the /run and /verify commands how to build, launch, and drive your project's application. It achieves this by writing a per-project skill from a clean environment.

Creates a new presentation as a Claude Slides artifact.

Creates a new presentation as a Claude Slides artifact, filled based on your brief. This command requires a session where artifacts are available and an account with the Slides template.

Orders Claude Code stickers.

Initiates the process to order Claude Code stickers. This command is a direct action for obtaining physical merchandise.

Generates a team onboarding guide from usage history.

Generates a team onboarding guide based on your Claude Code usage history. Claude analyzes your sessions, commands, and server usage from the past 30 days to produce a markdown guide for quick setup.

Make your own slash command

A custom command is a Markdown file. Put it in .claude/commands/ to share it with your team through git, or in ~/.claude/commands/ to use it in every project. The filename is the command (fix-issue.md becomes /fix-issue), $ARGUMENTS receives what you type after it, $1 and $2 pick positional arguments, and frontmatter sets the description, allowed tools and model.

---
description: Fix a GitHub issue by number
allowed-tools: Bash(gh issue view:*), Edit, Read
argument-hint: <issue-number>
---
Read issue #$ARGUMENTS, find the cause, fix it, and add a test.

Commands vs skills. You type a command to run it. A skill is a folder with a SKILL.md that Claude loads by itself when a task matches its description, and you can still call it by name. Several entries above (marked Skill in their description) are skills that ship with Claude Code.

Studying for the Claude certification? How slash commands, hooks and settings are tested on the CCAR-F →

Make them stick

A list you scan is a list you forget

Tick “My deck” on the commands you want to learn, then drill them in /cards with spaced repetition so the right command comes to mind in your editor, not on this page.

FAQ

Claude Code commands: FAQ

How do I see all slash commands in Claude Code?+
Type / at the start of the prompt to open the command menu, then keep typing to filter. /help lists the commands available in your session, including custom commands, plugin commands and MCP prompts.
What does /compact do vs /clear?+
/compact summarizes the conversation so far and continues from that summary, freeing context while keeping the gist. /clear starts a fresh, empty context. Use /compact mid-task when the window fills up; use /clear when you switch to unrelated work.
How do I create a custom slash command?+
Add a Markdown file to .claude/commands/ in your project (shared with the team) or ~/.claude/commands/ (just you). The filename becomes the command name, $ARGUMENTS receives what you type after it, and frontmatter can set a description, allowed-tools and a model.
Where are custom commands stored?+
Project commands live in .claude/commands/ and are committed with the repo. Personal commands live in ~/.claude/commands/ and work in every project. Subfolders namespace the commands.
What is the difference between slash commands and skills?+
A slash command runs when you type it. A skill is a packaged set of instructions (a SKILL.md plus optional files) that Claude can load on its own when a task matches the skill's description, and that you can also invoke by name. Use a command for a prompt you trigger yourself, a skill for know-how Claude should reach for automatically.
What are the most useful Claude Code keyboard shortcuts?+
Shift+Tab cycles permission modes, Esc interrupts, Esc twice rewinds to an earlier message, Ctrl+R searches prompt history, ! runs a shell command, and @ mentions a file.
Is there a printable Claude Code cheat sheet?+
Yes, this page. Use the Print button (or your browser's print to PDF) and the site chrome drops away, leaving the top ten, shortcuts, CLI flags and every command.
Is this an official Anthropic reference?+
No. It is an independent reference synced from the official Claude Code documentation, which remains the source of truth for exact syntax. Want to get certified? See the free Claude certification prep guides.