create-slash-commands

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

Updated Jan 5, 2026
One-click install
npx skills add https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor --skill create-slash-commands-sjdjdiejdrirhdkjej
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-slash-commands
Source: https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor/tree/main/.claude/skills/create-slash-commands
Command: npx skills add https://github.com/Sjdjdiejdrirhdkjej/Claude-code-conductor --skill create-slash-commands-sjdjdiejdrirhdkjej

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides expert guidance for creating Claude Code slash commands and structuring them with YAML frontmatter and XML bodies to ensure consistency across projects.

Core Features & Use Cases

  • Clear frontmatter guidelines (name, description, argument hints) and an XML body containing <objective>, <process>, and <success_criteria> for every command
  • Guidance on dynamic context loading, file references, and optional resources (scripts/, references/, assets/)
  • Practical examples showing how to build reliable, testable commands and how to test them inside Claude Code

Quick Start

To create a new slash-command, add a file under .claude/commands named command-name.md with YAML frontmatter describing the command. In the body, provide an XML-structured prompt including <objective>, <process>, and <success_criteria>, and optionally include <context> and <verification> sections. Then test by invoking /command-name with any required arguments.

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 in Claude Code?

Claude Code slash commands require a Markdown file with YAML frontmatter specifying the name and description, followed by an XML body containing objective, process, and success criteria sections. This structure ensures predictable, repeatable command execution across projects.

What is the correct XML structure for Claude Code prompt design?

The correct XML structure for Claude Code prompt design includes <objective>, <process>, and <success_criteria> sections, with optional <context> and <verification> blocks. This XML body enforces consistent patterns and safety considerations for reliable command behavior.

How do I handle dynamic context and arguments in Claude Code commands?

Dynamic context and argument handling in Claude Code commands is managed through YAML frontmatter argument hints and optional context loading sections within the XML body. You can reference supporting resources like scripts and assets to provide dynamic inputs during execution.

Does Claude Code support project-level and user-level command directories?

Yes, Claude Code supports both project-level and user-level command directories for organizing slash commands. You can place command files in specific directories to scope them globally or restrict them to individual projects, ensuring flexible automation deployment.

What are the limitations when building automation with Claude Code slash commands?

Limitations when building automation with Claude Code slash commands include the strict requirement for consistent YAML frontmatter and XML structure patterns to maintain safety. Failing to adhere to these templated prompt designs can result in unpredictable or non-repeatable command behavior.