Agentic Tutor/Terminal Forest/Hooks & Smart Routing
80 XP · 8 min
Concept

Slash Commands That Earn Their Keep

Custom slash commands turn your most-used 5-line prompts into one-word reflexes. Build three and you'll never look back.

A slash command is a saved prompt with parameters. You define it once in .claude/commands/<name>.md, and from then on `/name` runs that prompt with your args. It is the single highest-leverage customization in Claude Code.

The rule for what becomes a slash command: anything you type the same way three times in a week. /review-pr that pulls the diff and runs your team's checklist. /draft-changelog that scans recent commits and writes release notes in your tone. /find-todos that locates every TODO across the repo with file and line numbers.

Treat slash commands like git aliases. Cheap to add, easy to delete. The good ones earn permanent residency in your workflow within a week.

Check your understanding
Q1.Where are custom slash commands defined?
Q2.What's the heuristic for when something deserves a slash command?
· Score 100% on the quiz.