What problem does it solve?
This Skill provides comprehensive guidance for creating custom, reusable slash commands in Claude Code, enabling you to automate repetitive tasks, standardize workflows, and enhance your AI assistant's capabilities. It simplifies the process of defining command structure, arguments, and execution logic.
Core Features & Use Cases
- Custom Command Definition: Learn to structure commands using Markdown and YAML frontmatter, defining descriptions, allowed tools, and model preferences.
- Dynamic Argument Handling: Utilize
$1, $2, and $ARGUMENTS to create flexible commands that adapt to user input, making them highly versatile.
- Contextual Execution: Embed file contents with
@ syntax and execute bash commands with ! syntax to gather dynamic context directly within your commands.
- Plugin Integration: Understand how to organize commands with namespacing and integrate them seamlessly with other plugin components like agents, skills, and hooks for complex workflows.
- Use Case: Create a
/review-pr command that takes a pull request number, fetches its details using the gh cli, and then instructs Claude to perform a detailed code review based on the retrieved information.
Quick Start
Help me create a new slash command called /my-task that takes one argument, a file path, and then reads that file's content.