skills/create-command/SKILL.md
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.
npx skillsauth add mgiovani/cc-arsenal create-commandInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Cross-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
development
Generate comprehensive test suites with coverage analysis and parallel test writing. Automatically activates when users want to write tests, add test coverage, generate test cases, improve testing, or analyze coverage gaps. Supports pytest, vitest, jest, and all major test frameworks.
development
Multi-agent PR review team orchestration with 7 specialized reviewers for security-sensitive or architectural PRs. Spawns architecture, security, performance, testing, style, docs/UX, and adversary reviewers as a coordinated team. Premium review for critical code changes.
development
Spec-driven team orchestration: adaptive development team scaling from 3 to 11 agents based on complexity.
development
Perform comprehensive security review targeting OWASP Top 10 2025 vulnerabilities for PRs, commits, or entire codebases. This skill should be used when a user wants to audit code security, scan for vulnerabilities, review security posture, or check for OWASP compliance. Analysis only - identifies vulnerabilities without modifying code.