Back to Blog

Claude Code slash commands: the built-ins worth knowing, and how to make your own

Alex Kim
6 min read
Claude Code slash commands: the built-ins worth knowing, and how to make your own

Last updated: November 25, 2026

TL;DR

Type / in Claude Code to see every command available to you, then learn them by the moment you need them: /init and /permissions when you start in a repo, /plan, /context and /compact during a task, /diff and /code-review before you ship, and /resume and /rewind between sessions or when something goes wrong. To make your own slash command, write a skill: a SKILL.md file in .claude/skills/<name>/ becomes /<name>. Anthropic's docs say custom commands "have been merged into skills", and old .claude/commands/ files keep working. Everything below comes from Anthropic's commands reference and skills docs.

How slash commands work

A command is recognized only at the start of your message, and any text after its name becomes its arguments. Type / to open the menu, or / plus a few letters to filter it. Not every command shows for every user: availability depends on your platform, plan and environment, and a few commands stay hidden from the menu until you type their full name.

Send a command while Claude is still answering and Claude Code queues it until the turn ends. A few run at once without interrupting, such as /status, /tasks and /usage.

The list mixes three kinds of entry. Most are built-in commands coded into the CLI. Some are bundled skills, which are prompts handed to Claude, such as /code-review, /simplify and /loop. A few are bundled workflows that fan work out to many subagents. MCP servers can add their own prompts as commands too.

The built-ins worth learning first, by moment

The reference lists well over a hundred entries. These are the ones its own "typical workflow" section names, grouped by when you reach for them.

MomentCommandsWhat they do
First session in a repo/init, /memory, /mcp, /permissionsWrite a starter CLAUDE.md, refine it, connect MCP servers, set allow and deny rules
During a task/plan, /model, /effort, /context, /compact, /btwPlan before a big change, adjust model and reasoning, see and free context, ask a side question without adding to the history
Parallel work/tasks, /background, /batchList background work, detach the session, split a large change across worktrees
Before you ship/diff, /code-review, /security-reviewSee what changed, check the diff for bugs, check it for vulnerabilities
Between sessions/clear, /resume, /branchStart fresh, return to an earlier conversation, try another direction without losing this one
Something went wrong/rewind, /doctor, /debugRoll back to a checkpoint, diagnose setup, diagnose runtime issues

Three habits come out of that table. Run /context before you /compact, so you know what is filling the window; our /compact guide covers when to compact. Use /branch when you want to try something different and /rewind when you want to undo; our rewind guide covers what checkpoints miss. And /code-review (alias /review) reviews the current diff, or a pull request number you pass, for correctness bugs, while /simplify looks for cleanup rather than bugs.

Aliases and renamed commands

Several commands answer to more than one name, which helps when an old habit types the old one:

  • /clear is also /reset and /new.
  • /rewind is also /checkpoint and /undo.
  • /resume is also /continue.
  • /usage is also /cost and /stats.
  • /config is also /settings, and /permissions is also /allowed-tools.

Some older commands are gone. /vim was removed in v2.1.92; editor mode now lives under /config. /pr-comments was removed in v2.1.91; ask Claude for the pull request's comments instead. /ultraplan was removed in favor of plan mode.

Make your own command with a skill

Custom commands are skills now. A skill is a folder with a SKILL.md file: YAML frontmatter between --- lines, then the instructions Claude follows. The folder name, or the frontmatter name when you set one, becomes the command you type.

Where you put it decides who gets it:

LocationWho can use it
~/.claude/skills/<name>/SKILL.mdYou, in every project on this machine
.claude/skills/<name>/SKILL.mdEveryone working in this repository, once you commit it

Arguments arrive through $ARGUMENTS. Anthropic's own example is a deploy command that only you can start:

---
name: deploy
description: Deploy the application to production
disable-model-invocation: true
---

Deploy $ARGUMENTS to production:

1. Run the test suite
2. Build the application
3. Push to the deployment target
4. Verify the deployment succeeded

disable-model-invocation: true stops Claude from loading the skill on its own. The docs suggest it for anything with side effects or timing you want to control, such as a commit, a deploy or a Slack message. Leave it out and Claude can also run the skill when its description matches the task. If you add or change a skill during a session, /reload-skills picks it up without a restart, and /skills lists what is loaded.

Our plugins vs skills guide covers when a skill should become a plugin you share across teams.

Frequently asked questions

How do I see all slash commands in Claude Code?

Type / at the prompt to open the command menu, or / followed by letters to filter it. The menu shows only the commands available on your platform, plan and environment.

How do I create a custom slash command in Claude Code?

Write a skill. Create .claude/skills//SKILL.md in your project, or ~/.claude/skills//SKILL.md for every project, with a description in the frontmatter and instructions below it. The folder name becomes the command.

Do .claude/commands files still work?

Yes. Anthropic's docs say custom commands have been merged into skills and existing .claude/commands/ files keep working.

How do I pass arguments to a custom command?

Put $ARGUMENTS in the skill's instructions. Running /fix-issue 123 replaces it with 123. If no placeholder takes the arguments, Claude Code appends them as ARGUMENTS: followed by the value.

Can I send a slash command while Claude is working?

Yes. Claude Code queues it and runs it after the current turn. A few commands, such as /status, /tasks and /usage, run at once without interrupting.

Next: the rest of the CLI

Slash commands are one layer of the working day. Our Claude Code CLI guide covers the flags, prefixes and shortcuts around them, from starting a session to resuming one.

#claude-code#Slash Commands#Skills#ai-agents#developer-tools
Free assessment

Stop guessing. Score your first workflow.

Score one workflow in about five minutes. Nine questions, a grade, and the specific gap holding it back - no call required.