Command Development

Create Claude Code slash commands with YAML frontmatter and Jinja-style templates.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI --skill command-development-quanngynx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Command Development
Source: https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI/tree/main/servexa-warranty-ai/.cursor/skills/command-development
Command: npx skills add https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI --skill command-development-quanngynx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you design slash commands that work reliably in Claude Code by teaching the correct Markdown instruction format, YAML frontmatter configuration, and dynamic input mechanisms.

Core Features & Use Cases

  • Slash command fundamentals: Learn where commands live and how Claude interprets them as instructions for agent execution.
  • YAML frontmatter configuration: Set discoverable metadata like description, tool permissions, and argument hints to make commands usable via /help.
  • Dynamic inputs and context: Use positional arguments ($1, $2) or $ARGUMENTS, load referenced files with @ syntax, and gather live context with Bash execution using !....
  • Plugin-aware command patterns: Use ${CLAUDE_PLUGIN_ROOT} for portable internal paths and structure multi-file command workflows that integrate with plugin agents/skills.
  • Validation and troubleshooting: Apply validation patterns and systematic checks when commands don’t show up, arguments don’t substitute, or tool permissions are wrong.

Quick Start

Ask Claude to create a slash command that includes YAML frontmatter with a description and an argument-hint, and that reads a referenced file via @ syntax.

Frequently Asked Questions about Command Development

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 write Markdown instructions with YAML frontmatter, defining metadata like description and argument hints so users can discover and invoke them correctly.

How do I pass dynamic arguments to a Claude Code slash command?

You pass dynamic arguments to a Claude Code slash command using positional argument placeholders like $1 and $2, or by capturing the entire input string with the $ARGUMENTS substitution syntax.

Can I load external files and run bash scripts inside a slash command?

Yes, slash commands support loading referenced files using the @ syntax and gathering live context by executing bash scripts directly within the command using the !`...` execution syntax.

Why is my Claude Code slash command not showing up or substituting arguments?

Slash commands fail to show up or substitute arguments due to incorrect YAML frontmatter configuration or invalid Markdown formatting, requiring systematic validation and troubleshooting patterns to fix.

How do I structure portable slash commands for plugin integration?

You structure portable slash commands for plugin integration by using the ${CLAUDE_PLUGIN_ROOT} variable for internal paths and organizing multi-file command workflows that integrate with plugin agents.