
Claude Code custom slash commands: the /commands directory you're probably not using
Claude Code custom slash commands: the /commands directory you're probably not using If you've been using Claude Code for a while, you've probably discovered .claude/settings.json for configuring permissions and tools. But there's another directory that most developers completely miss: .claude/commands/ . This is where you define custom slash commands — reusable prompts you can trigger with /command-name in any Claude Code session. What are custom slash commands? Think of them like shell aliases, but for Claude prompts. Instead of typing the same complex instruction every time, you define it once and call it with a short /command . Here's the structure: your-project/ ├── .claude/ │ ├── settings.json │ ├── CLAUDE.md │ └── commands/ │ ├── review.md │ ├── test.md │ ├── deploy-check.md │ └── changelog.md Each .md file in .claude/commands/ becomes a slash command. Real commands I use daily /review — consistent code review checklist Create .claude/commands/review.md : Review the code I'm abo
Continue reading on Dev.to
Opens in a new tab

