claude-code-slash-commands

Generate Claude Code slash command Markdown templates with frontmatter and argument placeholders.

1|Updated Nov 27, 2025
One-click install
npx skills add https://github.com/JamesPrial/shawnbot --skill claude-code-slash-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-code-slash-commands
Source: https://github.com/JamesPrial/shawnbot/tree/main/.claude/skills/claude-code-slash-commands
Command: npx skills add https://github.com/JamesPrial/shawnbot --skill claude-code-slash-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps teams automate the creation and organization of Claude Code slash commands by generating Markdown command templates from a simple name. It reduces boilerplate time and standardizes command definitions across projects.

Core Features & Use Cases

  • Template-based creation: Generate ready-to-use Markdown files for new commands with optional tool permissions.
  • Project and user scopes: Easily create commands in the project-level (.claude/commands) or personal user-space (~/.claude/commands).
  • Consistency & onboarding: Standardizes frontmatter fields and usage across teams, speeding up new command onboarding.

Quick Start

  • To create a new command named 'my-helper' in the project scope, run:
    • python3 .claude/skills/claude-code-slash-commands/scripts/init_command.py my-helper --project
  • Edit the generated file at .claude/commands/my-helper.md to fill in frontmatter details and the prompt body.
  • If you prefer a user-scoped command, use --user instead of --project.
  • Optionally enable tools in the frontmatter by editing allowed-tools.

Frequently Asked Questions about claude-code-slash-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate creating Claude Code slash commands?

Automate slash command creation by running the template generator script with a command name and scope flag. The script generates Markdown files with frontmatter and execution blocks in your project (.claude/commands) or user (~/.claude/commands) directory, eliminating manual boilerplate.

What frontmatter fields does a Claude Code slash command need?

Slash commands require frontmatter fields including allowed-tools, argument-hint, model, and disable-model-invocation. These fields control tool permissions, define argument patterns like $ARGUMENTS or $1, specify the model, and toggle model invocation—all standardized across project and user scopes.

Can I create slash commands at both project and user scope?

Yes, the template generator supports both scopes. Use the --project flag to create commands in .claude/commands (project-level) or --user for ~/.claude/commands (personal). This lets teams standardize project commands while maintaining individual user-scoped utilities.

How do I organize multiple slash commands across teams?

Organize commands using naming and namespacing conventions enforced by the template generator. Generate commands consistently in shared project directories (.claude/commands) with standardized frontmatter and Bash execution blocks, ensuring onboarding alignment and reducing drift across workflows.

What's the fastest way to set up a new slash command with argument handling?

Generate a command template with the init script, then edit the Markdown file to define argument placeholders ($ARGUMENTS, $1, $2) and execution logic. The template pre-structures frontmatter and Bash blocks so you only fill in domain-specific prompt and command logic.