skills/command-creator/SKILL.md
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.
npx skillsauth add feiskyer/claude-code-settings command-creatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create Claude Code custom slash commands with proper structure and best practices.
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:
.claude/commands/ in the project root (shared via git)~/.claude/commands/ (personal, available everywhere)gh/review-pr.md becomes /gh:review-pr)Before writing anything, understand:
gh for GitHub, cc for Claude Code meta-commands)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.
| 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 |
$ARGUMENTS is 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-tools uses patterns: exact names (Read, Write), or prefix globs for Bash (Bash(git:*), Bash(npm:*)).| 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 |
After creating the command file:
$ARGUMENTS is referenced if the command accepts inputallowed-tools includes everything the command needs---
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.
fix-issue.md not fi.md)$ARGUMENTS is emptyallowed-toolsCreate a new command based on "$ARGUMENTS":
development
Generate or edit images using OpenAI GPT Image API (gpt-image-2, gpt-image-1, etc). Triggers: "gpt image", "openai image", "generate image with openai", "draw image", "create image", "image generation", "AI drawing", "图片生成", "AI绘图", "生成图片", "画图". Use this skill whenever the user wants to generate or edit images and mentions OpenAI, GPT, or when OPENAI_API_KEY is available.
development
Create, refine, and benchmark agent skills. Use when building a new skill, updating an existing one, running evals, checking trigger quality, or improving a skill description.
development
Generate or edit images using Google Gemini API via nanobanana. Triggers: "nanobanana", "generate image", "create image", "edit image", "AI drawing", "图片生成", "AI绘图", "图片编辑", "生成图片".
development
Execute long-running, multi-session tasks autonomously using Claude Code headless mode or in-session hook-based loops. Supports structured task decomposition (for complex projects) and lightweight Ralph-style iteration (for TDD, bug fixing, refactoring). Use this skill whenever the user says "autonomous", "long-running task", "multi-session", "run this in the background", "keep working on this", "batch process", "iterate until done", "ralph loop", or wants any task that requires sustained, unattended execution.