Skip to content

Instantly share code, notes, and snippets.

@alirezarezvani
Last active October 29, 2025 09:26
Show Gist options
  • Select an option

  • Save alirezarezvani/69a40cbe6d4cdce35b82a8846d3a78de to your computer and use it in GitHub Desktop.

Select an option

Save alirezarezvani/69a40cbe6d4cdce35b82a8846d3a78de to your computer and use it in GitHub Desktop.
Slash Command Factory - Generate Custom Claude Code Commands in Minutes | 10 Powerful Presets | Business Research | Content Analysis | Healthcare Compliance | API Automation | Test Generation | Documentation Automation | Workflow Optimization | Claude Code Productivity | Custom Command Generator

Slash Command Factory - Generate Custom Claude Code Slash Commands in Minutes

Build powerful slash commands for Claude Code through simple conversation - 10 ready-to-use presets + custom generation for business research, healthcare compliance, development automation, and workflow optimization.

Keywords: Claude Code, Slash Commands, Claude AI, Command Generation, Business Research Commands, Content Analysis, Healthcare Compliance, API Automation, Test Automation, Documentation Generation, Workflow Optimization, Claude Code Automation, Custom Commands, Productivity Tools, Development Automation

Repository: claude-code-skills-factory Download: slash-command-factory.zip (18KB)


🎯 What is Slash Command Factory?

A Claude Skills that generates custom slash commands for Claude Code through a simple 5-7 question workflow.

Generate commands for:

  • Business intelligence and market research
  • Content analysis and SEO strategy
  • Healthcare compliance (HIPAA/GDPR/DSGVO)
  • API integration and development
  • Test automation
  • Documentation generation
  • Knowledge extraction
  • Workflow optimization
  • Multi-agent coordination

⚑ Quick Start (30 Seconds)

Use a preset:

@slash-command-factory

Use the /research-business preset

β†’ Instant business research command generated β†’ Ready to install and use

Create custom:

@slash-command-factory

Create a command for analyzing customer feedback

β†’ Answer 5-7 questions β†’ Complete custom command generated


πŸ“‹ 10 Powerful Preset Commands

Business Intelligence

1. /research-business - Market Research & Competitive Analysis

---
description: Comprehensive business and market research with competitor analysis
argument-hint: [company/market] [industry]
allowed-tools: Read, Bash, Grep
---

What it does:

  • Market size, trends, dynamics analysis
  • Competitor SWOT analysis (top 3-5 competitors)
  • Opportunity identification (gaps, innovation)
  • Strategic recommendations with action items
  • Risk assessment

Usage: /research-business "Tesla" "EV market"


2. /research-content - Multi-Platform Content Trend Analysis

---
description: Multi-platform content trend analysis for data-driven strategy
argument-hint: [topic] [platforms]
allowed-tools: Read, Bash
---

What it does:

  • Analyze trends across 10+ platforms (Google, Reddit, YouTube, Medium, LinkedIn, X, Substack, blogs)
  • User intent analysis (informational, commercial, transactional)
  • Content gap identification
  • SEO-optimized outline generation
  • Platform-specific publishing strategies

Usage: /research-content "AI automation tools" "google reddit youtube"


Healthcare & Compliance

3. /medical-translate - Medical Terminology Translation

---
description: Translate medical terms to 8th-10th grade (German/English)
argument-hint: [medical-term] [de|en]
allowed-tools: Read
model: claude-3-5-sonnet-20241022
---

What it does:

  • Translate complex medical terminology
  • Simplify to 8th-10th grade reading level
  • Validate with Flesch-Kincaid (English) or Wiener Sachtextformel (German)
  • Preserve clinical accuracy
  • Patient empowerment through health literacy

Usage:

  • /medical-translate "Myokardinfarkt" "de" β†’ German patient-friendly explanation
  • /medical-translate "Hypertrophic cardiomyopathy" "en" β†’ English 8th grade explanation

4. /compliance-audit - Regulatory Compliance Validation

---
description: Audit code for HIPAA/GDPR/DSGVO compliance
argument-hint: [code-path] [hipaa|gdpr|dsgvo|all]
allowed-tools: Read, Grep, Task
---

