
command-creator
Create Claude Code custom slash commands with proper structure, frontmatter, and best practices. Use this skill whenever the user wants to create a new command, add a slash command, build a custom command, or mentions "create-command", "new command", "add command", or "make a command" for Claude Code. Also trigger when the user wants to turn a workflow into a reusable command.
- Installs
- 122
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/feiskyer/claude-code-settings --skill command-creator- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads command-creator automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Command Creator
Create Claude Code custom slash commands with proper structure and best practices.
Understanding Commands
Claude Code commands are Markdown files with YAML frontmatter that define reusable workflows invoked via /command-name. They live in specific locations depending on scope:
- Project-level:
.claude/commands/in the project root (shared via git) - User-level:
~/.claude/commands/(personal, available everywhere) - Categorized: Nest under subdirectories for namespacing (e.g.,
gh/review-pr.mdbecomes/gh:review-pr)
Process
1. Clarify Intent
Before writing anything, understand:
- What should the command do? (single clear purpose)
- Who uses it — just this user, or the whole team? (determines project vs user-level)
- Does it need arguments? What kind?
- What tools does it need access to?
- Is there a category it belongs to? (e.g.,
ghfor GitHub,ccfor Claude Code meta-commands)
2. Write the Command
Every command file follows this structure:
---
description: Brief description shown in command list
argument-hint: [expected-arguments]
allowed-tools: Tool1, Tool2, Bash(prefix:*)
---
# Command Name
What this command does and when to use it.
## Process:
Step-by-step instructions for the agent to follow.
## Your Task:
Act on "$ARGUMENTS" following these guidelines.
Frontmatter fields
| Field | Required | Purpose |
|---|---|---|
description | Yes | Short description shown when listing commands |
argument-hint | No | Hint for expected arguments (shown in autocomplete) |
allowed-tools | No | Restrict which tools the command can use |
Key conventions
$ARGUMENTSis replaced with whatever the user types after the command name. Always reference it in the "Your Task" section so the command acts on user input.allowed-toolsuses patterns: exact names (Read,Write), or prefix globs for Bash (Bash(git:*),Bash(npm:*)).- Keep commands focused and single-purpose — one command, one job.
- Write instructions in the imperative form ("Analyze the code", not "You should analyze the code").
- Include concrete examples of usage and expected behavior.
3. Choose the Right Location
| Scope | Path | When to use |
|---|---|---|
| Project (shared) | .claude/commands/ | Team workflows, project-specific tasks |
| Project (categorized) | .claude/commands/<category>/ | Grouped commands (e.g., gh/, db/) |
| User (personal) | ~/.claude/commands/ | Personal productivity, cross-project tools |
4. Validate
After creating the command file:
- Verify the YAML frontmatter parses correctly (no syntax errors)
- Confirm the file is in the right directory
- Check that
$ARGUMENTSis referenced if the command accepts input - Ensure
allowed-toolsincludes everything the command needs
Example: A Simple Command
---
description: Review a pull request with detailed analysis
argument-hint: [PR-number-or-URL]
allowed-tools: Bash(gh:*), Read, Grep, Glob
---
# Review PR
Perform a thorough code review of a GitHub pull request.
## Process:
1. Fetch PR details and diff using `gh pr view` and `gh pr diff`
2. Read changed files for full context
3. Analyze changes for:
- Correctness and potential bugs
- Code style consistency
- Missing tests or edge cases
- Security concerns
4. Provide a structured review summary
## Your Task:
Review PR "$ARGUMENTS" following these guidelines. If no PR number is given,
use `gh pr list` to show recent PRs and ask which one to review.
Best Practices
- Descriptive names: The filename becomes the command name — make it clear (
fix-issue.mdnotfi.md) - Graceful argument handling: Always handle the case where
$ARGUMENTSis empty - Minimal tool permissions: Only list tools the command actually needs in
allowed-tools - Follow existing patterns: Look at other commands in the same directory for conventions
- Test before shipping: Try the command with different inputs to verify it works
Your Task
Create a new command based on "$ARGUMENTS":
- If the purpose is unclear, ask clarifying questions
- Determine the appropriate location and category
- Create the command file with proper structure
- Explain what was created and how to use it
FAQ
What does the command-creator skill do?
Create Claude Code custom slash commands with proper structure, frontmatter, and best practices. Use this skill whenever the user wants to create a new command, add a slash command, build a custom command, or mentions "create-command", "new command", "add command", or "make a command" for Claude Code. Also trigger when the user wants to turn a workflow into a reusable command.
How do I install command-creator?
Run npx skills add https://github.com/feiskyer/claude-code-settings --skill command-creator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/command-creator/ (personal) or .claude/skills/command-creator/ (project).
Which AI agents can use command-creator?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is command-creator safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains command-creator?
It is published by feiskyer in feiskyer/claude-code-settings. It has 122 recorded installs.
More from feiskyer/claude-code-settings
spec-kit-skill
feiskyer/claude-code-settings
GitHub Spec-Kit integration for constitution-based spec-driven development. 7-phase workflow. Triggers: "spec-kit", "speckit", "constitution", "specify", ".specify/", "规格驱动开发", "需求规格".
kiro-skill
feiskyer/claude-code-settings
Open the skill to read its SKILL.md instructions.
codex-skill
feiskyer/claude-code-settings
Leverage OpenAI Codex/GPT models for autonomous code implementation, code review, and plan review. Triggers: "codex", "use gpt", "gpt-5", "let openai", "full-auto", "adversarial review", "second opinion review", "用codex", "让gpt实现", "对抗式审查", "让codex审查计划", "第二意见". Use this skill whenever the user wants to delegate coding tasks to OpenAI models, run code or plan reviews via codex, get a second-opinion review from a different model, or execute tasks in a sandboxed environment.
youtube-transcribe-skill
feiskyer/claude-code-settings
Extract subtitles/transcripts from YouTube videos. Triggers: "youtube transcript", "extract subtitles", "video captions", "视频字幕", "字幕提取", "YouTube转文字", "提取字幕".
nanobanana-skill
feiskyer/claude-code-settings
Generate or edit images via Google Gemini (nanobanana). This is the DEFAULT image skill — use whenever the user asks to generate, create, or edit an image and does NOT name another provider. Triggers: "nanobanana", "generate image", "create image", "edit image", "图片生成", "生成图片", "AI绘图", "图片编辑". Do NOT use for diagrams (架构图/流程图/时序图) — draw those with Mermaid or code instead.
deep-research
feiskyer/claude-code-settings
Open the skill to read its SKILL.md instructions.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.