SL

slash-command-factory

Interactive generator for creating structured, validated Claude Code slash commands.

Install

mkdir -p .claude/skills/slash-command-factory && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4306" && unzip -o skill.zip -d .claude/skills/slash-command-factory && rm skill.zip

Installs to .claude/skills/slash-command-factory

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

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.
334 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Asks guided questions to identify command parameters
  • Generates YAML frontmatter following Anthropic schemas
  • Automates folder structure creation for new commands
  • Validates command syntax against official patterns
  • Provides 10 reusable command templates

How it works

It runs a scripted interactive interview to collect user requirements and then applies them to pre-defined templates.

Inputs & outputs

You give it
5-7 task-specific questions answered via terminal prompts
You get back
Ready-to-use markdown command file in generated-commands/

When to use slash-command-factory

  • Automating documentation tasks
  • Standardizing code reviews
  • Creating custom business research commands

About this skill

Slash Command Factory

A comprehensive system for generating production-ready Claude Code slash commands through a simple question-based workflow.


What This Skill Does

This skill helps you create custom slash commands for Claude Code by:

  • Asking 5-7 straightforward questions about your command needs
  • Generating complete command .md files with proper YAML frontmatter
  • Providing 10 powerful preset commands for common use cases
  • Validating command format and syntax
  • Creating well-organized folder structures
  • Offering installation guidance

Output: Complete slash commands ready to use in Claude Code


Official Command Structure Patterns

This skill generates commands following three official patterns from Anthropic documentation:

Pattern A: Simple (Context → Task)

Best for: Straightforward tasks with clear input/output Example: Code review, file updates, simple analysis Official Reference: code-review.md

Structure:

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

  • Simple, focused tasks
  • Quick analysis or reviews
  • Straightforward workflows
  • 1-3 bash commands for context

Pattern B: Multi-Phase (Discovery → Analysis → Task)

Best for: Complex discovery and documentation tasks Example: Codebase analysis, comprehensive audits, system mapping Official Reference: codebase-analysis.md

Structure:

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

  • Comprehensive analysis needed
  • Multiple discovery phases
  • Large amounts of context gathering
  • 10+ bash commands for data collection
  • Generate detailed documentation files

Pattern C: Agent-Style (Role → Process → Guidelines)

Best for: Specialized expert roles and coordination Example: Domain experts, orchestrators, specialized advisors Official Reference: openapi-expert.md

Structure:

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

  • Need specialized domain expertise
  • Orchestrating complex workflows
  • Coordinating multiple sub-processes
  • Acting as expert advisor
  • Require specific procedural guidelines

Comprehensive Naming Convention

Command File Naming Rules

All slash command files MUST follow kebab-case convention:

Format: [verb]-[noun].md, [noun]-[verb].md, or [domain]-[action].md

Rules:

  1. Case: Lowercase only with hyphens as separators
  2. Length: 2-4 words maximum
  3. Characters: Only [a-z0-9-] allowed (letters, numbers, hyphens)
  4. Start/End: Must begin and end with letter or number (not hyphen)
  5. No: Spaces, underscores, camelCase, TitleCase, or special characters

Conversion Algorithm

User InputCommand 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.md

More Examples:

  • "Review pull requests" → pr-review.md or review-pr.md
  • "Generate API documentation" → api-document.md or document-api.md
  • "Update README files" → update-readme.md or readme-update.md
  • "Audit security compliance" → security-audit.md or compliance-audit.md
  • "Research market trends" → research-market.md or market-research.md
  • "Analyze code quality" → code-analyze.md or analyze-code.md

Official Examples (From Anthropic Docs)

Correct:

  • 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)

Bash Permission Patterns

Critical Rule: No Wildcards

❌ NEVER ALLOWED:

allowed-tools: Bash

This wildcard permission is prohibited per official Anthropic patterns.

✅ ALWAYS REQUIRED:

allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*)

Must specify exact commands with wildcards only for subcommands.


Official Permission Patterns

Based on Anthropic's documented examples:

Git Operations (code-review, update-docs):

allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*), Bash(git branch:*), Bash(git add:*), Bash(git commit:*)

File Discovery (codebase-analysis):

allowed-tools: Bash(find:*), Bash(tree:*), Bash(ls:*), Bash(du:*)

Content Analysis (comprehensive discovery):

allowed-tools: Bash(grep:*), Bash(wc:*), Bash(head:*), Bash(tail:*), Bash(cat:*)

Data Processing (custom analysis):

allowed-tools: Bash(awk:*), Bash(sed:*), Bash(sort:*), Bash(uniq:*)

Combined Patterns (multi-phase commands):

allowed-tools: Bash(find:*), Bash(tree:*), Bash(ls:*), Bash(grep:*), Bash(wc:*), Bash(du:*), Bash(head:*), Bash(tail:*), Bash(cat:*), Bash(touch:*)

Permission Selection Guide

Command TypeBash PermissionsExample Commands
Git Commandsgit status, git diff, git log, git branchcode-review, commit-assist
Discoveryfind, tree, ls, ducodebase-analyze, structure-map
Analysisgrep, wc, head, tail, catsearch-code, count-lines
Updategit diff, find, grepupdate-docs, sync-config
Data Processingawk, sed, sort, uniqparse-data, format-output
ComprehensiveAll of the abovefull-audit, system-analyze

Two Paths to Generate Commands

Path 1: Quick-Start Presets (30 seconds)

Choose from 10 powerful preset commands:

Business & Research:

  1. /research-business - Comprehensive market research and competitive analysis
  2. /research-content - Multi-platform content trend analysis and SEO strategy

Healthcare & Compliance: 3. /medical-translate - Translate medical terminology to 8th-10th grade (German/English) 4. /compliance-audit - HIPAA/GDPR/DSGVO compliance validation

Development & Integration: 5. /api-build - Generate complete API integration code with tests 6. /test-auto - Auto-generate comprehensive test suites

Documentation & Knowledge: 7. /docs-generate - Automated documentation creation 8. /knowledge-mine - Extract and structure insights from documents

Workflow & Productivity: 9. /workflow-analyze - Analyze and optimize business processes 10. /batch-agents - Launch and coordinate multiple agents for complex tasks

Path 2: Custom Command (5-7 Questions)

Create a completely custom command for your specific needs.


Question Flow (Custom Path)

Question 1: Command Purpose

"What should this slash command do?

Be specific about its purpose and when you'll use it.

Examples:

  • 'Analyze customer feedback and generate actionable insights'
  • 'Generate HIPAA-compliant API documentation'
  • 'Research market trends and create content strategy'
  • 'Extract key insights from research papers'

Your command's purpose: ___"


Question 2: Arguments (Auto-Determined)

The skill automatically determines if your command needs arguments based on the purpose.

If arguments are needed, they will use $ARGUMENTS format:

  • User types: /your-command argument1 argument2
  • Command receives: $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.


Question 3: Which Tools?

"Which Claude Code tools should this command use?

Available tools:

  • Read - Read files
  • Write - Create files
  • Edit - Modify files
  • Bash - Execute shell commands (MUST specify exact commands)
  • Grep - Search code
  • Glob - Find files by pattern
  • Task - Launch agents

CRITICAL: For Bash, you MUST specify exact commands, not wildcards.

Bash Examples:

  • ✅ Bash(git status:), Bash(git diff:), Bash(git log:*)
  • ✅ Bash(find:), Bash(tree:), Bash(ls:*)
  • ✅ Bash(grep:), Bash(wc:), Bash(head:*)
  • ❌ Bash (wildcard not allowed per official patterns)

Tool Combination Examples:

  • Git command: Read, Bash(git status:), Bash(git diff:)
  • Code generator: Read, Write, Edit
  • Discovery command: Bash(find:), Bash(tree:), Bash(grep:*)
  • Analysis command: Read, Grep, Task (launch agents)