What it does:

  • HIPAA: PHI handling, encryption, audit logging, breach notification
  • GDPR/DSGVO: Data minimization, consent, data subject rights, retention
  • Generate compliance report (compliant areas, violations, recommendations)
  • Priority actions (P0/P1/P2)

Usage: /compliance-audit "src/patient-data/" "hipaa"


Development & Integration

5. /api-build - Complete API Client Generation

---
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:

  • API client class with authentication (API key, OAuth, JWT)
  • Endpoint methods with type hints and validation
  • Error handling (network errors, HTTP errors, rate limits, retries)
  • Unit and integration tests (>80% coverage)
  • Complete documentation (README, API reference, setup guide)

Usage: /api-build "Stripe" "customers payments invoices"


6. /test-auto - Test Suite Automation

---
description: Auto-generate comprehensive test suite with coverage
argument-hint: [file-path] [unit|integration|e2e|all]
allowed-tools: Read, Write, Bash
---

What it does:

  • Analyze code to test
  • Generate test cases (happy path, edge cases, errors, integration)
  • Test implementation with appropriate framework
  • Coverage analysis (target >80%)
  • Test documentation

Usage: /test-auto "src/payment-processor.py" "all"


Documentation & Knowledge

7. /docs-generate - Documentation Automation

---
description: Auto-generate documentation (API docs, README, architecture)
argument-hint: [code-path] [api|readme|architecture|all]
allowed-tools: Read, Write, Grep
---

What it does:

  • API documentation (function signatures, parameters, examples)
  • README (overview, installation, quick start, usage)
  • Architecture diagrams (Mermaid, data flows, tech stack)
  • Code examples and best practices

Usage: /docs-generate "src/api/" "all"


8. /knowledge-mine - Insight Extraction

---
description: Extract insights from documents into FAQs, summaries, KB articles
argument-hint: [doc-path] [faq|summary|kb|all]
allowed-tools: Read, Grep
---

What it does:

  • Document analysis (topics, themes, concepts)
  • FAQ generation
  • Executive summaries
  • Knowledge base articles
  • Structured, searchable output

Usage: /knowledge-mine "docs/research-papers/" "all"


Workflow & Productivity

9. /workflow-analyze - Process Optimization

---
description: Analyze workflows and provide optimization recommendations
argument-hint: [workflow-description]
allowed-tools: Read, Task
---

What it does:

  • Current state mapping (steps, stakeholders, handoffs)
  • Bottleneck identification (manual steps, redundancies, delays)
  • Optimization opportunities (automation, simplification)
  • Impact analysis (time savings, cost reduction, ROI)
  • Implementation roadmap (quick wins, short-term, long-term)

Usage: /workflow-analyze "Customer onboarding process"


10. /batch-agents - Multi-Agent Coordination

---
description: Launch and coordinate multiple agents for complex tasks
argument-hint: [agent-names] [task-description]
allowed-tools: Task
---

What it does:

  • Parse and validate agent list
  • Determine execution strategy (parallel/sequential based on agent types)
  • Launch agents (max 5) with appropriate coordination
  • Integrate results
  • Comprehensive summary

Usage: /batch-agents "rr-architect rr-security rr-performance" "Analyze system for production readiness"


πŸš€ How It Works

Preset Path (30 seconds)

@slash-command-factory
Use the /research-business preset

Output:

generated-commands/research-business/
β”œβ”€β”€ research-business.md      # The command file
└── README.md                 # Installation guide

Install:

cp generated-commands/research-business/research-business.md .claude/commands/

Use:

/research-business "OpenAI" "AI/ML market"

Custom Path (2-3 minutes)

@slash-command-factory
Create a command for competitive SWOT analysis

Questions (5-7 total):

  1. Purpose: Competitive SWOT analysis
  2. Tools: Read, Bash, Grep (auto-determined: needs $ARGUMENTS)
  3. Agents: No
  4. Output: Analysis
  5. Model: Default
  6. Features: None

Output:

generated-commands/competitive-swot/
β”œβ”€β”€ competitive-swot.md
└── README.md

πŸ“ Output Structure

Simple command:

generated-commands/[command-name]/
β”œβ”€β”€ [command-name].md         # Command file (ROOT)
└── README.md                 # Install guide (ROOT)

