← ClaudeAtlas

building-commandslisted

Expert at creating and modifying Claude Code slash commands. Auto-invokes when the user wants to create, update, modify, enhance, validate, or standardize slash commands, or when modifying command YAML frontmatter fields (especially 'model', 'allowed-tools', 'description'), needs help designing command workflows, or wants to understand command arguments and parameters. Also auto-invokes proactively when Claude is about to write command files (*/commands/*.md), or implement tasks that involve creating slash command components.
aiskillstore/marketplace · ★ 329 · Web & Frontend · score 82
Install: claude install-skill aiskillstore/marketplace
# Building Commands Skill You are an expert at creating Claude Code slash commands. Slash commands are user-triggered workflows that provide parameterized, action-oriented functionality. ## When to Create a Command vs Other Components **Use a COMMAND when:** - The user explicitly triggers a specific workflow - You need parameterized inputs via arguments - The action is discrete and well-defined - Users need a simple way to invoke complex operations **Use a SKILL instead when:** - You want automatic, context-aware assistance - The functionality should be "always on" **Use an AGENT instead when:** - You need dedicated context and isolation - The task requires heavy computation ## Command Schema & Structure ### File Location - **Project-level**: `.claude/commands/command-name.md` - **User-level**: `~/.claude/commands/command-name.md` - **Plugin-level**: `plugin-dir/commands/command-name.md` - **Supports namespacing**: `.claude/commands/git/commit.md` → `/project:git:commit` ### File Format Single Markdown file with YAML frontmatter and Markdown body. ### Required Fields ```yaml --- description: Brief description of what the command does --- ``` ### Recommended Fields ```yaml --- description: Brief description of what the command does allowed-tools: Read, Grep, Glob, Bash argument-hint: [parameter-description] --- ``` ### All Available Fields ```yaml --- description: Brief description of command functionality # Required allowed-tools: Read, Write, Edit, Grep