slash-command-factory
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.
npx skills add alirezarezvani/claude-code-skill-factory --skill slash-command-factory --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
This skill helps you create custom slash commands for Claude Code by asking 5-7 questions about your command needs, generating complete command markdown files with YAML frontmatter, offering 10 preset commands for common use cases, validating command format and syntax, creating organized folder structures, and providing installation guidance.
How it works
- It guides the user through a 5-7 question flow to determine the command purpose, required arguments, tool usage, agent integration, output type, model preference, and optional features.
- Based on answers, it generates YAML frontmatter and a command body with purpose-specific instructions, including optional agent launches and bash/file references if selected.
- It creates a folder structure under generated-commands/[command-name]/ with the root command file, installation README, and testing examples, then validates the generated format (YAML frontmatter, ARGUMENTS syntax, tools formatting) and provides installation instructions:
- Copy the command file: cp generated-commands/[command-name]/[command-name].md .claude/commands/
- Restart Claude Code (if already running)
- Test: /[command-name] [arguments]
- It includes preset commands such as /research-business, /research-content, /medical-translate, /compliance-audit, /api-build, /test-auto, /docs-generate, /knowledge-mine, /workflow-analyze, and /batch-agents, with specific descriptions and tool requirements.
When to use it
Use this skill when you want to generate a customized Claude Code slash command tailored to a specific business or research need, especially when you want a guided, repeatable process that also provides ready-to-use presets and installation guidance.
What it can touch
- Commands are generated with explicit tool usage as configured in the flow and presets (e.g., Read, Write, Edit, Bash, Grep, Glob, Task).
Caveats
- The skill outlines prescribed command structures and installation steps; actual outcomes depend on user input and adherence to the prescribed patterns.
# 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**: ```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
- What This Skill Does
- Official Command Structure Patterns
- Pattern A: Simple (Context → Task)
- Pattern B: Multi-Phase (Discovery → Analysis → Task)
- Pattern C: Agent-Style (Role → Process → Guidelines)
- Comprehensive Naming Convention
- Command File Naming Rules
- Conversion Algorithm
- Official Examples (From Anthropic Docs)
- Bash Permission Patterns
- Critical Rule: No Wildcards
- Official Permission Patterns
- Permission Selection Guide
- Two Paths to Generate Commands
ls generated-commands/[command-name]/ cp generated-commands/[command-name]/[command-name].md .claude/commands/ cp generated-commands/[command-name]/[command-name].md ~/.claude/commands/
What does the slash-command-factory skill do?
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.
How do I install it?
Run `npx skills add alirezarezvani/claude-code-skill-factory --skill slash-command-factory --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From alirezarezvani/claude-code-skill-factory, a repository with 839 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.