This skill should be used when the user asks to "create a slash command", "write a command file", "add command to plugin", "create /command", "write command frontmatter", "add command arguments", "configure command tools", needs guidance on command structure, YAML frontmatter fields (description, argument-hint, allowed-tools), markdown command body, or wants to add custom slash commands to Claude Code plugins with proper argument handling and tool restrictions.
Creates slash commands for Claude Code plugins with proper frontmatter and instructions. Use when users request command creation, need structure guidance, or want to add custom commands with argument handling and tool restrictions.
/plugin marketplace add basher83/lunar-claude/plugin install meta-claude@lunar-claudeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Creates slash commands for Claude Code plugins. Commands are user-invoked prompts that expand into detailed instructions for Claude.
When to use: User wants to create a command, add command to plugin, or needs command structure help.
References: See
plugins/meta/claude-docs/skills/claude-docs/reference/plugins-reference.md for command specifications.
Every command MUST:
.md file in commands/ directorydescriptionAsk the user:
Create concise kebab-case name:
generate-tests.mdreview-pr.mddeploy-app.mdName becomes the command: /generate-tests
Required frontmatter:
---
description: Brief description of what command does
---
Write clear instructions for Claude:
# Command Title
Detailed instructions telling Claude exactly what to do when this command is invoked.
## Steps
1. First action Claude should take
2. Second action
3. Final action
## Output Format
Describe how Claude should present results.
## Examples
Show example scenarios if helpful.
Check
plugins/meta/claude-docs/skills/claude-docs/reference/plugins-reference.md for command specifications.
User: "Create command to generate tests for a file"
Command file commands/generate-tests.md:
---
description: Generate comprehensive tests for a source file
---
# Generate Tests
Generate test cases for the file provided by the user.
## Process
1. Read and analyze the source file
2. Identify testable functions and methods
3. Determine test scenarios (happy path, edge cases, errors)
4. Write tests using the project's testing framework
5. Ensure tests are comprehensive and follow best practices
## Test Structure
- One test file per source file
- Clear test names describing what's tested
- Arrange-Act-Assert pattern
- Cover edge cases and error conditions
## Output
Present the generated tests and explain coverage.
Invoked with: /generate-tests
User: "Create command for reviewing pull requests"
Command file commands/review-pr.md:
---
description: Conduct thorough code review of a pull request
---
# Review PR
Review the specified pull request for code quality, correctness, and best practices.
## Review Process
1. Fetch PR changes using git or gh CLI
2. Analyze changed files for:
- Code correctness and logic errors
- Style and formatting issues
- Test coverage
- Documentation completeness
- Security concerns
- Performance implications
3. Provide structured feedback
## Feedback Format
**Summary**: Brief overview of PR
**Strengths**: What's done well
**Issues**: Categorized by severity
- Critical: Must fix
- Important: Should fix
- Minor: Nice to have
**Suggestions**: Specific improvements with examples
## Usage
`/review-pr <pr-number>` or provide PR URL
Invoked with: /review-pr 123
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.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.