Command Development

Architect and validate Claude Code slash-command prompts with Markdown and YAML frontmatter.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill empowers users to create custom slash commands in Claude Code, streamlining repetitive tasks, standardizing complex workflows, and providing quick access to powerful, reusable prompts. It turns common actions into instant automations.

Core Features & Use Cases

  • Dynamic Arguments & File References: Pass arguments ($1, $ARGUMENTS) and include file contents (@path/to/file) directly in commands for flexible input.
  • Inline Bash Execution: Execute shell commands (!command``) to fetch dynamic context, run scripts, or interact with the local environment.
  • Plugin Integration: Leverage ${CLAUDE_PLUGIN_ROOT} for portable paths and seamlessly integrate with other plugin components like agents, skills, and hooks.
  • Use Case: Create a /review-pr command that takes a PR number, fetches its details using git (via Bash execution), and then initiates a code review using a specialized agent, all with a single command.

Quick Start

Use the Command Development skill to create a new slash command /git-status that shows the current git status using inline bash execution.

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 in Claude Code?

Create slash commands by writing Markdown files with YAML frontmatter defining command metadata, then use dynamic arguments ($1, $ARGUMENTS) and file references (@path/to/file) to pass inputs. Commands execute inline bash with backticks and integrate with agents and plugins via ${CLAUDE_PLUGIN_ROOT} for portable paths.

Can I execute bash commands within a slash command?

Yes, inline bash execution lets you run shell commands using backtick syntax to fetch dynamic context, run scripts, or interact with your local environment. This allows commands like /git-status to retrieve real-time information directly within the command workflow.

How do I pass arguments and file contents to a slash command?

Use dynamic argument syntax ($1, $2, $ARGUMENTS) to capture user input and @path/to/file syntax to include file contents directly in commands. This enables flexible, context-aware command behavior without manual file selection.

Can I integrate slash commands with Claude Code plugins and agents?

Yes, slash commands integrate seamlessly with plugins, agents, and other Claude Code components using ${CLAUDE_PLUGIN_ROOT} for portable paths and frontmatter configuration. This lets you chain commands with specialized agents for complex workflows like automated code reviews.

What's the best way to organize and validate slash commands?

Organize commands using Markdown definitions with YAML frontmatter fields, dynamic argument patterns, and error-handling validation logic. This standardizes complex workflows, ensures consistency across commands, and provides quick access to reusable prompts for repetitive tasks.

Do I need prior plugin development experience to build slash commands?

No, slash commands use simple Markdown-based definitions with YAML configuration, making them accessible for workflow automation without advanced plugin development knowledge. Basic understanding of argument syntax and bash execution patterns is sufficient to get started.