create-slash-commands

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Claude Code slash commands can be complex to design and share across teams. This skill provides a clear blueprint for creating, validating, and documenting reusable slash commands with consistent XML structure and frontmatter.

Core Features & Use Cases

  • Clear frontmatter templates with required fields (name, description) and arguments guidance
  • XML-structured bodies including <objective>, <process>, <success_criteria>, and optional context/references
  • Examples and patterns for file references, arguments handling, and tool restrictions

Quick Start

Create a new slash command by adding a Markdown file under .claude/commands named command-name.md 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 Claude Code slash commands with consistent structure?

To create Claude Code slash commands, you write a Markdown file with YAML frontmatter containing a mandatory name and description, followed by an XML body with required tags like <objective>, <process>, and <success_criteria>.

What is the required XML structure for a Claude slash command body?

The required XML structure for a Claude slash command body includes mandatory tags such as <objective>, <process>, and <success_criteria>, with optional tags for context and references to ensure robust command execution.

Does Claude Code support project-level and personal slash commands?

Yes, Claude Code supports both project-level commands stored in the .claude/commands directory and personal commands stored in the ~/.claude/commands directory, allowing flexible scope management for different users.

How do I validate frontmatter metadata for Claude slash commands?

You validate frontmatter metadata for Claude slash commands by ensuring the YAML header includes mandatory name and description fields, along with proper guidance for argument handling and tool restrictions.

What's the best way to handle arguments in Claude Code custom commands?

The best way to handle arguments in Claude Code custom commands is to define argument guidance within the YAML frontmatter and use dynamic context patterns within the XML body to process variable input securely.