Claude Code Slash Commands: Built-in and Custom (2026)
Claude Code slash commands guide: the built-in commands worth memorizing, bundled skills, and how to write custom commands with SKILL.md and arguments.
Claude Code slash commands are shortcuts you type at the start of a message, like /clear, /compact, /model or /plan, that control the session instead of talking to Claude. Type / to see every command available to you, or / plus a few letters to filter. Custom slash commands are now skills: a file at .claude/skills/deploy/SKILL.md creates /deploy, and the older .claude/commands/deploy.md format still works and creates the same command.
How slash commands work
A few rules explain most of the behavior:
- Commands only run at the start of a message. Text after the command name becomes its arguments.
/plan fix the login redirectenters plan mode and starts that task. - Sending a command while Claude is responding queues it. Some, like
/status,/tasksand/usage, run immediately without interrupting. - The
/menu mixes four sources: built-in commands, bundled skills, your own skills, and commands from plugins and MCP servers. - Skills can be chained.
/skill-a /skill-b do the thingloads both skills and passes the trailing text to each, up to six in one message.
The built-in commands worth knowing
These are the built-ins that earn a place in muscle memory.
| Command | What it does | When to use it |
|---|---|---|
/clear |
Starts a new conversation with empty context | Switching to unrelated work |
/compact [instructions] |
Summarizes the conversation to free context | Long sessions, before a new phase of work |
/context |
Shows context usage as a colored grid with suggestions | Finding out what is eating your window |
/plan [description] |
Enters plan mode, optionally with a task | Anything multi-file or risky |
/model |
Switches model and saves it as your default | Trading speed for depth |
/permissions |
Manages allow, ask and deny rules | Cutting down repeated prompts |
/rewind |
Restores code and conversation to an earlier point | Undoing a wrong turn |
/resume |
Reopens a previous conversation by name or picker | Picking up yesterday's work |
/init |
Generates a starter CLAUDE.md for the project |
First session in a repo |
/memory |
Edits CLAUDE.md files and auto memory |
Adjusting standing instructions |
/diff |
Reviews working tree changes, including Claude's edits | Before committing |
/mcp |
Manages MCP server connections and auth | Adding or fixing integrations |
/hooks |
Shows hook configurations | Checking what runs on tool calls |
/statusline |
Configures Claude Code's status line | Showing model, branch, cost |
/usage |
Shows session cost and plan limits | Keeping an eye on spend |
/config |
Opens settings (theme, model, editor mode) | Vim mode now lives here |
Two removals trip people up. /vim is gone: enable vim editing through /config and Editor mode. /pr-comments is also gone: ask Claude directly to read the pull request comments.
Bundled skills that look like commands
Some entries in the / menu are skills that ship with Claude Code rather than built-in commands. They behave the same from your side. The useful ones:
/code-reviewreviews the current diff, a branch or a PR number./reviewis an alias./simplifyreviews changed code for cleanup and applies fixes./debugturns on debug logging and reads the log to troubleshoot./loopruns a prompt repeatedly while the session stays open./batchsplits a large change into independent units and runs them in parallel after you approve the plan./fewer-permission-promptsscans your transcripts and proposes an allowlist for project settings.
How to write a custom slash command
For anything new, write a skill. The minimum is a folder with a SKILL.md inside:
---
name: changelog
description: Draft a changelog entry from recent commits. Use when the user asks for release notes.
argument-hint: [version]
disable-model-invocation: true
---
## Recent commits
!`git log --oneline -20`
Write a changelog entry for version $ARGUMENTS using the commits above.
Group changes under Added, Changed and Fixed. Keep each line short.
Save it to .claude/skills/changelog/SKILL.md and run /changelog 2.4.0.
The pieces:
descriptiontells Claude when the skill applies. Put the key use case first.disable-model-invocation: truemeans only you can trigger it. Use this for anything with side effects, like deploys or commits.$ARGUMENTSis everything you typed after the command.$0,$1and so on pick individual arguments by 0-based position. If the body has no placeholder, Claude Code appends the arguments at the end.!`command`runs a shell command before Claude sees the skill and pastes the output in place. A non-zero exit aborts the invocation, so add|| trueto commands that may fail.allowed-toolslists tools that can run without a permission prompt during the turn that invokes the skill, for exampleBash(git log *).
Where commands live
| Location | Path | Available in |
|---|---|---|
| Personal | ~/.claude/skills/<name>/SKILL.md |
All your projects |
| Project | .claude/skills/<name>/SKILL.md |
This repo (commit it to share) |
| Plugin | <plugin>/skills/<name>/SKILL.md |
Wherever the plugin is enabled, as /plugin-name:skill-name |
| Legacy | .claude/commands/<name>.md |
Still works, same /name |
If names collide, personal beats project. Plugin skills never collide because they are namespaced. Added a skill mid-session? Run /reload-skills instead of restarting.
Commands vs hooks vs CLAUDE.md
Slash commands are for workflows you trigger on purpose. If you want something to happen automatically every time, such as formatting after each edit, that is a hook: see our Claude Code hooks guide. If you want Claude to always follow a rule, that belongs in CLAUDE.md. And if you want new tools rather than new prompts, look at MCP servers for Claude Code; MCP servers can also expose prompts that appear in the / menu.
Your terminal and the command menu
Slash commands work the same in any terminal. Where the terminal matters is everything around them: how many sessions you can see at once, and whether you notice when a /loop or /batch run finishes. MOLTamp is a skinnable terminal shell for Claude Code with a tab system that flags sessions needing attention, plus a customizable status line of its own. Our best terminal for Claude Code roundup compares it fairly against iTerm2, Ghostty, Warp and others. If you only want to tune Claude Code's own status bar, start with Claude Code status line customization.
Verdict
Learn about eight built-ins (/clear, /compact, /context, /plan, /rewind, /resume, /permissions, /model) and you have covered most daily use. Then write one or two project skills for the workflows you repeat, like changelogs, release checks or test triage. Use disable-model-invocation for anything that changes state, and keep the body short.
FAQ
How do I see all Claude Code slash commands?
Type / at the start of the prompt to open the command menu, or / followed by letters to filter it. /help also lists available commands. The menu includes built-ins, bundled skills, your own skills, and plugin and MCP commands.
Are custom commands and skills the same thing now?
Effectively, yes. A file at .claude/commands/deploy.md and a skill at .claude/skills/deploy/SKILL.md both create /deploy. Skills add a folder for supporting files, frontmatter to control who can invoke them, and automatic loading when relevant, so use skills for new work.
How do I pass arguments to a custom slash command?
Use $ARGUMENTS for everything typed after the command, or $0, $1 and so on for individual arguments by 0-based position. You can also declare named arguments with the arguments frontmatter field.
What happened to /vim?
It was removed. Enable vim-style editing through /config and the Editor mode setting.
Can a slash command run shell commands?
Yes. Put !`command` in the skill body and Claude Code runs it before Claude reads the skill, replacing the placeholder with the output. Those commands are checked against your permission rules.
A quick honest note: MOLTamp is free to use and every feature works. A one-time $10 license removes a recurring popup and unlocks community skin uploads, with no subscription. If you want a terminal built around Claude Code, download MOLTamp and see if it fits.