Expert guidance for creating Claude Code slash commands. Use when working with slash commands, creating custom commands, understanding command structure, or learning YAML configuration.
The 'create-slash-commands' skill provides expert guidance on building custom slash commands for Claude Code, empowering users to streamline and standardize their workflows with reusable prompts. Slash commands allow users to trigger complex tasks by typing a simple '/command-name' syntax, eliminating the need for repetitive manual input. This skill helps users design and configure these commands to fit specific needs, ensuring a more efficient and automated approach to managing code operations and tasks within Claude Code environments.
To create a slash command, create a `.claude/commands/` directory, define a `command-name.md` file, add YAML frontmatter with a description, and write the command's prompt. Test it using `/command-name [args]`.
Yes, dynamic arguments can be used by referencing `$ARGUMENTS` in the `<objective>` or `<process>` tags. These arguments are specified in the command's frontmatter under 'argument-hint'.
Yes, slash commands must include certain tags like `<objective>`, `<process>`, and `<success_criteria>`. Additional tags like `<context>`, `<verification>`, and `<output>` may be used depending on the complexity of the command.
The complexity of slash commands can vary. Simple commands only require basic tags, while more complex commands may involve dynamic arguments, context loading, and output generation, requiring additional tags for clarity.
Quick Setup:
.claude/skills/Repository
glittercowboy/taches-cc-resources