command-creator — Claude Code skill: what it does, how to install
Assists in designing reusable Claude Code slash commands. Sets up parameters, picks storage scope, and generates structured Markdown files for agents.
npx claude-code-templates@latest --skill development/command-creatorWhat command-creator does
The skill structures repetitive workflows into markdown files placed in .claude/commands/ or ~/.claude/commands/. It inspects your git environment first to pick between project-scoped and user-wide storage.
During the prompt exchange, it collects arguments, steps, and tool boundaries, enforcing kebab-case file names. Built-in reference documents supply archetypes for iterative test fixing, task delegation, and direct script runs.
Running this outside a git workspace routes the command to your home directory by default. Once saved, the new shortcut is ready to trigger via its slash identifier.
What it helps with
- convert repeated prompt steps into a persistent slash shortcut
- structure positional and optional parameters for custom actions
- separate local repository actions from machine-wide user workflows
- write step-by-step guidance tailored for autonomous subagents
Example prompts for the agent
- Turn my test and build workflow into a slash command
- Create a global command that runs linter checks across files
- Build a project command that takes a branch name argument
How to install command-creator
1claude-code-templates
npx claude-code-templates@latest --skill development/command-creator2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill command-creator -a claude-code3Manually: put the files in place
~/.claude/skills/command-creator/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/command-creator/
Manually: put the files in place
.agents/skills/command-creator/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/command-creator/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates command-creator2Manually: put the files in place
.github/skills/command-creator/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/command-creatorManually: put the files in place
.devin/skills/command-creator/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about command-creator
How to install command-creator in Claude Code?
Run npx claude-code-templates@latest --skill development/command-creator in your terminal. Alternatively, use npx skills add davila7/claude-code-templates --skill command-creator -a claude-code.
What does command-creator do?
It generates markdown definitions for Claude Code slash shortcuts, handling frontmatter flags, execution steps, and testing patterns.
How does it determine the target directory?
It checks for a git worktree to save under .claude/commands/. When no git tree is found or if requested, it writes to ~/.claude/commands/.