Claude Code custom commands: the slash commands I use every day
Claude Code custom commands: the slash commands I use every day If you're still typing the same instructions into Claude Code every session, you're missing one of its most useful features. Custom s...

Source: DEV Community
Claude Code custom commands: the slash commands I use every day If you're still typing the same instructions into Claude Code every session, you're missing one of its most useful features. Custom slash commands let you define reusable prompts that run with a single /command. Here are the ones I use constantly — copy them directly. How custom commands work Create a directory: .claude/commands/ Each .md file in that directory becomes a /command. mkdir -p .claude/commands Then: # Usage inside Claude Code: /review-pr /write-tests /explain-this You can also create global commands that work across all projects: mkdir -p ~/.claude/commands My most-used custom commands /review-pr — code review before every commit File: .claude/commands/review-pr.md Review the staged git changes as if you're a senior engineer doing a PR review. Check for: - Logic bugs or edge cases - Security issues (SQL injection, XSS, auth bypasses, exposed secrets) - Performance problems (N+1 queries, missing indexes, blocki