creating-claude-commands

Generate Claude Code slash commands with correct frontmatter and structure.

121|16|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/pr-pm/prpm --skill creating-claude-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-claude-commands
Source: https://github.com/pr-pm/prpm/tree/main/.claude/skills/creating-claude-commands
Command: npx skills add https://github.com/pr-pm/prpm --skill creating-claude-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the confusion and errors when creating Claude Code slash commands by providing comprehensive guidance on structure, frontmatter, and best practices.

Core Features & Use Cases

  • Expert Guidance: Step-by-step instructions for creating properly structured slash commands with correct YAML frontmatter.
  • Validation Support: Detailed schema validation and common mistake prevention for reliable command creation.
  • Use Case: When your team needs to standardize code review commands, use this Skill to create a /code-review command with proper tool permissions and output formatting.

Quick Start

Create a new slash command for generating documentation by saving a file at .claude/commands/generate-docs.md with the correct frontmatter structure.

Frequently Asked Questions about creating-claude-commands

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

FAQPage Schema
How do I create a Claude slash command with correct frontmatter?

Create a markdown file in `.claude/commands/` with YAML frontmatter defining name, description, arguments, and model. The frontmatter must specify commandType, argument hints, and tool permissions to match the Claude Slash Command schema and ensure proper validation.

What frontmatter fields are required for slash commands?

Slash commands require name, description, commandType, and model fields in YAML frontmatter. Optional fields include arguments with hints, tools, and output formatting. Each field must follow the schema to pass validation and work reliably across project files.

How do I standardize slash commands across my team?

Define frontmatter templates and validation rules, then create commands using the standardized structure. This Skill provides schema guidance and best practices to ensure all team commands follow consistent patterns, tool permissions, and argument formatting.

What mistakes should I avoid when writing slash commands?

Common errors include incorrect YAML syntax, missing required frontmatter fields, malformed argument hints, and inconsistent commandType values. Validation against the Claude Slash Command schema catches these before deployment and prevents runtime failures.

Can I use slash commands to automate code reviews?

Yes. Create a `/code-review` command with frontmatter specifying tools for file analysis, output formatting for review results, and argument hints for code paths. This Skill guides proper structure and permissions to build working automation commands.