create-command
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.
What this skill does
# Create Command
> **Cross-Platform AI Agent Skill**
> This skill works with any AI agent platform that supports the skills.sh standard.
# Create Skill (Slash Command)
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-creator` skill provides *guidance* on creating skills. This skill (`create-command`) *generates* the actual skill files. They complement each other.
## 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:
### Phase 1: Understand Requirements (Explore Codebase)
Understand what the user wants to create:
### Phase 2: Parse Arguments
1. **Extract skill name** from `$1` or first word of `command 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:
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:
- prompt: "Read the skills in .claude/skills/ directory. Extract common patterns: frontmatter structure, phase organization, tool usage. Return best practices observed."
- agent-type: "Explore"
- model: "haiku"
Agent 2 - Analyze Tool Requirements:
- prompt: "Based on skill description '[DESCRIPTION]', analyze existing skills that have similar functionality. What tools do they use? Return recommended required-capabilities list based on actual usage patterns."
- agent-type: "Explore"
- model: "haiku"
Agent 3 - Analyze Verification Patterns:
- prompt: "For a skill that [DESCRIPTION], search existing skills for anti-hallucination and verification patterns. Return specific verification checks used in similar skills."
- agent-type: "Explore"
- model: "haiku"
### Phase 5: Generate Skill Structure
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:**
```markdown
## 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:
1. **SKILL.md Frontmatter Specification**:
- Complete list of frontmatter fields (name, description, context, agent, etc.)
- Required vs optional fields
- String substitution variables ($0, $1, $ARGUMENTS for all args)
- New fields like 'context', 'agent', 'user-invocable'
2. **Skill Architecture**:
- Current directory structure (SKILL.md, scripts/, references/, assets/)
- Progressive disclosure design principles
- When to use each resource type
3. **allowed-tools Best Practices**:
- Complete list of available tools
- Tool permission patterns (e.g., 'Bash(git *)' syntax)
- Security recommendations for tool access
4. **Recent Changes**:
- Any breaking changes in skill format
- New features or capabilities
- Deprecated patterns to avoid
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:
- prompt: "The user wants to create a skill called [SKILL_NAME] with description: [DESCRIPTION]. Search the codebase to understand: 1) Similar existing skills we can reference, 2) Relevant code/configs the skill might interact with, 3) What tools the skill will likely need. Return findings with file paths."
- subagent_type: "Explore"
- model: "haiku"
```
### 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:
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 SubAgents)
Spawn parallel Explore agents with model: haiku to gather patterns from existing skills:Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.