Command Development

Create Claude Code slash commands with YAML frontmatter and bash execution.

Updated Apr 10, 2025
One-click install
npx skills add https://github.com/LeighAtkins/OpenPaint --skill command-development-leighatkins
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Command Development
Source: https://github.com/LeighAtkins/OpenPaint/tree/main/.claude/plugins/plugin-dev/skills/command-development
Command: npx skills add https://github.com/LeighAtkins/OpenPaint --skill command-development-leighatkins

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill empowers users to create, understand, and effectively utilize Claude Code's slash commands, transforming complex workflows into simple, reusable commands.

Core Features & Use Cases

  • Command Creation Guidance: Learn the file format, YAML frontmatter, and best practices for writing custom commands.
  • Argument & File Handling: Master dynamic arguments ($1, $ARGUMENTS) and file references (@path/to/file).
  • Bash Integration: Understand how to securely execute shell commands within commands.
  • Plugin-Specific Features: Leverage ${CLAUDE_PLUGIN_ROOT} and organize commands within plugins.
  • Use Case: A developer needs to create a new command to automate code linting. This Skill provides the exact structure, syntax, and examples needed to build that command efficiently.

Quick Start

Use the Command Development skill to learn how to create a new slash command for Claude Code.

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 Claude Code slash commands for automation?

To create custom Claude Code slash commands, you define a file with specific YAML frontmatter and markdown body, utilizing dynamic arguments like $1 and $ARGUMENTS to automate workflows. This structure transforms complex scripting tasks into simple, reusable commands.

What is the correct file format and syntax for Claude Code plugin development?

The correct file format for Claude Code plugin development involves markdown files with YAML frontmatter, utilizing variables like ${CLAUDE_PLUGIN_ROOT} to organize commands. This syntax enables robust command creation and secure bash execution within the plugin architecture.

Can I execute bash commands and reference files within Claude Code slash commands?

Yes, you can securely execute bash commands and reference files using @path/to/file syntax within Claude Code slash commands. This allows scripts to interact directly with your local environment and process file contents during automation workflows.

How do I integrate Claude Code commands with agents, skills, and hooks?

You integrate Claude Code commands with agents, skills, and hooks by following specific validation patterns and organizational best practices. This integration ensures robust workflow development and allows commands to seamlessly trigger broader automation processes.

What are the best practices for organizing and validating custom Claude Code commands?

Best practices for organizing custom Claude Code commands include structuring files logically within plugins, applying consistent YAML frontmatter, and implementing validation patterns. These practices ensure commands remain maintainable and execute reliably across different environments.