Skip to main content
slash command Custom slash commands allow you to define frequently-used prompts as Markdown files that Claude Code can execute.

Setting up slash commands

Create custom commands by adding Markdown files to the .claude/commands/ directory:
mkdir -p ~/.claude/commands
echo "Your prompt here" > ~/.claude/commands/<name>.md
Learn more about slash commands here.