SL

slash-command-creator

Provides a framework for creating and organizing custom slash commands to trigger automated workflows.

Install

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

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

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.

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.
211 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Initialize new slash commands
  • Define command frontmatter and descriptions
  • Inject arguments into prompt templates
  • Execute shell commands with tool permissions
  • Reference file contents using @ syntax

How it works

Slash commands are defined as Markdown files with optional YAML frontmatter that Claude Code parses to execute prompts, shell commands, or file inclusions.

Inputs & outputs

You give it
Command name and scope
You get back
Markdown file in .claude/commands/ or ~/.claude/commands/

When to use slash-command-creator

  • Create new slash command
  • Update existing slash commands
  • Learn slash command syntax

About this skill

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.

$ARGUMENTS

File Locations

ScopePathShown as
Project.claude/commands/(project)
Personal~/.claude/commands/(user)

Namespacing

Organize commands in subdirectories:

  • .claude/commands/frontend/component.md/component shows "(project:frontend)"
  • ~/.claude/commands/backend/api.md/api shows "(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

FieldPurposeRequired
descriptionBrief description for /helpYes
allowed-toolsTools the command can useNo
argument-hintExpected arguments hintNo
modelSpecific model to useNo
disable-model-invocationPrevent SlashCommand tool invocationNo

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

  1. Identify the use case: What prompt do you repeat often?
  2. Choose scope: Project (shared) or personal (private)?
  3. Initialize: Run scripts/init_command.py <name>
  4. Edit: Update description and body
  5. Test: Run the command in Claude Code

When not to use it

  • Executing commands without explicit tool permissions
  • Handling complex logic that exceeds Markdown/YAML capabilities

Prerequisites

scripts/init_command.py

Limitations

  • Requires explicit allowed-tools configuration for shell execution
  • Limited to the project or user scope directories

How it compares

Unlike manual prompt repetition, this skill creates persistent, namespaced, and executable command shortcuts.

Compared to similar skills

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

SkillInstallsUpdatedSafetyDifficulty
slash-command-creator (this skill)18moReviewBeginner
changelog-automation82moReviewIntermediate
configured-agent58moReviewBeginner
plugin-settings26moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

changelog-automation

wshobson

Automate changelog generation from commits, PRs, and releases following Keep a Changelog format. Use when setting up release workflows, generating release notes, or standardizing commit conventions.

885

configured-agent

anthropics

This skill should be used when the user asks about "plugin settings", "store plugin configuration", "user-configurable plugin", ".local.md files", "plugin state files", "read YAML frontmatter", "per-project plugin settings", or wants to make plugin behavior configurable. Documents the .claude/plugin-name.local.md pattern for storing plugin-specific configuration with YAML frontmatter and markdown content.

585

plugin-settings

anthropics

This skill should be used when the user asks about "plugin settings", "store plugin configuration", "user-configurable plugin", ".local.md files", "plugin state files", "read YAML frontmatter", "per-project plugin settings", or wants to make plugin behavior configurable. Documents the .claude/plugin-name.local.md pattern for storing plugin-specific configuration with YAML frontmatter and markdown content.

217

skill-builder

ruvnet

Create new Claude Code Skills with proper YAML frontmatter, progressive disclosure structure, and complete directory organization. Use when you need to build custom skills for specific workflows, generate skill templates, or understand the Claude Skills specification.

45

skill-creator-doctor

ananddtyagi

Create, repair, maintain, and consolidate skills. This skill should be used when users want to create new skills, fix broken skills that won't load, diagnose skill system issues, maintain skill health, or consolidate duplicate/obsolete skills. Automatically detects and repairs common skill loading problems including missing registry entries, metadata format issues, and structural problems. Provides comprehensive skill ecosystem management including duplicate detection, merge workflows, and archival processes.

17

obsidian-core-workflow-a

jeremylongshore

Execute Obsidian primary workflow: note manipulation and vault operations. Use when implementing file operations, frontmatter handling, or programmatic note creation and modification. Trigger with phrases like "obsidian vault operations", "obsidian file manipulation", "obsidian note management".

04

Search skills

Search the agent skills registry