creating-commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Creating Slash Commands
This Skill provides comprehensive knowledge about creating effective slash commands in Claude Code.
What Are Slash Commands?
Slash commands are user-invoked operations that start with /. When executed, they expand to a full prompt that Claude processes. They're different from subagents (which are automatically invoked) - slash commands require explicit user action.
Critical Insight - Thin Wrappers: The best practice for slash commands is to treat them as thin wrappers or triggers that activate Skills. The command file itself should NOT contain complex workflow logic - that belongs in a SKILL.md file. Commands are simply user-friendly aliases that point to specific skills or workflows.
Command → Skill → (Subagent): This is the ideal flow:
- User invokes
/command - Command activates a specific Skill
- Skill (the "playbook") guides the agent through the process
- Agent may delegate to subagents as needed
Plugin System Integration (October 2025)
As of October 2025, plugins are the standard way to bundle and share slash commands.