← ClaudeAtlas

creating-commandslisted

Creates new Claude Code slash commands following best practices. Guides through command structure, naming, arguments, and frontmatter. Use when user wants to create a command, build a slash command, or asks about command best practices.
aiskillstore/marketplace · ★ 329 · AI & Automation · score 79
Install: claude install-skill aiskillstore/marketplace
# Creating Commands Guides creation of Claude Code slash commands using documented best practices. ## Quick Start For a new command: 1. Ask user for command purpose and arguments needed 2. Generate using appropriate template 3. Validate against checklist For reviewing existing command: 1. Read command file 2. Check against anti-patterns in [reference.md](reference.md) 3. Report issues with fixes ## Workflow: Create New Command ``` Progress: - [ ] Gather requirements (purpose, arguments, scope) - [ ] Choose template (basic, with-args, workflow) - [ ] Generate command file - [ ] Validate against checklist ``` ### Step 1: Gather Requirements Ask user with AskUserQuestion: - What should this command do? (purpose) - Does it need arguments? (none, single, multiple) - Project or personal? (scope) ### Step 2: Choose Template | Type | Template | When to Use | |------|----------|-------------| | Basic | [templates/basic.md](templates/basic.md) | No arguments, simple prompt | | With Args | [templates/with-args.md](templates/with-args.md) | Single or multiple arguments | | Workflow | [templates/workflow.md](templates/workflow.md) | Integrates with skills/agents | ### Step 3: Generate Command Create in appropriate location: - `.claude/commands/` - Project commands (git-tracked) - `~/.claude/commands/` - Personal commands (your machine only) ### Step 4: Validate Run through checklist before finishing: ``` Validation Checklist: - [ ] Name: lowercase with hyphens only - [ ] Na