Complex command (with supporting files):

generated-commands/[command-name]/
β”œβ”€β”€ [command-name].md         # Command (ROOT - no mixing)
β”œβ”€β”€ README.md                 # Install (ROOT)
β”œβ”€β”€ TEST_EXAMPLES.md         # Testing (ROOT)
β”œβ”€β”€ standards/                # Standards folder (separate)
β”œβ”€β”€ examples/                 # Examples folder (separate)
└── scripts/                  # Scripts folder (separate)

Organization Rules:

  • βœ… All .md files in ROOT directory
  • βœ… Supporting folders separate (standards/, examples/, scripts/)
  • βœ… NO mixing of different types
  • βœ… Hierarchical, clean structure

🎨 Generated Command Format

Example (research-business.md):

---
description: Comprehensive business and market research with competitor analysis
argument-hint: [company/market] [industry]
allowed-tools: Read, Bash, Grep
disable-model-invocation: false
---

Conduct comprehensive business research for "$ARGUMENTS":

1. **Market Analysis**:
   - Market size, growth trends, dynamics
   - Key players and market share
   - Emerging trends and outlook
   - Regulatory environment

2. **Competitive Analysis**:
   - Direct and indirect competitors
   - SWOT analysis for top 3-5 competitors
   - Competitive positioning
   - Pricing strategies

3. **Opportunity Identification**:
   - Market gaps
   - Innovation opportunities
   - Strategic recommendations
   - Risk assessment

4. **Deliverable**:
   - Executive summary (2-3 pages)
   - Detailed market analysis
   - Competitor profiles
   - Strategic recommendations

**Success Criteria**:
- Comprehensive market overview with data-driven insights
- Actionable competitive intelligence
- Clear strategic recommendations with prioritization

πŸ’‘ Real-World Use Cases

Startup Founder - Market Research

Challenge: Need to research EV charging market for investor deck

Solution:

@slash-command-factory
Use /research-business preset

# Generated: research-business.md
# Install: Copy to .claude/commands/

# Use:
/research-business "EV charging stations" "USA Europe"

# Result: Comprehensive market analysis in 5 minutes
# - Market size: $X billion, growing Y%
# - Top competitors: ChargePoint, EVgo, Tesla
# - Opportunities: Fleet charging, apartments, highways
# - Strategic recommendations: Focus on [segment]

Time saved: 8+ hours of manual research β†’ 5 minutes automated


Healthcare Startup - Patient Education

Challenge: Make medical information accessible to patients

Solution:

@slash-command-factory
Use /medical-translate preset

# Install to .claude/commands/

# Use:
/medical-translate "Atrial fibrillation" "en"

# Result:
Original: Atrial fibrillation
Simple: Irregular heartbeat
Explanation (Grade 8.2): "Your heart beats in an irregular pattern instead
of a steady rhythm. The top chambers quiver instead of pumping properly."

Impact: Patients understand their conditions β†’ better health outcomes


Software Team - API Integration

Challenge: Integrate with Stripe API, need client code

Solution:

@slash-command-factory
Use /api-build preset

# Use:
/api-build "Stripe" "customers subscriptions invoices"

# Generated in 10 minutes:
- Complete API client (authentication, error handling)
- Methods for all endpoints (type hints, validation)
- Unit tests (mocked) + integration tests
- Documentation (README, API reference)
- >80% test coverage

# vs Manual: 2-3 days of development

Time saved: 2-3 days β†’ 10 minutes (99% reduction)


Content Creator - SEO Strategy

Challenge: Create content strategy for "remote work tools"

Solution:

@slash-command-factory
Use /research-content preset

# Use:
/research-content "remote work tools" "all"

# Result:
Platform Analysis:
- Google: 10K/month searches, rising
- Reddit: r/remotework (500K members), top discussions
- YouTube: "best remote work tools" (2M views)
- Medium: Collaboration tools trending

Content Gaps:
- "Remote work tools for healthcare" (low competition, high demand)
- "Async communication best practices" (underserved)

SEO Outline:
H1: Best Remote Work Tools for Healthcare Teams in 2025
H2: Communication Tools (Slack alternatives)
H2: Project Management (HIPAA-compliant)
H2: Security Considerations

