{"id":"slash-command-factory","name":"slash-command-factory","summary":"インテリジェントな5〜7問の流れを通じてカスタムのClaudeコードのスラッシュコマンドを生成します。","body":"# Slash Command Factory\n\nA comprehensive system for generating production-ready Claude Code slash commands through a simple question-based workflow.\n\n---\n\n## What This Skill Does\n\nThis skill helps you create custom slash commands for Claude Code by:\n- Asking 5-7 straightforward questions about your command needs\n- Generating complete command .md files with proper YAML frontmatter\n- Providing 10 powerful preset commands for common use cases\n- Validating command format and syntax\n- Creating well-organized folder structures\n- Offering installation guidance\n\n**Output**: Complete slash commands ready to use in Claude Code\n\n---\n\n## Official Command Structure Patterns\n\nThis skill generates commands following **three official patterns** from Anthropic documentation:\n\n### Pattern A: Simple (Context → Task)\n\n**Best for**: Straightforward tasks with clear input/output\n**Example**: Code review, file updates, simple analysis\n**Official Reference**: code-review.md\n\n**Structure**:\n```markdown\n---\nallowed-tools: Bash(git diff:*), Bash(git log:*)\ndescription: Purpose description\n---\n\n## Context\n- Current state: !`bash command`\n- Additional data: !`another command`\n\n## Your task\n[Clear instructions with numbered steps]\n[Success criteria]\n```\n\n**When to use**:\n- Simple, focused tasks\n- Quick analysis or reviews\n- Straightforward workflows\n- 1-3 bash commands for context\n\n---\n\n### Pattern B: Multi-Phase (Discovery → Analysis → Task)\n\n**Best for**: Complex discovery and documentation tasks\n**Example**: Codebase analysis, comprehensive audits, system mapping\n**Official Reference**: codebase-analysis.md\n\n**Structure**:\n```markdown\n---\nallowed-tools: Bash(find:*), Bash(tree:*), Bash(ls:*), Bash(grep:*), Bash(wc:*), Bash(du:*)\ndescription: Comprehensive purpose\n---\n\n# Command Title\n\n## Phase 1: Project Discovery\n### Directory Structure\n!`find . -type d | sort`\n\n### File Count Analysis\n!`find . -type f | wc -l`\n\n## Phase 2: Detailed Analysis\n[More discovery commands]\n[File references with @]\n\n## Phase 3: Your Task\nBased on all discovered information, create:\n\n1. **Deliverable 1**\n   - Subsection\n   - Details\n\n2. **Deliverable 2**\n   - Subsection\n   - Details\n\nAt the end, write output to [filename].md\n```\n\n**When to use**:\n- Comprehensive analysis needed\n- Multiple discovery phases\n- Large amounts of context gathering\n- 10+ bash commands for data collection\n- Generate detailed documentation files\n\n---\n\n### Pattern C: Agent-Style (Role → Process → Guidelines)\n\n**Best for**: Specialized expert roles and coordination\n**Example**: Domain experts, orchestrators, specialized advisors\n**Official Reference**: openapi-expert.md\n\n**Structure**:\n```markdown\n---\nname: command-name\ndescription: |\n  Multi-line description for complex purpose\n  explaining specialized role\ncolor: yellow\n---\n\nYou are a [specialized role] focusing on [domain expertise].\n\n**Core Responsibilities:**\n\n1. **Responsibility Area 1**\n   - Specific tasks\n   - Expected outputs\n\n2. **Responsibility Area 2**\n   - Specific tasks\n   - Expected outputs\n\n**Working Process:**\n\n1. [Step 1 in workflow]\n2. [Step 2 in workflow]\n3. [Step 3 in workflow]\n\n**Important Considerations:**\n\n- [Guideline 1]\n- [Guideline 2]\n- [Constraint or best practice]\n\nWhen you encounter [scenario], [action to take].\n```\n\n**When to use**:\n- Need specialized domain expertise\n- Orchestrating complex workflows\n- Coordinating multiple sub-processes\n- Acting as expert advisor\n- Require specific procedural guidelines\n\n---\n\n## Comprehensive Naming Convention\n\n### Command File Naming Rules\n\nAll slash command files MUST follow kebab-case convention:\n\n**Format**: `[verb]-[noun].md`, `[noun]-[verb].md`, or `[domain]-[action].md`\n\n**Rules**:\n1. **Case**: Lowercase only with hyphens as separators\n2. **Length**: 2-4 words maximum\n3. **Characters**: Only `[a-z0-9-]` allowed (letters, numbers, hyphens)\n4. **Start/End**: Must begin and end with letter or number (not hyphen)\n5. **No**: Spaces, underscores, camelCase, TitleCase, or special characters\n\n---\n\n### Conversion Algorithm\n\n**User Input** → **Command Name**\n\n```\nInput: \"Analyze customer feedback and generate insights\"\n↓\n1. Extract action: \"analyze\"\n2. Extract target: \"feedback\"\n3. Combine: \"analyze-feedback\"\n4. Validate: Matches [a-z0-9-]+ pattern ✓\n5. Output: analyze-feedback.md\n```\n\n**More Examples**:\n- \"Review pull requests\" → `pr-review.md` or `review-pr.md`\n- \"Generate API documentation\" → `api-document.md` or `document-api.md`\n- \"Update README files\" → `update-readme.md` or `readme-update.md`\n- \"Audit security compliance\" → `security-audit.md` or `compliance-audit.md`\n- \"Research market trends\" → `research-market.md` or `market-research.md`\n- \"Analyze code quality\" → `code-analyze.md` or `analyze-code.md`\n\n---\n\n### Official Examples (From Anthropic Docs)\n\n**Correct**:\n- ✅ `code-review.md` (verb-noun)\n- ✅ `codebase-analysis.md` (noun-noun compound)\n- ✅ `update-claude-md.md` (verb-noun-qualifier)\n- ✅ `openapi-expert.md` (domain-role)\n\n**Incorrect**:\n- ❌ `code_review.md` (snake_case - wrong)\n- ❌ `CodeReview.md` (PascalCase - wrong)\n- ❌ `codeReview.md` (camelCase - wrong)\n- ❌ `review.md` (too vague - needs target)\n- ❌ `analyze-customer-feedback-data.md` (too long - >4 words)\n\n---\n\n## Bash Permission Patterns\n\n### Critical Rule: No Wildcards\n\n**❌ NEVER ALLOWED**:\n```yaml\nallowed-tools: Bash\n```\nThis wildcard permission is **prohibited** per official Anthropic patterns.\n\n**✅ ALWAYS REQUIRED**:\n```yaml\nallowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*)\n```\nMust specify **exact commands** with wildcards only for subcommands.\n\n---\n\n### Official Permission Patterns\n\nBased on Anthropic's documented examples:\n\n**Git Operations** (code-review, update-docs):\n```yaml\nallowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*), Bash(git branch:*), Bash(git add:*), Bash(git commit:*)\n```\n\n**File Discovery** (codebase-analysis):\n```yaml\nallowed-tools: Bash(find:*), Bash(tree:*), Bash(ls:*), Bash(du:*)\n```\n\n**Content Analysis** (comprehensive discovery):\n```yaml\nallowed-tools: Bash(grep:*), Bash(wc:*), Bash(head:*), Bash(tail:*), Bash(cat:*)\n```\n\n**Data Processing** (custom analysis):\n```yaml\nallowed-tools: Bash(awk:*), Bash(sed:*), Bash(sort:*), Bash(uniq:*)\n```\n\n**Combined Patterns** (multi-phase commands):\n```yaml\nallowed-tools: Bash(find:*), Bash(tree:*), Bash(ls:*), Bash(grep:*), Bash(wc:*), Bash(du:*), Bash(head:*), Bash(tail:*), Bash(cat:*), Bash(touch:*)\n```\n\n---\n\n### Permission Selection Guide\n\n| Command Type | Bash Permissions | Example Commands |\n|--------------|------------------|------------------|\n| **Git Commands** | `git status, git diff, git log, git branch` | code-review, commit-assist |\n| **Discovery** | `find, tree, ls, du` | codebase-analyze, structure-map |\n| **Analysis** | `grep, wc, head, tail, cat` | search-code, count-lines |\n| **Update** | `git diff, find, grep` | update-docs, sync-config |\n| **Data Processing** | `awk, sed, sort, uniq` | parse-data, format-output |\n| **Comprehensive** | All of the above | full-audit, system-analyze |\n\n---\n\n## Two Paths to Generate Commands\n\n### Path 1: Quick-Start Presets (30 seconds)\n\nChoose from 10 powerful preset commands:\n\n**Business & Research**:\n1. **/research-business** - Comprehensive market research and competitive analysis\n2. **/research-content** - Multi-platform content trend analysis and SEO strategy\n\n**Healthcare & Compliance**:\n3. **/medical-translate** - Translate medical terminology to 8th-10th grade (German/English) \n4. **/compliance-audit** - HIPAA/GDPR/DSGVO compliance validation\n\n**Development & Integration**:\n5. **/api-build** - Generate complete API integration code with tests\n6. **/test-auto** - Auto-generate comprehensive test suites\n\n**Documentation & Knowledge**:\n7. **/docs-generate** - Automated documentation creation\n8. **/knowledge-mine** - Extract and structure insights from documents\n\n**Workflow & Productivity**:\n9. **/workflow-analyze** - Analyze and optimize business processes\n10. **/batch-agents** - Launch and coordinate multiple agents for complex tasks\n\n### Path 2: Custom Command (5-7 Questions)\n\nCreate a completely custom command for your specific needs.\n\n---\n\n## Question Flow (Custom Path)\n\n### Question 1: Command Purpose\n\n\"What should this slash command do?\n\nBe specific about its purpose and when you'll use it.\n\nExamples:\n- 'Analyze customer feedback and generate actionable insights'\n- 'Generate HIPAA-compliant API documentation'\n- 'Research market trends and create content strategy'\n- 'Extract key insights from research papers'\n\nYour command's purpose: ___\"\n\n---\n\n### Question 2: Arguments (Auto-Determined)\n\nThe skill automatically determines if your command needs arguments based on the purpose.\n\n**If arguments are needed**, they will use `$ARGUMENTS` format:\n- User types: `/your-command argument1 argument2`\n- Command receives: `$ARGUMENTS` = \"argument1 argument2\"\n\n**Examples**:\n- `/research-business \"Tesla\" \"EV market\"` → $ARGUMENTS = \"Tesla EV market\"\n- `/medical-translate \"Myokardinfarkt\" \"de\"` → $ARGUMENTS = \"Myokardinfarkt de\"\n\n**No user input needed** - skill decides intelligently.\n\n---\n\n### Question 3: Which Tools?\n\n\"Which Claude Code tools should this command use?\n\nAvailable tools:\n- **Read** - Read files\n- **Write** - Create files\n- **Edit** - Modify files\n- **Bash** - Execute shell commands (MUST specify exact commands)\n- **Grep** - Search code\n- **Glob** - Find files by pattern\n- **Task** - Launch agents\n\n**CRITICAL**: For Bash, you MUST specify exact commands, not wildcards.\n\n**Bash Examples**:\n- ✅ Bash(git status:*), Bash(git diff:*), Bash(git log:*)\n- ✅ Bash(find:*), Bash(tree:*), Bash(ls:*)\n- ✅ Bash(grep:*), Bash(wc:*), Bash(head:*)\n- ❌ Bash (wildcard not allowed per official patterns)\n\n**Tool Combination Examples**:\n- Git command: Read, Bash(git status:*), Bash(git diff:*)\n- Code generator: Read, Write, Edit\n- Discovery command: Bash(find:*), Bash(tree:*), Bash(grep:*)\n- Analysis command: Read, Grep, Task (launch agents)\n\nYour tools (comma-separated): ___\"\n\n---\n\n### Question 4: Agent Integration\n\n\"Does this command need to launch agents for specialized tasks?\n\nExamples of when to use agents:\n- Complex analysis (launch rr-architect, rr-security)\n- Implementation tasks (launch rr-frontend, rr-backend)\n- Quality checks (launch rr-qa, rr-test-runner)\n\nOptions:\n1. **No agents** - Command handles everything itself\n2. **Launch agents** - Delegate to specialized agents\n\nYour choice (1 or 2): ___\"\n\nIf \"2\", ask: \"Which agents should it launch? ___\"\n\n---\n\n### Question 5: Output Type\n\n\"What type of output should this command produce?\n\n1. **Analysis** - Research report, insights, recommendations\n2. **Files** - Generated code, documentation, configs\n3. **Action** - Execute tasks, run workflows, deploy\n4. **Report** - Structured report with findings and next steps\n\nYour choice (1, 2, 3, or 4): ___\"\n\n---\n\n### Question 6: Model Preference (Optional)\n\n\"Which Claude model should this command use?\n\n1. **Default** - Inherit from main conversation (recommended)\n2. **Sonnet** - Best for complex tasks\n3. **Haiku** - Fastest, cheapest (for simple commands)\n4. **Opus** - Maximum capability (for critical tasks)\n\nYour choice (1, 2, 3, or 4) or press Enter for default: ___\"\n\n---\n\n### Question 7: Additional Features (Optional)\n\n\"Any special features?\n\nOptional features:\n- **Bash execution** - Run shell commands and include output (!`command`)\n- **File references** - Include file contents (@file.txt)\n- **Context gathering** - Read project files for context\n\nFeatures you need (comma-separated) or press Enter to skip: ___\"\n\n---\n\n## Generation Process\n\nAfter collecting answers:\n\n1. **Generate YAML Frontmatter**:\n```yaml\n---\ndescription: [From command purpose]\nargument-hint: [If $ARGUMENTS needed]\nallowed-tools: [From tool selection]\nmodel: [If specified]\n---\n```\n\n2. **Generate Command Body**:\n```markdown\n[Purpose-specific instructions]\n\n[If uses agents]:\n1. **Launch [agent-name]** with [specific task]\n2. Coordinate workflow\n3. Validate results\n\n[If uses bash]:\n- Context: !`bash command`\n\n[If uses file refs]:\n- Review: @file.txt\n\nSuccess Criteria: [Based on output type]\n```\n\n3. **Create Folder Structure**:\n```\ngenerated-commands/[command-name]/\n├── [command-name].md    # Command file (ROOT)\n├── README.md            # Installation guide (ROOT)\n├── TEST_EXAMPLES.md     # Testing examples (ROOT)\n└── [folders if needed]  # standards/, examples/, scripts/\n```\n\n4. **Validate Format**:\n- ✅ YAML frontmatter valid\n- ✅ $ARGUMENTS syntax correct (if used)\n- ✅ allowed-tools format proper\n- ✅ Folder organization clean\n\n5. **Provide Installation Instructions**:\n```\nYour command is ready!\n\nOutput location: generated-commands/[command-name]/\n\nTo install:\n1. Copy the command file:\n   cp generated-commands/[command-name]/[command-name].md .claude/commands/\n\n2. Restart Claude Code (if already running)\n\n3. Test:\n   /[command-name] [arguments]\n```\n\n---\n\n## Preset Command Details\n\n### 1. /research-business\n\n**Purpose**: Comprehensive business and market research\n\n**Arguments**: `$ARGUMENTS` (company or market to research)\n\n**YAML**:\n```yaml\n---\ndescription: Comprehensive business and market research with competitor analysis\nargument-hint: [company/market] [industry]\nallowed-tools: Read, Bash, Grep\n---\n```\n\n**What it does**:\n- Market size and trends analysis\n- Competitor SWOT analysis\n- Opportunity identification\n- Industry landscape overview\n- Strategic recommendations\n\n---\n\n### 2. /research-content\n\n**Purpose**: Multi-platform content trend analysis\n\n**Arguments**: `$ARGUMENTS` (topic to research)\n\n**YAML**:\n```yaml\n---\ndescription: Multi-platform content trend analysis for data-driven content strategy\nargument-hint: [topic] [platforms]\nallowed-tools: Read, Bash\n---\n```\n\n**What it does**:\n- Analyze trends across Google, Reddit, YouTube, Medium, LinkedIn, X\n- User intent analysis (informational, commercial, transactional)\n- Content gap identification\n- SEO-optimized outline generation\n- Platform-specific publishing strategies\n\n---\n\n### 3. /medical-translate\n\n**Purpose**: Translate medical terminology to patient-friendly language\n\n**Arguments**: `$ARGUMENTS` (medical term and language)\n\n**YAML**:\n```yaml\n---\ndescription: Translate medical terminology to 8th-10th grade reading level (German/English)\nargument-hint: [medical-term] [de|en]\nallowed-tools: Read\n---\n```\n\n**What it does**:\n- Translate complex medical terms\n- Simplify to 8th-10th grade reading level\n- Validate with Flesch-Kincaid (EN) or Wiener Sachtextformel (DE)\n- Preserve clinical accuracy\n- Provide patient-friendly explanations\n\n---\n\n### 4. /compliance-audit\n\n**Purpose**: Check code for regulatory compliance\n\n**Arguments**: `$ARGUMENTS` (path and compliance standard)\n\n**YAML**:\n```yaml\n---\ndescription: Audit code for HIPAA/GDPR/DSGVO compliance requirements\nargument-hint: [code-path] [hipaa|gdpr|dsgvo|all]\nallowed-tools: Read, Grep, Task\n---\n```\n\n**What it does**:\n- Scan for PHI/PII handling\n- Check encryption requirements\n- Verify audit logging\n- Validate data subject rights\n- Generate compliance report\n\n---\n\n### 5. /api-build\n\n**Purpose**: Generate complete API integration code\n\n**Arguments**: `$ARGUMENTS` (API name and endpoints)\n\n**YAML**:\n```yaml\n---\ndescription: Generate complete API client with error handling and tests\nargument-hint: [api-name] [endpoints]\nallowed-tools: Read, Write, Edit, Bash, Task\n---\n```\n\n**What it does**:\n- Generate API client classes\n- Add error handling and retries\n- Create authentication logic\n- Generate unit and integration tests\n- Add usage documentation\n\n---\n\n### 6. /test-auto\n\n**Purpose**: Auto-generate comprehensive test suites\n\n**Arguments**: `$ARGUMENTS` (file path and test type)\n\n**YAML**:\n```yaml\n---\ndescription: Auto-generate comprehensive test suite with coverage analysis\nargument-hint: [file-path] [unit|integration|e2e]\nallowed-tools: Read, Write, Bash\n---\n```\n\n**What it does**:\n- Analyze code to test\n- Generate test cases (happy path, edge cases, errors)\n- Add test fixtures and mocks\n- Calculate coverage\n- Provide testing documentation\n\n---\n\n### 7. /docs-generate\n\n**Purpose**: Automated documentation generation\n\n**Arguments**: `$ARGUMENTS` (code path and doc type)\n\n**YAML**:\n```yaml\n---\ndescription: Auto-generate documentation from code (API docs, README, architecture)\nargument-hint: [code-path] [api|readme|architecture|all]\nallowed-tools: Read, Write, Grep\n---\n```\n\n**What it does**:\n- Extract code structure and functions\n- Generate API documentation\n- Create README with usage examples\n- Build architecture diagrams (Mermaid)\n- Add code examples\n\n---\n\n### 8. /knowledge-mine\n\n**Purpose**: Extract structured insights from documents\n\n**Arguments**: `$ARGUMENTS` (document path and output format)\n\n**YAML**:\n```yaml\n---\ndescription: Extract and structure knowledge from documents into actionable insights\nargument-hint: [doc-path] [faq|summary|kb|all]\nallowed-tools: Read, Grep\n---\n```\n\n**What it does**:\n- Read and analyze documents\n- Extract key insights\n- Generate FAQs\n- Create knowledge base articles\n- Summarize findings\n\n---\n\n### 9. /workflow-analyze\n\n**Purpose**: Analyze and optimize business workflows\n\n**Arguments**: `$ARGUMENTS` (workflow description)\n\n**YAML**:\n```yaml\n---\ndescription: Analyze workflows and provide optimization recommendations\nargument-hint: [workflow-description]\nallowed-tools: Read, Task\n---\n```\n\n**What it does**:\n- Map current workflow\n- Identify bottlenecks\n- Suggest automation opportunities\n- Calculate efficiency gains\n- Create implementation roadmap\n\n---\n\n### 10. /batch-agents\n\n**Purpose**: Launch multiple coordinated agents\n\n**Arguments**: `$ARGUMENTS` (agent names and task)\n\n**YAML**:\n```yaml\n---\ndescription: Launch and coordinate multiple agents for complex tasks\nargument-hint: [agent-names] [task-description]\nallowed-tools: Task\n---\n```\n\n**What it does**:\n- Parse agent list\n- Launch agents in parallel (if safe) or sequential\n- Coordinate outputs\n- Integrate results\n- Provide comprehensive summary\n\n---\n\n## Output Structure\n\nCommands are generated in your project's root directory:\n\n```\n[your-project]/\n└── generated-commands/\n    └── [command-name]/\n        ├── [command-name].md      # Command file (ROOT level)\n        ├── README.md              # Installation guide (ROOT level)\n        ├── TEST_EXAMPLES.md       # Testing guide (ROOT level - if applicable)\n        │\n        ├── standards/             # Only if command has standards\n        ├── examples/              # Only if command has examples\n        └── scripts/               # Only if command has helper scripts\n```\n\n**Organization Rules**:\n- All .md files in ROOT directory\n- Supporting folders separate (standards/, examples/, scripts/)\n- No mixing of different types in same folder\n- Clean, hierarchical structure\n\n---\n\n## Installation\n\n**After generation**:\n\n1. **Review output**:\n   ```bash\n   ls generated-commands/[command-name]/\n   ```\n\n2. **Copy to Claude Code** (when ready):\n   ```bash\n   # Project-level (this project only)\n   cp generated-commands/[command-name]/[command-name].md .claude/commands/\n\n   # User-level (all projects)\n   cp generated-commands/[command-name]/[command-name].md ~/.claude/commands/\n   ```\n\n3. **Restart Claude Code** (if running)\n\n4. **Test command**:\n   ```bash\n   /[command-name] [arguments]\n   ```\n\n---\n\n## Usage Examples\n\n### Generate a Preset Command\n\n```\n@slash-command-factory\n\nUse the /research-business preset\n```\n\n**Output**: Complete business research command ready to install\n\n---\n\n### Generate a Custom Command\n\n```\n@slash-command-factory\n\nCreate a custom command for analyzing customer feedback and generating product insights\n```\n\n**Skill asks 5-7 questions** → **Generates complete command** → **Validates format** → **Provides installation steps**\n\n---\n\n## Command Format (What Gets Generated)\n\n**Example generated command** (`my-command.md`):\n\n```markdown\n---\ndescription: Brief description of what the command does\nargument-hint: [arg1] [arg2]\nallowed-tools: Read, Write, Bash\nmodel: claude-3-5-sonnet-20241022\n---\n\n# Command Instructions\n\nDo [task] with \"$ARGUMENTS\":\n\n1. **Step 1**: First action\n2. **Step 2**: Second action\n3. **Step 3**: Generate output\n\n**Success Criteria**:\n- Criterion 1\n- Criterion 2\n- Criterion 3\n```\n\n---\n\n## Validation\n\nEvery generated command is automatically validated for:\n- ✅ Valid YAML frontmatter (proper syntax, required fields)\n- ✅ Correct argument format ($ARGUMENTS, not $1 $2 $3)\n- ✅ allowed-tools syntax (comma-separated string)\n- ✅ Clean folder organization (if folders used)\n- ✅ No placeholder text\n\n**If validation fails**, you'll get specific fix instructions.\n\n---\n\n## Best Practices\n\n**For Command Design**:\n- Keep commands focused (one clear purpose)\n- Use descriptive names (kebab-case for files)\n- Document expected arguments clearly\n- Include success criteria\n- Add examples in TEST_EXAMPLES.md\n\n**For Tool Selection**:\n- Read: For analyzing files\n- Write/Edit: For generating/modifying files\n- Bash: For system commands, web research\n- Task: For launching agents\n- Grep/Glob: For searching code\n\n**For Agent Integration**:\n- Use Task tool to launch agents\n- Specify which agents clearly\n- Coordinate outputs\n- Document agent roles\n\n---\n\n## Important Notes\n\n**Arguments**:\n- ✅ Always use `$ARGUMENTS` (all arguments as one string)\n- ❌ Never use `$1`, `$2`, `$3` (positional - not used by this factory)\n\n**Folder Organization**:\n- ✅ All .md files in command root directory\n- ✅ Supporting folders separate (standards/, examples/, scripts/)\n- ✅ No mixing of different types\n\n**Output Location**:\n- Commands generate to: `./generated-commands/[command-name]/`\n- User copies to: `.claude/commands/[command-name].md` (when ready)\n\n---\n\n## Example Invocations\n\n### Use a Preset\n\n```\n@slash-command-factory\n\nGenerate the /research-content preset command\n```\n\n→ Creates content research command with all features\n\n---\n\n### Create Custom Healthcare Command\n\n```\n@slash-command-factory\n\nCreate a command that generates German PTV 10 therapy applications\n```\n\n**Skill asks**:\n- Purpose? (Generate PTV 10 applications)\n- Tools? (Read, Write, Task)\n- Agents? (Yes - health-sdk-builder related agents)\n- Output? (Files - therapy application documents)\n- Model? (Sonnet - for quality)\n\n**Result**: `/generate-ptv10` command ready to use\n\n---\n\n### Create Business Intelligence Command\n\n```\n@slash-command-factory\n\nBuild a command for competitive SWOT analysis\n```\n\n**Skill asks 5-7 questions** → **Generates `/swot-analysis` command** → **Validates** → **Ready to install**\n\n---\n\n## Integration with Factory Agents\n\n**Works with**:\n- factory-guide (can delegate to this skill via prompts-guide pattern)\n- Existing slash commands (/build, /validate-output, etc.)\n\n**Complements**:\n- skills-guide (builds Skills)\n- prompts-guide (builds Prompts)\n- agents-guide (builds Agents)\n- slash-command-factory (builds Commands) ← This skill\n\n**Complete ecosystem** for building all Claude Code augmentations!\n\n---\n\n## Output Validation\n\nGenerated commands are validated for:\n\n**YAML Frontmatter**:\n- Has `description` field\n- Proper YAML syntax\n- Valid frontmatter fields only\n\n**Arguments**:\n- Uses $ARGUMENTS if needed\n- Has argument-hint if $ARGUMENTS used\n- No $1, $2, $3 positional args\n\n**Tools**:\n- Valid tool names\n- Proper comma-separated format\n- Appropriate for command purpose\n\n**Organization**:\n- .md files in root\n- Folders properly separated\n- No scattered files\n\n---\n\n## Success Criteria\n\nGenerated commands should:\n- ✅ Have valid YAML frontmatter\n- ✅ Use $ARGUMENTS (never positional)\n- ✅ Work when copied to .claude/commands/\n- ✅ Execute correctly with arguments\n- ✅ Produce expected output\n- ✅ Follow organizational standards\n\n---\n\n**Version**: 1.0.0\n**Last Updated**: October 28, 2025\n**Compatible**: Claude Code (all versions with slash command support)\n\n**Build powerful custom slash commands in minutes!** ⚡","author":"@alirezarezvani","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/alirezarezvani/claude-code-skill-factory/tree/dev/generated-skills/slash-command-factory","license":"MIT","category":"review","lang":"en","tokens":5884,"stars":0,"calls30d":1,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"command_generator.py","size":12633,"sha256":"8a7124a16f0b7c1a544e7bd936e63e4f6933b3d288d66540c43ac4a1de01274e"},{"path":"expected_output.json","size":1130,"sha256":"86caf2ef9df07c12d3df319447377837de2f2c8c88c511cc3605d51e8ec9f170"},{"path":"HOW_TO_USE.md","size":4431,"sha256":"1a15ae89bdc722def53da1ee8ec1520253d04f1f597e653b177eafde0e4a83d6"},{"path":"presets.json","size":25124,"sha256":"229db9be2d8d3c293fa941e4bf6758531c7fd1796681557682bd908c573f4289"},{"path":"sample_input.json","size":276,"sha256":"dd907039d588bae614827beeafe407afbc5145511269854a3f121a637135cfc7"},{"path":"validator.py","size":11158,"sha256":"81912d45b89c21069fe49b6c75f81dcaeef54339e4b92ca43fc6412a6b37e63e"}],"requires":{"mcp":[],"tools":[]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":true,"networkEndpoints":[]}}