command-development

Create and validate Claude Code slash commands with YAML frontmatter.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/cjrfoto/claude-config --skill command-development-cjrfoto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-development
Source: https://github.com/cjrfoto/claude-config/tree/main/plugins/marketplaces/claude-plugins-official/plugins/plugin-dev/skills/command-development
Command: npx skills add https://github.com/cjrfoto/claude-config --skill command-development-cjrfoto

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Creating slash commands and command workflows is error-prone without a structured framework; this skill provides a standardized approach to defining, validating, and integrating Claude Code slash commands using YAML frontmatter, dynamic arguments, and plugin patterns.

Core Features & Use Cases

  • Frontmatter-driven command configuration
  • Dynamic argument handling ($ARGUMENTS, $1, $2, etc.)
  • File references and bash execution patterns
  • Plugin integration with agents, skills, and hooks
  • Validation patterns and best practices for command development
  • Examples and reference materials for rapid adoption

Quick Start

Describe the desired command and Claude will generate a ready-to-use slash command skeleton with appropriate frontmatter and prompts.

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 with YAML frontmatter for Claude Code?

Creating custom slash commands for Claude Code requires defining mandatory YAML frontmatter fields like name and description, then configuring dynamic arguments and file references to structure the command workflow. This framework generates a ready-to-use skeleton with appropriate prompts and validation patterns.

What is the best way to validate dynamic arguments in Claude Code slash commands?

Validating dynamic arguments in Claude Code slash commands involves applying structured validation patterns to handle $ARGUMENTS and positional parameters like $1 and $2. This ensures proper argument parsing and prevents execution errors during command runtime.

Can I integrate plugins with agents, skills, and hooks when developing commands?

Plugin integration with agents, skills, and hooks is fully supported during command development. This allows you to connect custom commands with broader Claude Code workflows, enabling seamless execution across referenced scripts, assets, and interactive command patterns.

How do I reference external files and execute Bash commands within a slash command?

Referencing external files and executing Bash commands within a slash command uses specific file reference patterns and execution syntax defined in the command configuration. The framework validates these references to ensure correct script and asset loading during command runtime.

What are the limitations of creating interactive commands without a structured validation framework?

Creating interactive commands without a structured validation framework is error-prone due to missing mandatory frontmatter fields, improper argument handling, and unvalidated plugin integrations. This leads to execution failures when commands lack standardized configuration patterns.

Does Claude Code command development require mandatory frontmatter fields?

Claude Code command development enforces mandatory frontmatter fields specifically for name and description to ensure proper command identification and documentation. Optional fields for scripts, references, and assets follow plugin-guided patterns for extended functionality.