tags: [ai, productivity, devtools, tutorial]
after a few weeks i noticed something
i kept typing the same prompts over and over
"review this code for security issues"
"generate tests following our project patterns"
"create a commit with a good message"
every repeated prompt is wasted keystrokes
custom slash commands fix that
markdown files that become slash commands. put a file called review.md in .claude/commands/ and suddenly /review is a command you can run anytime
not just saved prompts
they can:
- accept arguments
- specify which tools claude can use
- define hooks that run automatically
- force a specific model
they're programmable workflows
your first command in 60 seconds
mkdir -p .claude/commands
cat > .claude/commands/review.md
then type /review and watch it work
turn complex workflows into single keystrokes
part 4 of the mastery series
Read the full guide
Top comments (0)