Claude Code Custom Slash Commands: Markdown Files as Repeatable Workflows with Model Selection and Shell Command Injection
Claude Code Docs·medium signal
Every Claude Code slash command is a Markdown file in .claude/commands/ (project) or ~/.claude/commands/ (personal). Advanced technique: use `!git status` inside a command to inject shell output before Claude reasons. Add `model: haiku` in frontmatter for near-instant execution of lightweight tasks. Set `disable-model-invocation: true` for commands with side effects like /deploy. Production repos now ship 15+ workflows (commit, review, deploy, test) as version-controlled slash commands.