slash-command-creator
Skill438 starsChanged 7 months agoMITView on GitHub
Guide for creating Claude Code slash commands. Use when the user wants to create a new slash command, update an existing slash command, or asks about slash command syntax, frontmatter options, or best practices.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- dogank85/claude-skillstheir own version, first seen Oct 15, 2026
- tygwan/skillsword for word, first seen Nov 12, 2025
Other versions2 projects use a version of this.
Word for word · 1
- tygwan/skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 1
- dogank85/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- cc-usage-auditSkill
- commitSkill
- discord-messageSkill
- email-draftSkill
- gmailSkill
- google-calendarSkill
- hook-creatorSkill
- ideationSkill
- persuasion-reviewSkill
- plan-and-buildSkill
- shipSkill
- skill-creatorSkill
- subagent-creatorSkill
- transcribeSkill
- youtube-collectorSkill
- harness-starterSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create custom slash commands for Claude Code to automate frequently-used prompts.
- Distinctive: line 107
Edit: Update description and body
- Distinctive: line 108
Test: Run the command in Claude Code
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Slash Command Creator
Create custom slash commands for Claude Code to automate frequently-used prompts.
Quick Start
Initialize a new command:
scripts/init_command.py <command-name> [--scope project|personal]Command Structure
Slash commands are Markdown files with optional YAML frontmatter:
---
description: Brief description shown in /help
---
Your prompt instructions here.
$ARGUMENTSFile Locations
| Scope | Path | Shown as |
| Project | .claude/commands/ | (project) |
| Personal | ~/.claude/commands/ | (user) |
Namespacing
Organize commands in subdirectories:
.claude/commands/frontend/component.md→/componentshows "(project:frontend)"~/.claude/commands/backend/api.md→/apishows "(user:backend)"
Features
Arguments
All arguments - $ARGUMENTS:
Fix issue #$ARGUMENTS following our coding standards
# /fix-issue 123 → "Fix issue #123 following..."Positional - $1, $2, etc.:
Review PR #$1 with priority $2
# /review 456 high → "Review PR #456 with priority high"Bash Execution
Execute shell commands with ! prefix (requires allowed-tools in frontmatter):
---
allowed-tools: Bash(git status:*), Bash(git diff:*)
---
Current status: !`git status`
Changes: !`git diff HEAD`File References
Include file contents with @ prefix:
Review @src/utils/helpers.js for issues.
Compare @$1 with @$2.Frontmatter Options
| Field | Purpose | Required |
description | Brief description for /help | Yes |
allowed-tools | Tools the command can use | No |
argument-hint | Expected arguments hint | No |
model | Specific model to use | No |
disable-model-invocation | Prevent SlashCommand tool invocation | No |
See references/frontmatter.md for detailed reference.
Examples
See references/examples.md for complete examples including:
- Simple review/explain commands
- Commands with positional arguments
- Git workflow commands with bash execution
- Namespaced commands for frontend/backend
Creation Workflow
- Identify the use case: What prompt do you repeat often?
- Choose scope: Project (shared) or personal (private)?
- Initialize: Run
scripts/init_command.py <name> - Edit: Update description and body
- Test: Run the command in Claude Code
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

