create-slash-commands

Create Claude Code slash commands with YAML frontmatter and XML bodies.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/voronerd/claude-orchestration-template --skill create-slash-commands-voronerd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-slash-commands
Source: https://github.com/voronerd/claude-orchestration-template/tree/main/template_root/.claude/skills/create-slash-commands
Command: npx skills add https://github.com/voronerd/claude-orchestration-template --skill create-slash-commands-voronerd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates and standardizes the creation of Claude Code slash commands by providing a clear template for frontmatter and XML bodies, reducing setup time and errors.

Core Features & Use Cases

  • Frontmatter-driven commands: Define name, description, and optional restrictions to control behavior and discovery.
  • XML-structured bodies: Ensure every command exposes an <objective>, <process>, and <success_criteria>, with optional <context>, <verification>, <testing>, and <output> as needed.
  • Argument handling patterns: Supports simple $ARGUMENTS, positional arguments ($1, $2, $3), and file references, enabling flexible command design.
  • Reusable templates: Provide a consistent base for git, code reviews, and analysis tasks across projects.

Quick Start

Create a new slash command by adding a Markdown file under .claude/commands with YAML frontmatter and an XML body.

Frequently Asked Questions about create-slash-commands

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

FAQPage Schema
How do I create custom slash commands for Claude Code?

To create custom slash commands for Claude Code, you add a Markdown file under the .claude/commands directory, defining command behavior with YAML frontmatter and an XML body. This standardizes prompt creation and reduces setup errors.

What is the correct XML structure for a Claude prompt body?

The correct XML structure for a Claude prompt body requires an <objective>, <process>, and <success_criteria> tag. You can optionally include <context>, <verification>, <testing>, and <output> tags to structure the prompt logic further.

How do I handle arguments in reusable Claude prompt templates?

You handle arguments in reusable Claude prompt templates by using simple $ARGUMENTS, positional arguments like $1 or $2, or file references. This enables flexible command design for various code analysis tasks.

Can I restrict tool usage in Claude Code custom commands?

Yes, you can restrict tool usage and control command discovery by defining optional restrictions within the YAML frontmatter of your custom commands. This ensures commands adhere to established safety patterns.

What are the limitations of using YAML frontmatter for Claude commands?

Using YAML frontmatter for Claude commands limits you to defining metadata like name, description, and tool restrictions, while the actual prompt logic and argument handling must be structured separately within the XML body.

Does create-slash-commands work for generating git commit templates?

Yes, create-slash-commands works for generating git commit templates by providing a consistent reusable base for git, code reviews, and analysis tasks across projects using structured frontmatter and XML bodies.