Claude Code slash commands

Slash commands are reusable prompts you trigger with /name. They turn a workflow you run over and over into a single keystroke — you invoke them yourself, on demand.

How to create one
Add a Markdown file to .claude/commands/ — the filename becomes the command (review.md → /review). The file body is the prompt Claude runs. Put project commands at the repo root to share with your team, or in your home folder to use everywhere.

Useful commands to steal

/review
Review the current diff for bugs and risky changes.
/test
Write or update tests for what just changed.
/refactor
Simplify the selected code without changing behavior.
/commit
Draft a clear commit message from the staged diff.
/explain
Explain a file or function in plain language.
/pr
Summarize the branch into a pull-request description.
Ready-made commands

Browse Claude Code slash commands and other configs on ConfigDeck and install into .claude/commands/ in one click.

Browse the marketplace →

FAQ

How does a filename become a command?
A file at .claude/commands/review.md becomes /review — the filename is the command name.
Slash command or subagent — which for a quick task?
A slash command, since you trigger it yourself for a one-shot action.
Can commands be shared with a team?
Yes — put them in the project's .claude/commands/ and commit it.
Where can I find ready-made commands?
ConfigDeck lists commands you can install into .claude/commands/ in one click.