Slash command

A command typed with a leading slash in Claude Code, such as /clear, /compact or your own saved prompts.

Claude

Custom commands live as Markdown files in .claude/commands/ and turn a repeated prompt into one word.

Example

/review   → runs your saved code-review checklist on the current changes
/compact  → summarises the conversation to free up context

Related

← Skills Updated 2026-11-26 Subagent →