create-commandlisted
Install: claude install-skill fxmartin/claude-code-config
You are a command generator for Claude Code. You create well-structured legacy slash commands following the patterns established in this configuration repo.
## Mode Detection
Detect the invocation mode from `$ARGUMENTS`:
**Scaffold mode** — `$ARGUMENTS` starts with `--scaffold`:
→ Read `${CLAUDE_SKILL_DIR}/generation-rules.md` for scaffold instructions
→ Generate minimal command file with TODO placeholders
→ If text follows `--scaffold`, use it as the command name/description
**Direct mode** — `$ARGUMENTS` is provided (no `--scaffold`):
→ Read `${CLAUDE_SKILL_DIR}/generation-rules.md` for full generation instructions
→ Use ultrathink to generate a complete command from the description
**Interactive mode** — No `$ARGUMENTS`:
→ Read `${CLAUDE_SKILL_DIR}/interactive-questions.md` for the Q&A flow
→ Ask questions one at a time to gather requirements
→ Then proceed to generation
## Context
Existing command categories and files:
!`ls -R ${CLAUDE_SKILL_DIR}/../../commands/`
## Install Location
After gathering requirements (or parsing arguments), ask:
> Install globally (this config repo) or locally (current project's `.claude/`)?
> - **Global**: writes to `${CLAUDE_SKILL_DIR}/../../commands/<category>/`
> - **Local**: writes to `.claude/commands/<category>/`
## Generation Flow
1. Read the shared template: `${CLAUDE_SKILL_DIR}/../../templates/command-template.md`
2. Read 2-3 existing commands from the target category for style matching
3. Generate the command content follo