create-slash-commands

Create slash commands with YAML frontmatter and XML body for Claude Code.

17|1|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/cfircoo/claude-code-toolkit --skill create-slash-commands-cfircoo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-slash-commands
Source: https://github.com/cfircoo/claude-code-toolkit/tree/main/skills/create-slash-commands
Command: npx skills add https://github.com/cfircoo/claude-code-toolkit --skill create-slash-commands-cfircoo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a blueprint for creating slash commands to trigger reusable prompts inside Claude Code, with YAML frontmatter and XML body, including dynamic context loading and intelligent argument handling.

Core Features & Use Cases

  • YAML frontmatter for command metadata
  • XML body with <objective>, <process>, <success_criteria> (and optional <context>, <verification>, <testing>, <output>)
  • Dynamic context via exclamation-mark prefixes before command blocks
  • Argument handling: supports $ARGUMENTS and positional args
  • Tool restrictions to limit what commands can run
  • Quick Start: test by creating a new slash command and invoking it with /command

Quick Start

  1. Create .claude/commands/command-name.md
  2. Add YAML frontmatter with at least a description
  3. Write the command body using the XML tags
  4. Test with /command-name