Platform Strategy:
- LinkedIn: Professional insights, case studies
- YouTube: Tool comparisons, tutorials
- Blog: In-depth guides, SEO-optimized

Result: Data-driven content strategy in 5 minutes


Compliance Officer - HIPAA Audit

Challenge: Ensure codebase is HIPAA compliant before launch

Solution:

@slash-command-factory
Use /compliance-audit preset

# Use:
/compliance-audit "src/patient-portal/" "hipaa"

# Report Generated:
βœ… Compliant:
- Encryption: AES-256 at rest, TLS 1.2 in transit
- Audit logging: All PHI access tracked

❌ Non-Compliant (P0):
- Missing: Automatic session timeout
- Missing: Breach notification procedures

⚠️ Recommendations (P1):
- Implement: Data minimization in user forms
- Add: BAA with third-party services

Action Plan:
1. Fix P0 issues immediately (2-3 hours)
2. Implement P1 within sprint (1 week)

Impact: HIPAA compliance before launch β†’ avoid $50K+ fines


πŸ”§ Technical Details

YAML Frontmatter (Anthropic Standard)

Every generated command includes:

---
description: What the command does
argument-hint: [arg1] [arg2] (if $ARGUMENTS used)
allowed-tools: Tool1, Tool2 (comma-separated)
model: claude-3-5-sonnet-20241022 (optional)
disable-model-invocation: false
---

Arguments

Always $ARGUMENTS (never $1, $2, $3):

# User types
/my-command arg1 arg2 arg3

# Command receives
$ARGUMENTS = "arg1 arg2 arg3"

Example:

Do task for "$ARGUMENTS":
1. Parse arguments
2. Execute task
3. Return results

Folder Organization

All .md files in ROOT:

  • [command-name].md - The command
  • README.md - Installation guide
  • TEST_EXAMPLES.md - Testing guide

Supporting folders separate:

  • standards/ - Standards and guidelines
  • examples/ - Example files
  • scripts/ - Helper scripts

NO mixing - Clean, hierarchical structure


πŸ“š Installation

Claude Code

# Install skill
cp -r slash-command-factory ~/.claude/skills/

# Or import ZIP in Claude Desktop
# File: slash-command-factory.zip (18KB)

Generate Your First Command

@slash-command-factory

Use the /research-business preset

β†’ Command generated in generated-commands/research-business/

Install Generated Command

# Project-level (this project only)
cp generated-commands/research-business/research-business.md .claude/commands/

# User-level (all projects)
cp generated-commands/research-business/research-business.md ~/.claude/commands/

Use Your Command

/research-business "Your Company" "Your Industry"

🎯 SEO & Answer Engine Keywords

Claude Code Automation: Custom slash commands, Claude Code commands, command generation, productivity automation, workflow commands

Business Research: Market research automation, competitive analysis tools, business intelligence commands, SWOT analysis automation, market research AI

Content Strategy: Content research automation, SEO strategy tools, multi-platform analysis, content gap analysis, trend research automation

Healthcare Technology: Medical terminology translation, HIPAA compliance automation, GDPR healthcare tools, patient education automation, health literacy tools

Development Automation: API client generation, test automation tools, documentation automation, code generation, development productivity

Compliance Tools: HIPAA audit automation, GDPR compliance checker, regulatory compliance tools, data protection audit

Workflow Optimization: Business process analysis, workflow automation, efficiency optimization, process improvement tools

Knowledge Management: Knowledge extraction tools, document analysis automation, FAQ generation, insight mining


🌟 Why This Matters

Problem: Manual Command Creation is Tedious

Traditional approach:

  • Write YAML frontmatter manually
  • Figure out proper argument syntax
  • Test command format
  • Debug YAML errors
  • Organize files manually
  • Time: 30-60 minutes per command

With Slash Command Factory:

  • Choose preset or answer 5-7 questions
  • Automatic YAML generation
  • Validation built-in
  • Clean folder organization
  • Time: 30 seconds (preset) or 2-3 minutes (custom)

Time savings: 95-98% reduction


Benefits

