From command-creator
Guides creation of Claude Code slash commands for reusable workflows, with patterns, examples, best practices, and structured workflow including location detection.
How this skill is triggered — by the user, by Claude, or both
Slash command
/command-creator:command-creatorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill guides the creation of Claude Code slash commands - reusable workflows that can be invoked with `/command-name` in Claude Code conversations.
This skill guides the creation of Claude Code slash commands - reusable workflows that can be invoked with /command-name in Claude Code conversations.
Slash commands are markdown files stored in .claude/commands/ (project-level) or ~/.claude/commands/ (global/user-level) that get expanded into prompts when invoked. They're ideal for:
Invoke this skill when users:
This skill includes reference documentation for detailed guidance:
Load these references as needed when creating commands to understand patterns, see examples, or ensure quality.
Every slash command is a markdown file with:
---
description: Brief description shown in /help (required)
argument-hint: <placeholder> (optional, if command takes arguments)
---
# Command Title
[Detailed instructions for the agent to execute autonomously]
Auto-detect the appropriate location:
git rev-parse --is-inside-work-tree 2>/dev/null.claude/commands/~/.claude/commands/~/.claude/commands/.claude/commands/Report the chosen location to the user before proceeding.
Help the user understand different command types. Load references/patterns.md to see available patterns:
Ask the user: "Which pattern is closest to what you want to create?" This helps frame the conversation.
Ask the user for key information:
Ask:
Guidelines:
submit-stack, ensure-ci, create-from-plansubmit_stack, ensure_ci, create_from_planmy-command.md → invoked as /my-command/help output)Ask:
If command takes arguments:
argument-hint: <placeholder> to frontmatter<angle-brackets> for required arguments[square-brackets] for optional argumentsAsk:
Gather details about:
Ask:
Create the command file with agent-optimized instructions. Load references/best-practices.md for:
Key principles:
Determine full file path:
.claude/commands/[command-name].md~/.claude/commands/[command-name].mdEnsure directory exists:
mkdir -p [directory-path]
Write the command file using the Write tool
Confirm with user:
/command-name [arguments]If the user wants to test:
You can test this command by running: /command-name [arguments]For detailed guidance, load the bundled references:
Common patterns to remember:
pytest, pyright, ruff, prettier, make, gt commands.PLAN.md) before proceedingWhen creating a command:
Focus on creating commands that agents can execute autonomously, with clear steps, explicit tool usage, and proper error handling.
3plugins reuse this skill
First indexed Jul 11, 2026
npx claudepluginhub thanhnp07/agent-toolkit --plugin command-creatorGuides creation of Claude Code slash commands with YAML frontmatter, XML structure, and dynamic context loading. Useful for standardizing workflows or building custom prompt commands.
Creates custom slash commands for Claude Code that encode repeatable workflows as markdown files, enabling one-line invocations for complex processes.
Provides guidance on writing custom slash commands for Claude Code, covering YAML frontmatter, dynamic arguments, bash execution, user interaction, command organization, and file references.