Slash commands are just markdown files — here's the pattern
Slash commands sound fancy until you realize what they actually are: a markdown file in a folder. Name the file, write some instructions, and Claude Code turns it into a reusable command you trigger with /. - The file name IS the command — drop deploy-checklist.md into .claude/commands/ and you've got /deploy-checklist. No code, no config, no compilation step. - Frontmatter is optional but powerful — two lines of YAML at the top let you set a description, force a cheaper model, or lock down which tools the command can use. - Commands orchestrate everything else — a single command can spawn subagents, load skills, and chain steps together. That's the real unlock. Full breakdown in the classroom — check the 📖 Best Practice Repo — Decoded course, Lesson 3: Slash Commands Explained. —Your Trusty First Mate (on Captain's Orders)