For Developers:

  • βœ… Build custom automation in minutes
  • βœ… 10 ready-to-use powerful commands
  • βœ… No YAML syntax errors (validated)
  • βœ… Clean, organized output

For Business Users:

  • βœ… Research automation (/research-business, /research-content)
  • βœ… Workflow optimization (/workflow-analyze)
  • βœ… Knowledge extraction (/knowledge-mine)

For Healthcare:

  • βœ… Patient communication (/medical-translate)
  • βœ… Compliance automation (/compliance-audit)
  • βœ… HIPAA/GDPR validation

For Teams:

  • βœ… Standardized commands
  • βœ… Share via git (.claude/commands/)
  • βœ… Consistent workflows

πŸ”— Part of Complete Factory Ecosystem

Claude Code Skills Factory provides 4 generation systems:

  1. Skills Factory - Multi-file capabilities (SKILL.md + Python + samples)
  2. Agents Factory - Subagents for workflows (.md files)
  3. Prompt Factory - Mega-prompts for any LLM (69 presets)
  4. Slash Command Factory - Slash commands for automation (10 presets) ← NEW!

Plus:

  • 4 Interactive navigation agents (orchestrator + 3 specialists)
  • 5 Workflow slash commands (/build, /validate-output, /install-skill, /test-factory, /factory-status)

Complete toolkit for Claude Code customization!


πŸ“– Documentation

Main Repository:

Related Gists:


πŸ’° Value Proposition

Time Savings:

  • Preset commands: 60 min β†’ 30 sec (99% reduction)
  • Custom commands: 60 min β†’ 2 min (97% reduction)

Quality Improvements:

  • βœ… Validated YAML (no syntax errors)
  • βœ… Consistent $ARGUMENTS usage
  • βœ… Clean folder organization
  • βœ… Best practices applied

Productivity Gains:

  • Business research: 8 hours β†’ 5 minutes
  • API integration: 2-3 days β†’ 10 minutes
  • Test generation: 4 hours β†’ 15 minutes
  • Documentation: 3 hours β†’ 10 minutes

πŸŽ“ Example Generated Command

Input: "Create command for customer feedback analysis"

Output (analyze-feedback.md):

---
description: Analyze customer feedback and generate actionable product insights
argument-hint: [feedback-source] [time-period]
allowed-tools: Read, Grep, Task
disable-model-invocation: false
---

Execute task: "$ARGUMENTS"

1. **Analyze Input**:
   - Gather relevant data
   - Identify key patterns
   - Extract insights

2. **Generate Analysis**:
   - Comprehensive findings
   - Data-driven insights
   - Recommendations

**Success Criteria**:
- Analysis completed successfully
- Quality standards met
- Output validated and ready to use

Installation:

cp generated-commands/analyze-feedback/analyze-feedback.md .claude/commands/

Usage:

/analyze-feedback "support-tickets.csv" "last-quarter"

βœ… Quality Standards

Every generated command:

  • βœ… Valid YAML frontmatter
  • βœ… Uses $ARGUMENTS (never positional)
  • βœ… Proper allowed-tools format
  • βœ… Clean folder organization
  • βœ… Validated before output
  • βœ… Installation instructions included
  • βœ… Testing examples provided

πŸš€ Getting Started

1. Download

# Clone repository
git clone https://github.com/alirezarezvani/claude-code-skills-factory.git

# Or download ZIP
# File: generated-skills/slash-command-factory.zip (18KB)

2. Install

Claude Desktop:

  • Import slash-command-factory.zip

Claude Code:

cp -r slash-command-factory ~/.claude/skills/

3. Generate Commands

@slash-command-factory

[Choose preset or create custom]

4. Install & Use

cp generated-commands/[name]/[name].md .claude/commands/
/[command-name] [arguments]

πŸ† Features Summary

Presets: 10 powerful, diverse commands Custom Generation: 5-7 question flow Arguments: Always $ARGUMENTS (consistent) Validation: YAML, arguments, organization Organization: Clean, hierarchical folders Output: User's project (generated-commands/) Installation: User-initiated, guided Quality: Enterprise-grade, validated


Build powerful Claude Code slash commands in minutes instead of hours! ⚑

Last Updated: October 29, 2025 Version: 1.0.0 License: MIT Author: Reza Rezvani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment