Command Development
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
Security Assessment
About Command Development
The Command Development skill facilitates the creation and management of slash commands within Claude Code, a framework designed for interactive sessions with AI. By allowing users to define commands through Markdown files, it addresses the need for standardization and reusability in workflows. This skill empowers users to create complex prompts that can be executed swiftly, enhancing productivity and collaboration within teams. It effectively streamlines the command development process by providing clear guidelines and best practices for writing commands that are tailored for Claude's consumption.
FAQ
How do I create a slash command?
You can create a slash command by writing a Markdown file with the appropriate structure and placing it in the correct commands directory.
What is the purpose of YAML frontmatter?
YAML frontmatter allows you to specify configuration options for your command, such as a description and allowed tools.
Can I use commands across different projects?
Yes, personal commands stored in the ~/.claude/commands/ directory are available across all projects.
What are the limitations of command development?
Commands should be written as instructions for Claude, not as messages to users, and basic commands do not require frontmatter.
What types of commands can I create?
You can create project commands, personal commands, and plugin commands, each serving different scopes and functionalities.
Install Command Development
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
anthropics/claude-code