plugins/plugin-dev/skills/command-development/README.md
Comprehensive guidance on creating Claude Code slash commands, including file format, frontmatter options, dynamic arguments, and best practices.
This skill provides knowledge about:
Core skill content covering:
Fundamentals:
Plugin-Specific:
Detailed documentation:
frontmatter-reference.md: Complete YAML frontmatter field specifications
plugin-features-reference.md: Plugin-specific command features
Practical command examples:
simple-commands.md: 10 complete command examples
plugin-commands.md: 10 plugin-specific command examples
Claude Code activates this skill when users:
The skill uses progressive disclosure:
Claude loads references and examples as needed based on task.
---
description: Brief description
argument-hint: [arg1] [arg2]
allowed-tools: Read, Bash(git:*)
---
Command prompt content with:
- Arguments: $1, $2, or $ARGUMENTS
- Files: @path/to/file
- Bash: !`command here`
.claude/commands/ (shared with team)~/.claude/commands/ (your commands)plugin-name/commands/ (plugin-specific)Dynamic arguments:
$ARGUMENTS - All arguments as single string$1, $2, $3 - Positional argumentsFile references:
@path/to/file - Include file contentsBash execution:
!command`` - Execute and include output| Field | Purpose | Example |
|---|---|---|
description | Brief description for /help | "Review code for issues" |
allowed-tools | Restrict tool access | Read, Bash(git:*) |
model | Specify model | sonnet, opus, haiku |
argument-hint | Document arguments | [pr-number] [priority] |
disable-model-invocation | Manual-only command | true |
---
description: Review code for issues
---
Review this code for quality and potential bugs.
---
description: Deploy to environment
argument-hint: [environment] [version]
---
Deploy to $1 environment using version $2
---
description: Document file
argument-hint: [file-path]
---
Generate documentation for @$1
---
description: Show Git status
allowed-tools: Bash(git:*)
---
Current status: !`git status`
Recent commits: !`git log --oneline -5`
Design command:
Create file:
.md file with command nameAdd frontmatter:
Test command:
/command-nameRefine:
/helpCompleted enhancements:
Remaining enhancements (in progress):
To update this skill:
v0.1.0 (2025-01-15):