Section C: Extension Mechanisms

Custom Slash Commands

Create your own reusable prompts

What They Do
Store reusable prompts as markdown files
Access via /your-command in conversation
Support arguments: /command $ARG1 $ARG2
Restart Claude Code to refresh
Location
/ .claude/commands/
- your-command.md
Example
# .claude/commands/code-review.md

Review the code in $FILEPATH for:

1. Security vulnerabilities
2. Performance issues
3. Code style consistency

Provide actionable suggestions
Usage: /code-review src/app.py
DEMO: Show a custom slash command