Skip to content
English
back to the Playbook

feature

Slash commands

Type a forward slash to run a saved, named action instead of writing the whole request.

Inside a Claude session, typing / shows a menu of built-in commands — and any you've saved yourself. They're shortcuts for things you do often, so you stop re-typing the same long prompt. You can write your own by dropping a prompt in a file and giving it a name.

There are two kinds. Built-in commands ship with Claude Code — /review, /plan, /commit, /clear and more — and cover the moves you make constantly. Custom ones are yours: any prompt you keep re-typing can become a named command your whole team shares.

Making one is deliberately small. A custom command is just a prompt saved in a file under .claude/commands/ — the filename becomes the command name. Drop in the instruction you keep giving (“summarize what changed since yesterday and draft a standup update”), and from then on /standup runs it. Commands can take arguments too, so one saved prompt handles many specific cases.

Use a command when you decide the moment — it’s an action you trigger. That’s the difference from a skill, which Claude applies on its own when it’s relevant. A good rule of thumb: the third time you paste the same long instruction, stop and save it as a command.

the slash menu, for real

In Claude Code, typing / opens this exact menu. Try it — type, arrow through, and hit enter to learn what each one does.

claude
  • /clearWipe the conversation and start with a clean context window.
  • /compactSummarize the conversation so far to free up room — keeping the gist.
  • /initHave Claude study your project and write a CLAUDE.md for it.
  • /modelSwitch which Claude model is doing the work.
  • /helpList the slash commands available in your session.
  • /reviewHave Claude review a pull request or your pending changes.
  • /agentsCreate and manage subagents — specialized helpers for focused jobs.
  • /memoryOpen your CLAUDE.md memory files to add lasting instructions.
  • /mcpView and manage the MCP servers connected to this session.
  • /configOpen Claude Code settings — theme, model, permissions, and more.
  • /costShow how many tokens this session has used, and the cost so far.
  • /loginSign in, or switch which account Claude Code uses.
  • /statusShow version, account, and your current setup at a glance.
  • /vimToggle vim-style editing in the input prompt.
  • /permissionsSee and change what Claude is allowed to do without asking each time.
  • /doctorRun a quick health check when something feels off.
  • /terminal-setupTeach your terminal the shortcut for a newline (Shift+Enter).
  • /exportSave the current conversation to a file or your clipboard.
  • /bugReport a problem with Claude Code to Anthropic, with context attached.
  • /logoutSign out of your Anthropic account in Claude Code.
  • /add-dirGive Claude access to another folder beyond the one you started in.
  • /pr-commentsPull the review comments from a GitHub pull request into the session.
  • /output-styleChange how Claude talks back — its tone and level of detail.
  • /hooksSet up commands that run automatically at certain moments.
moveexplainescclear

why it helps Turn a paragraph you keep typing into a one-word command your whole team can reuse.

examples

Built-in commands you already have
/review   ·   /plan   ·   /commit   ·   /clear
Run a custom command you saved
/standup

tips & best practices