creating-commands

Create structured slash commands with YAML frontmatter and XML bodies.

1|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/outcomeeng/claude --skill creating-commands-outcomeeng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-commands
Source: https://github.com/outcomeeng/claude/tree/main/plugins/claude/skills/creating-commands
Command: npx skills add https://github.com/outcomeeng/claude --skill creating-commands-outcomeeng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill standardizes the creation of Claude Code slash commands by enforcing a consistent YAML frontmatter and a structured XML body, reducing human error and enabling reusable templates across projects.

Core Features & Use Cases

  • Enforces a consistent XML structure for command bodies (objective, process, success_criteria) and supports optional sections like context, verification, and output.
  • Provides templates and patterns for common command types, including file references, dynamic context loading, and selective tool restrictions.
  • Supports both project-scoped and personal command directories, facilitating collaboration and standardization across teams.

Quick Start

Create a new command file at .claude/commands/your-command.md with YAML frontmatter and a minimal XML command skeleton.

Frequently Asked Questions about creating-commands

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

FAQPage Schema
How do I create structured slash commands with XML prompts and YAML frontmatter?

To create structured slash commands, you define a command file using YAML frontmatter and a structured XML body. This enforces a consistent format with objective, process, success_criteria, and optional context sections, reducing human error and enabling reusable templates.

How do I add dynamic context and file references to Claude Code slash commands?

You can add dynamic context and file references to slash commands by utilizing the provided templates and patterns within the XML command body. This allows commands to dynamically load state and reference specific files during execution for repeatable, safety-checked prompts.

Can I restrict tools and arguments when building custom slash commands?

Yes, you can apply selective tool restrictions and define optional arguments within the YAML frontmatter. This ensures your custom slash commands operate with safety-checked prompts and controlled execution environments for targeted team workflows.

What is the best way to standardize slash commands across different project teams?

The best way to standardize slash commands across teams is to use a defined XML body and YAML frontmatter structure. Supporting both project-scoped and personal command directories facilitates collaboration and ensures consistent command patterns across projects.

When do I need to use XML prompts instead of plain markdown for slash commands?

You need to use XML prompts instead of plain markdown when your commands require strict structural sections like objective, process, and success_criteria. This structured approach standardizes command creation, enables dynamic state loading, and ensures repeatable safety-checked prompt execution.