Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate custom Claude Code slash commands through intelligent 5-7 question flow. Creates powerful commands for business research, content analysis, healthcare compliance, API integration, documentation automation, and workflow optimization. Outputs organized commands to generated-commands/ with validation and installation guidance.
.claude/skills/alirezarezvani-slash-command-factory/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 160% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 307% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 276% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 682% | 0% |
A comprehensive system for generating production-ready Claude Code slash commands through a simple question-based workflow.
This skill helps you create custom slash commands for Claude Code by:
Output: Complete slash commands ready to use in Claude Code
This skill generates commands following three official patterns from Anthropic documentation:
Best for: Straightforward tasks with clear input/output Example: Code review, file updates, simple analysis Official Reference: code-review.md
Structure:
markdown--- allowed-tools: Bash(git diff:*), Bash(git log:*) description: Purpose description --- ## Context - Current state: !`bash command` - Additional data: !`another command` ## Your task [Clear instructions with numbered steps] [Success criteria]
When to use:
Best for: Complex discovery and documentation tasks Example: Codebase analysis, comprehensive audits, system mapping Official Reference: codebase-analysis.md
Structure:
markdown--- allowed-tools: Bash(find:*), Bash(tree:*), Bash(ls:*), Bash(grep:*), Bash(wc:*), Bash(du:*) description: Comprehensive purpose --- # Command Title ## Phase 1: Project Discovery ### Directory Structure !`find . -type d | sort` ### File Count Analysis !`find . -type f | wc -l` ## Phase 2: Detailed Analysis [More discovery commands] [File references with @] ## Phase 3: Your Task Based on all discovered information, create: 1. **Deliverable 1** - Subsection - Details 2. **Deliverable 2** - Subsection - Details At the end, write output to [filename].md
When to use:
Best for: Specialized expert roles and coordination Example: Domain experts, orchestrators, specialized advisors Official Reference: openapi-expert.md
Structure:
markdown--- name: command-name description: | Multi-line description for complex purpose explaining specialized role color: yellow --- You are a [specialized role] focusing on [domain expertise]. **Core Responsibilities:** 1. **Responsibility Area 1** - Specific tasks - Expected outputs 2. **Responsibility Area 2** - Specific tasks - Expected outputs **Working Process:** 1. [Step 1 in workflow] 2. [Step 2 in workflow] 3. [Step 3 in workflow] **Important Considerations:** - [Guideline 1] - [Guideline 2] - [Constraint or best practice] When you encounter [scenario], [action to take].
When to use:
All slash command files MUST follow kebab-case convention:
Format: [verb]-[noun].md, [noun]-[verb].md, or [domain]-[action].md
Rules:
[a-z0-9-] allowed (letters, numbers, hyphens)User Input → Command Name
Input: "Analyze customer feedback and generate insights"
↓
1. Extract action: "analyze"
2. Extract target: "feedback"
3. Combine: "analyze-feedback"
4. Validate: Matches [a-z0-9-]+ pattern ✓
5. Output: analyze-feedback.mdMore Examples:
pr-review.md or review-pr.mdapi-document.md or document-api.mdupdate-readme.md or readme-update.mdsecurity-audit.md or compliance-audit.mdresearch-market.md or market-research.mdcode-analyze.md or analyze-code.mdCorrect:
code-review.md (verb-noun)codebase-analysis.md (noun-noun compound)update-claude-md.md (verb-noun-qualifier)openapi-expert.md (domain-role)Incorrect:
code_review.md (snake_case - wrong)CodeReview.md (PascalCase - wrong)codeReview.md (camelCase - wrong)review.md (too vague - needs target)analyze-customer-feedback-data.md (too long - >4 words)❌ NEVER ALLOWED:
yamlallowed-tools: Bash
This wildcard permission is prohibited per official Anthropic patterns.
✅ ALWAYS REQUIRED:
yamlallowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*)
Must specify exact commands with wildcards only for subcommands.
Based on Anthropic's documented examples:
Git Operations (code-review, update-docs):
yamlallowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*), Bash(git branch:*), Bash(git add:*), Bash(git commit:*)
File Discovery (codebase-analysis):
yamlallowed-tools: Bash(find:*), Bash(tree:*), Bash(ls:*), Bash(du:*)
Content Analysis (comprehensive discovery):
yamlallowed-tools: Bash(grep:*), Bash(wc:*), Bash(head:*), Bash(tail:*), Bash(cat:*)
Data Processing (custom analysis):
yamlallowed-tools: Bash(awk:*), Bash(sed:*), Bash(sort:*), Bash(uniq:*)
Combined Patterns (multi-phase commands):
yamlallowed-tools: Bash(find:*), Bash(tree:*), Bash(ls:*), Bash(grep:*), Bash(wc:*), Bash(du:*), Bash(head:*), Bash(tail:*), Bash(cat:*), Bash(touch:*)
| Command Type | Bash Permissions | Example Commands | |--------------|------------------|------------------| | Git Commands | git status, git diff, git log, git branch | code-review, commit-assist | | Discovery | find, tree, ls, du | codebase-analyze, structure-map | | Analysis | grep, wc, head, tail, cat | search-code, count-lines | | Update | git diff, find, grep | update-docs, sync-config | | Data Processing | awk, sed, sort, uniq | parse-data, format-output | | Comprehensive | All of the above | full-audit, system-analyze |
Choose from 10 powerful preset commands:
Business & Research:
Healthcare & Compliance:
Development & Integration:
Documentation & Knowledge:
Workflow & Productivity:
Create a completely custom command for your specific needs.
"What should this slash command do?
Be specific about its purpose and when you'll use it.
Examples:
Your command's purpose: ___"
The skill automatically determines if your command needs arguments based on the purpose.
If arguments are needed, they will use $ARGUMENTS format:
/your-command argument1 argument2$ARGUMENTS = "argument1 argument2"Examples:
/research-business "Tesla" "EV market" → $ARGUMENTS = "Tesla EV market"/medical-translate "Myokardinfarkt" "de" → $ARGUMENTS = "Myokardinfarkt de"No user input needed - skill decides intelligently.
"Which Claude Code tools should this command use?
Available tools:
CRITICAL: For Bash, you MUST specify exact commands, not wildcards.
Bash Examples:
Tool Combination Examples:
Your tools (comma-separated): ___"
"Does this command need to launch agents for specialized tasks?
Examples of when to use agents:
Options:
Your choice (1 or 2): ___"
If "2", ask: "Which agents should it launch? ___"
"What type of output should this command produce?
Your choice (1, 2, 3, or 4): ___"
"Which Claude model should this command use?
Your choice (1, 2, 3, or 4) or press Enter for default: ___"
"Any special features?
Optional features:
command)Features you need (comma-separated) or press Enter to skip: ___"
After collecting answers:
yaml--- description: [From command purpose] argument-hint: [If $ARGUMENTS needed] allowed-tools: [From tool selection] model: [If specified] ---
markdown[Purpose-specific instructions] [If uses agents]: 1. **Launch [agent-name]** with [specific task] 2. Coordinate workflow 3. Validate results [If uses bash]: - Context: !`bash command` [If uses file refs]: - Review: @file.txt Success Criteria: [Based on output type]
generated-commands/[command-name]/
├── [command-name].md # Command file (ROOT)
├── README.md # Installation guide (ROOT)
├── TEST_EXAMPLES.md # Testing examples (ROOT)
└── [folders if needed] # standards/, examples/, scripts/Your command is ready!
Output location: generated-commands/[command-name]/
To install:
1. Copy the command file:
cp generated-commands/[command-name]/[command-name].md .claude/commands/
2. Restart Claude Code (if already running)
3. Test:
/[command-name] [arguments]Purpose: Comprehensive business and market research
Arguments: $ARGUMENTS (company or market to research)
YAML:
yaml--- description: Comprehensive business and market research with competitor analysis argument-hint: [company/market] [industry] allowed-tools: Read, Bash, Grep ---
What it does:
Purpose: Multi-platform content trend analysis
Arguments: $ARGUMENTS (topic to research)
YAML:
yaml--- description: Multi-platform content trend analysis for data-driven content strategy argument-hint: [topic] [platforms] allowed-tools: Read, Bash ---
What it does:
Purpose: Translate medical terminology to patient-friendly language
Arguments: $ARGUMENTS (medical term and language)
YAML:
yaml--- description: Translate medical terminology to 8th-10th grade reading level (German/English) argument-hint: [medical-term] [de|en] allowed-tools: Read ---
What it does:
Purpose: Check code for regulatory compliance
Arguments: $ARGUMENTS (path and compliance standard)
YAML:
yaml--- description: Audit code for HIPAA/GDPR/DSGVO compliance requirements argument-hint: [code-path] [hipaa|gdpr|dsgvo|all] allowed-tools: Read, Grep, Task ---
What it does:
Purpose: Generate complete API integration code
Arguments: $ARGUMENTS (API name and endpoints)
YAML:
yaml--- description: Generate complete API client with error handling and tests argument-hint: [api-name] [endpoints] allowed-tools: Read, Write, Edit, Bash, Task ---
What it does:
Purpose: Auto-generate comprehensive test suites
Arguments: $ARGUMENTS (file path and test type)
YAML:
yaml--- description: Auto-generate comprehensive test suite with coverage analysis argument-hint: [file-path] [unit|integration|e2e] allowed-tools: Read, Write, Bash ---
What it does:
Purpose: Automated documentation generation
Arguments: $ARGUMENTS (code path and doc type)
YAML:
yaml--- description: Auto-generate documentation from code (API docs, README, architecture) argument-hint: [code-path] [api|readme|architecture|all] allowed-tools: Read, Write, Grep ---
What it does:
Purpose: Extract structured insights from documents
Arguments: $ARGUMENTS (document path and output format)
YAML:
yaml--- description: Extract and structure knowledge from documents into actionable insights argument-hint: [doc-path] [faq|summary|kb|all] allowed-tools: Read, Grep ---
What it does:
Purpose: Analyze and optimize business workflows
Arguments: $ARGUMENTS (workflow description)
YAML:
yaml--- description: Analyze workflows and provide optimization recommendations argument-hint: [workflow-description] allowed-tools: Read, Task ---
What it does:
Purpose: Launch multiple coordinated agents
Arguments: $ARGUMENTS (agent names and task)
YAML:
yaml--- description: Launch and coordinate multiple agents for complex tasks argument-hint: [agent-names] [task-description] allowed-tools: Task ---
What it does:
Commands are generated in your project's root directory:
[your-project]/
└── generated-commands/
└── [command-name]/
├── [command-name].md # Command file (ROOT level)
├── README.md # Installation guide (ROOT level)
├── TEST_EXAMPLES.md # Testing guide (ROOT level - if applicable)
│
├── standards/ # Only if command has standards
├── examples/ # Only if command has examples
└── scripts/ # Only if command has helper scriptsOrganization Rules:
After generation:
bash ls generated-commands/[command-name]/
bash # Project-level (this project only) cp generated-commands/command-name]/command-name].md .claude/commands/
# User-level (all projects) cp generated-commands/command-name]/command-name].md ~/.claude/commands/
bash /[command-name] [arguments]
@slash-command-factory
Use the /research-business presetOutput: Complete business research command ready to install
@slash-command-factory
Create a custom command for analyzing customer feedback and generating product insightsSkill asks 5-7 questions → Generates complete command → Validates format → Provides installation steps
Example generated command (my-command.md):
markdown--- description: Brief description of what the command does argument-hint: [arg1] [arg2] allowed-tools: Read, Write, Bash model: claude-3-5-sonnet-20241022 --- # Command Instructions Do [task] with "$ARGUMENTS": 1. **Step 1**: First action 2. **Step 2**: Second action 3. **Step 3**: Generate output **Success Criteria**: - Criterion 1 - Criterion 2 - Criterion 3
Every generated command is automatically validated for:
If validation fails, you'll get specific fix instructions.
For Command Design:
For Tool Selection:
For Agent Integration:
Arguments:
$ARGUMENTS (all arguments as one string)$1, $2, $3 (positional - not used by this factory)Folder Organization:
Output Location:
./generated-commands/[command-name]/.claude/commands/[command-name].md (when ready)@slash-command-factory
Generate the /research-content preset command→ Creates content research command with all features
@slash-command-factory
Create a command that generates German PTV 10 therapy applicationsSkill asks:
Result: /generate-ptv10 command ready to use
@slash-command-factory
Build a command for competitive SWOT analysisSkill asks 5-7 questions → Generates /swot-analysis command → Validates → Ready to install
Works with:
Complements:
Complete ecosystem for building all Claude Code augmentations!
Generated commands are validated for:
YAML Frontmatter:
description fieldArguments:
Tools:
Organization:
Generated commands should:
Version: 1.0.0 Last Updated: October 28, 2025 Compatible: Claude Code (all versions with slash command support)
Build powerful custom slash commands in minutes! ⚡
Other measured skills in the registry, with their headline benchmark lift.