Your tools (comma-sep


Content truncated.

When not to use it

  • Simple, one-off bash scripts that do not require reusable state
  • Environments without Claude Code CLI installed

Prerequisites

Claude Code

Limitations

  • Requires terminal-based interaction for the setup flow
  • Limited to predefined Anthropic command patterns

How it compares

Unlike writing prompts from scratch, this enforces correct YAML structure and official Claude Code patterns.

Compared to similar skills

slash-command-factory side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
slash-command-factory (this skill)19moReviewBeginner
command-development168moReviewIntermediate
skill-forge119moReviewIntermediate
codex-skill125moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

More by alirezarezvani

View all by alirezarezvani

ma-playbook

alirezarezvani

M&A strategy for acquiring companies or being acquired. Due diligence, valuation, integration, and deal structure. Use when evaluating acquisitions, preparing for acquisition, M&A due diligence, integration planning, or deal negotiation.

39122

ad-creative

alirezarezvani

When the user needs to generate, iterate, or scale ad creative for paid advertising. Use when they say 'write ad copy,' 'generate headlines,' 'create ad variations,' 'bulk creative,' 'iterate on ads,' 'ad copy validation,' 'RSA headlines,' 'Meta ad copy,' 'LinkedIn ad,' or 'creative testing.' This is pure creative production — distinct from paid-ads (campaign strategy). Use ad-creative when you need the copy, not the campaign plan.

3395

content-trend-researcher

alirezarezvani

Advanced content and topic research skill that analyzes trends across Google Analytics, Google Trends, Substack, Medium, Reddit, LinkedIn, X, blogs, podcasts, and YouTube to generate data-driven article outlines based on user intent analysis

30126

cold-email

alirezarezvani

When the user wants to write, improve, or build a sequence of B2B cold outreach emails to prospects who haven't asked to hear from them. Use when the user mentions 'cold email,' 'cold outreach,' 'prospecting emails,' 'SDR emails,' 'sales emails,' 'first touch email,' 'follow-up sequence,' or 'email prospecting.' Also use when they share an email draft that sounds too sales-y and needs to be humanized. Distinct from email-sequence (lifecycle/nurture to opted-in subscribers) — this is unsolicited outreach to new prospects. NOT for lifecycle emails, newsletters, or drip campaigns (use email-sequence).

2971

content-humanizer

alirezarezvani

Makes AI-generated content sound genuinely human — not just cleaned up, but alive. Use when content feels robotic, uses too many AI clichés, lacks personality, or reads like it was written by committee. Triggers: 'this sounds like AI', 'make it more human', 'add personality', 'it feels generic', 'sounds robotic', 'fix AI writing', 'inject our voice'. NOT for initial content creation (use content-production). NOT for SEO optimization (use content-production Mode 3).

2251

aws-solution-architect

alirezarezvani

Design AWS architectures for startups using serverless patterns and IaC templates. Use when asked to design serverless architecture, create CloudFormation templates, optimize AWS costs, set up CI/CD pipelines, or migrate to AWS. Covers Lambda, API Gateway, DynamoDB, ECS, Aurora, and cost optimization.

2047

You might also like

command-development

anthropics

This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.

16133

skill-forge

WilliamSaysX

Automated skill creation workshop with intelligent source detection, smart path management, and end-to-end workflow automation. This skill should be used when users want to create a new skill or convert external resources (GitHub repositories, online documentation, or local directories) into a skill. Automatically fetches, organizes, and packages skills with proactive cleanup management.

11115

codex-skill

feiskyer

Use when user asks to leverage codex, gpt-5, or gpt-5.1 to implement something (usually implement a plan or feature designed by Claude). Provides non-interactive automation mode for hands-off task execution without approval prompts.

12110

agent-factory

alirezarezvani

Claude Code agent generation system that creates custom agents and sub-agents with enhanced YAML frontmatter, tool access patterns, and MCP integration support following proven production patterns

8109

prpm-development

pr-pm

Use when developing PRPM (Prompt Package Manager) - comprehensive knowledge base covering architecture, format conversion, package types, collections, quality standards, testing, and deployment

6101

subagent-driven-development

davila7

Use when executing implementation plans with independent tasks in the current session

1493

Search skills

Search the agent skills registry