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):
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer