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.
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):
npx skills add anthropics/Command Development下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Best practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
Notion API for creating and managing pages, databases, and blocks.
OpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
Control Philips Hue lights and scenes via the OpenHue CLI.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Category:developer