slash-command-factory

slash-command-factory is a skill for Claude Code from alirezarezvani/claude-code-skill-factory. It costs 57 tokens per session (5,945 once invoked), scanned A, original, MIT.

A question-based generator for creating custom Claude Code slash commands. A slash command is a reusable instruction you run by typing a command such as `/review`.

In plain words
What is it for?
Use it to create commands for tasks such as code review, research, content analysis, API work, or documentation automation.
Why use it?
It removes the need to design the command format and installation layout from scratch. It also checks the generated command and gives setup guidance.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Good fit Use it to create commands for tasks such as code review, research, content analysis, API work, or documentation automation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alirezarezvani/claude-code-skill-factory/slash-command-factory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alirezarezvani/claude-code-skill-factory --skill slash-command-factory
Clone the repo
git clone --depth 1 https://github.com/alirezarezvani/claude-code-skill-factory

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for slash-command-factory

README.md
[![agentmods](https://agentmods.dev/badge/skills/alirezarezvani/claude-code-skill-factory/slash-command-factory.svg)](https://agentmods.dev/skills/alirezarezvani/claude-code-skill-factory/slash-command-factory)
Your own site
<a href="https://agentmods.dev/skills/alirezarezvani/claude-code-skill-factory/slash-command-factory"><img src="https://agentmods.dev/badge/skills/alirezarezvani/claude-code-skill-factory/slash-command-factory.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,945 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.05945
Opus 5 $0.00028 $0.02972
Sonnet 5 $0.00011 $0.01189
Haiku 4.5 $0.00006 $0.00594

Measured 8d ago against content hash 5e78a5c9bb1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

slash-command-factory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (command_generator.py, validator.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

generated-skills/slash-command-factory/SKILL.md · 1,007 lines

How it starts

The opening of the file, as written. The whole thing — 1,007 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 1,007 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 1,007 lines · 57 tokens per session scan A 5e78a5c9bb1e

Subscribe to this mod's changes

slash-command-factory is a skill published in the GitHub repository alirezarezvani/claude-code-skill-factory (859 stars, last pushed 9mo ago), licensed MIT. It adds 57 tokens to every session and 5,945 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

skill-builder

Automatically detect source types and build AI skills using Skill Seekers. Use when the user wants to create skills from documentation, repos, PDFs, videos, or other knowledge sources.

yusufkaraaslan/Skill_Seekers · 38 tokens

skill-builder

Automatically detect source types and build AI skills using Skill Seekers. Use when the user wants to create skills from documentation, repos, PDFs, videos, or other knowledge sources.

yusufkaraaslan/Skill_Seekers · 38 tokens

stuck

Diagnoses a broken course setup by reading the folder, so the student never has to describe the problem in English. Takes no argument. Reports which class they are on and which files are filled, then names one blocker and one fix: Claude Code opened at the wrong level, .claude/skills/ missing, skills not loading…

mshadmanrahman/claude-for-designers · 161 tokens

grill-me

Two modes, picked from the file you point it at. Contract mode grills a claude-contract.md line by line until every line is a thing Claude must always do or must never do, editing that file in place and creating nothing new. Brief mode interrogates a design brief until it has no soft spots left, then produces a…

mshadmanrahman/claude-for-designers · 103 tokens

information-architecture

Map the user journey first, then derive the screen inventory, navigation and hierarchy from it, flagging any screen that serves no journey step. Writes the four-part markdown plus an HTML diagram of the step-to-screen mapping. Use after the brief is settled and before tokens or UI.

mshadmanrahman/claude-for-designers · 60 tokens

design-tokens

Establish color, typography, spacing, radius and motion as named role-based tokens. Use before building any interface.

mshadmanrahman/claude-for-designers · 27 tokens