Reference
Slash commands
Reusable prompt commands for agent chats
Slash commands are reusable prompts stored as Markdown files. Use them for prompts your team runs often, such as review checklists, release steps, or debugging workflows.
Command location
Create custom commands in .claude/commands/. They appear in the chat composer when you type /:
mkdir -p ~/.claude/commands
echo "Your prompt here" > ~/.claude/commands/<name>.mdThe file name becomes the slash command name.
Good commands
Good slash commands are specific and reusable. Include the role, the task, the expected output, and any constraints the agent should follow.
Learn more
For Claude Code command behavior, see the Claude Code slash command docs.