Create a new slash command (skill) following best practices and prompt engineering techniques. This skill should be used when users want to create a new slash command, skill, or custom workflow for Claude Code.
Generates new Claude Code skills with proper structure, documentation, and anti-hallucination patterns.
npx claudepluginhub mgiovani/cc-arsenalThis skill is limited to using the following tools:
SYNC.mdreferences/design-patterns.mdreferences/frontmatter-guide.mdCross-Platform AI Agent Skill This skill works with any AI agent platform that supports the skills.sh standard.
Generate a new skill following Claude Code best practices, prompt engineering techniques, and anti-hallucination patterns.
Note: Claude Code has merged commands into skills (v2.1.3+). Files in
.claude/commands/still work, but the recommended approach is to create skills in.claude/skills/which support additional features: supporting files (references/, scripts/, assets/), model invocation control, subagent execution, and progressive disclosure. This skill generates skills by default.Relationship to skill-creator: The
skill-creatorskill provides guidance on creating skills. This skill (create-command) generates the actual skill files. They complement each other.
CRITICAL: Before creating any skill, fetch the latest official documentation:
Understand what the user wants to create:
$1 or first word of command arguments.claude/skills/<name>/SKILL.md (shared with team)~/.claude/skills/<name>/SKILL.md (personal)Ask user or infer from context:
Questions to determine:
1. What is the primary purpose of this skill?
2. What tools does it need? (Bash, Read, Write, Edit, Grep, Glob, Task, TodoWrite, etc.)
3. What arguments does it accept?
4. Should Claude invoke this automatically, or only when the user runs it? (disable-model-invocation)
5. Should it use SubAgents for complex operations?
6. Should it track progress with TodoWrite?
7. Does it need supporting files? (references/ for docs, scripts/ for code, assets/ for templates)
8. Should it run in a forked subagent context? (context: fork)
### Phase 4: Analyze Similar Skills (Use Parallel Analysis)
Spawn parallel Explore agents with model: haiku to gather patterns from existing skills:
Agent 1 - Analyze Existing Skills:
Agent 2 - Analyze Tool Requirements:
Agent 3 - Analyze Verification Patterns:
Use TodoWrite to track skill creation:
TodoWrite:
- [ ] Create skill directory structure
- [ ] Create SKILL.md with frontmatter
- [ ] Add anti-hallucination guidelines
- [ ] Define task phases with Explore/SubAgents
- [ ] Add verification steps
- [ ] Create supporting files if needed (references/, scripts/, assets/)
- [ ] Include examples and usage
- [ ] Validate skill structure
### Phase 6: Write Skill Files
Generate the skill following the template structure. For the complete template and all frontmatter options, see [references/frontmatter-guide.md](references/frontmatter-guide.md). For design patterns, see [references/design-patterns.md](references/design-patterns.md).
**Skill directory structure:**
skill-name/ ├── SKILL.md # Core instructions (required, keep under 500 lines) ├── references/ # Documentation loaded as needed (optional) │ └── *.md ├── scripts/ # Executable code (optional) │ └── *.py / *.sh └── assets/ # Files used in output (optional) └── templates, images, etc. SKILL.md template:
## Claude Code Enhanced Features
This skill includes the following Claude Code-specific enhancements:
## Reference Documentation
- Official skills documentation: https://code.claude.com/docs/en/skills
- For complete frontmatter field reference, see [references/frontmatter-guide.md](references/frontmatter-guide.md)
- For design patterns (SubAgent, TodoWrite, anti-hallucination), see [references/design-patterns.md](references/design-patterns.md)
## Your Task
### Phase 0: Gather Up-to-Date Documentation (Use claude-code-guide Agent)
**CRITICAL**: Before creating any skill, fetch the latest official documentation:
Use Task tool with claude-code-guide agent:
prompt: "I need to create a new Claude Code skill. Please research and provide:
SKILL.md Frontmatter Specification:
Skill Architecture:
allowed-tools Best Practices:
Recent Changes:
Return specific, actionable information with examples that match the current API."
subagent_type: "claude-code-guide"
### Phase 1: Understand Requirements (Use Explore Agent)
Understand what the user wants to create:
Use Task tool with Explore agent:
### Phase 2: Parse Arguments
1. **Extract skill name** from `$1` or first word of `$ARGUMENTS`
2. **Extract description** from remaining arguments or ask user
3. **Determine skill location**:
- Project skill: `.claude/skills/<name>/SKILL.md` (shared with team)
- User skill: `~/.claude/skills/<name>/SKILL.md` (personal)
4. **Determine if supporting files are needed** (references/, scripts/, assets/)
### Phase 3: Gather Skill Requirements
Ask user or infer from context:
Questions to determine:
### Phase 4: Analyze Similar Skills (Use SubAgents)
Spawn parallel Explore agents with model: haiku to gather patterns from existing skills:
Agent 1 - Analyze Existing Skills:
Agent 2 - Analyze Tool Requirements:
Agent 3 - Analyze Verification Patterns:
### Phase 5: Generate Skill Structure
Use TodoWrite to track skill creation:
TodoWrite:
### Phase 6: Write Skill Files
Generate the skill following the template structure. For the complete template and all frontmatter options, see [references/frontmatter-guide.md](references/frontmatter-guide.md). For design patterns, see [references/design-patterns.md](references/design-patterns.md).
**Skill directory structure:**
skill-name/ ├── SKILL.md # Core instructions (required, keep under 500 lines) ├── references/ # Documentation loaded as needed (optional) │ └── *.md ├── scripts/ # Executable code (optional) │ └── *.py / *.sh └── assets/ # Files used in output (optional) └── templates, images, etc.
**SKILL.md template:**
```markdown