askill
slash-command-creator

slash-command-creatorSafety 90Repository

Author custom Claude Code slash commands as reusable Markdown prompt templates. Covers frontmatter configuration, argument handling, variable substitution, and workflow automation patterns. Invoke when designing new commands, debugging command syntax, or converting repetitive prompts into reusable shortcuts.

0 stars
1.2k downloads
Updated 2/7/2026

Package Files

Loading files...
SKILL.md

Slash Command Creator

Create effective Claude Code slash commands - reusable prompt templates stored as Markdown files.

Quick Reference

ScopeLocationLabel in /help
Project.claude/commands/*.md(project)
Personal~/.claude/commands/*.md(user)

File Structure

---
description: Brief description shown in /help
argument-hint: <required> [optional]
allowed-tools: Bash(git *), Read, Edit
model: claude-sonnet-4-20250514
disable-model-invocation: false
---

Your prompt template here with $ARGUMENTS or $1, $2, etc.

Variables

VariableDescriptionExample
$ARGUMENTSAll args as single string/cmd foo bar -> "foo bar"
$1, $2...Positional args/cmd foo bar -> $1="foo", $2="bar"
@path/fileInclude file contentsReview @src/main.py
`!command`Execute bash, include output`!git status`

Frontmatter Fields

FieldPurposeDefault
descriptionShown in /help, enables discoverabilityFirst line of prompt
argument-hintShows in autocompleteNone
allowed-toolsRestrict tool accessInherits from conversation
modelOverride modelInherits from conversation
disable-model-invocationPrevent auto-invocationfalse

Creation Process

  1. Identify the workflow - What repetitive task needs automation?
  2. Choose scope - Project-specific or personal?
  3. Design the prompt - Keep it focused on one task
  4. Add variables - Use $ARGUMENTS for flexibility
  5. Set frontmatter - Add description and hints
  6. Test and iterate - Refine based on usage

When to Use Slash Commands vs Skills

Use slash commands for:

  • Quick, single-file prompts
  • Frequent manual invocations
  • Simple templates and reminders
  • Team workflows in version control

Use Skills instead for:

  • Multi-file resources (scripts, references, assets)
  • Complex workflows with validation
  • Capabilities Claude should auto-discover
  • Detailed procedural knowledge

Best Practices

  1. Meaningful names - /review-pr not /rp
  2. Clear descriptions - Help discoverability in /help
  3. Single responsibility - One task per command
  4. Use argument hints - Guide users on expected input
  5. Version control - Check into git for team sharing
  6. Abstract patterns - Make commands reusable across scenarios

References

Consult these resources when creating slash commands:

  • examples.md - Read when you need complete working examples or want to show the user reference implementations. Covers git workflows, code review, documentation, testing, scaffolding, and utilities.

  • patterns.md - Read when implementing specific features: variable handling, file inclusion (@path), bash execution (`!cmd`), tool restrictions, multi-step workflows, or output formatting.

  • template.md - Starting template for new commands. Copy and customize the structure.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

95/100Analyzed 2/13/2026

An excellent, comprehensive guide for creating Claude Code slash commands. It effectively combines reference tables, templates, and procedural steps to enable immediate action.

90
95
95
90
95

Metadata

Licenseunknown
Version-
Updated2/7/2026
PublisherAeyeOps

Tags

github-actionsllmpromptingtesting