Command Development

Determine if a request needs slash-command development guidance for Claude Code workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/arlenagreer/claude_configuration_docs --skill command-development-arlenagreer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Command Development
Source: https://github.com/arlenagreer/claude_configuration_docs/tree/main/plugins/marketplaces/claude-code-plugins/plugins/plugin-dev/skills/command-development
Command: npx skills add https://github.com/arlenagreer/claude_configuration_docs --skill command-development-arlenagreer

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill eliminates the confusion and trial-and-error of creating custom slash commands by providing comprehensive guidance on structure, frontmatter, and advanced patterns.

Core Features & Use Cases

  • Command Structure: Learn Markdown format, YAML frontmatter, and dynamic features.
  • Use Case: Imagine you need to create a command that reviews PRs, runs tests, and deploys applications with arguments and file references.
  • Use Case: Create plugin-specific commands that leverage ${CLAUDE_PLUGIN_ROOT} for portable script execution and resource access.

Quick Start

Use the Command Development skill to create a new slash command by asking "create a command that reviews code for security issues and provides specific fixes with line numbers.

Quick Start

Create a simple command by making a file at .claude/commands/review.md containing: "Review this code for security vulnerabilities including SQL injection, XSS attacks, and authentication bypass. Include file references with @ syntax and bash execution with !` syntax for dynamic context.

Frequently Asked Questions about Command Development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a slash command in Claude Code?

Create a slash command by writing a Markdown file in `.claude/commands/` with YAML frontmatter defining metadata, then arguments and bash execution blocks. Use the `!` syntax for bash execution and `@` syntax for file references to build dynamic, reusable commands within Claude Code workflows.

What's the structure of a Claude Code slash command?

Slash commands use Markdown format with YAML frontmatter at the top specifying command name and parameters, followed by the command logic. Frontmatter defines dynamic arguments, file inputs, and execution context; the body contains instructions and bash execution blocks for automation.

Can I use file references and bash execution in custom commands?

Yes. Use `@` syntax to reference files and `!` syntax to execute bash commands within your slash commands. This enables dynamic context retrieval and system-level automation, letting you build commands that integrate file analysis, testing, and deployment workflows.

How do I create plugin-specific slash commands?

Leverage the `${CLAUDE_PLUGIN_ROOT}` variable in your command's bash execution blocks to access plugin resources portably. This enables commands to reference plugin scripts and assets without hardcoded paths, making commands work across different plugin installations.

What validation should slash commands include?

Validate arguments in your command's frontmatter by specifying required parameters and their types. Use bash execution blocks to validate input data, check file existence, and handle edge cases before proceeding with the core command logic.

Can I organize multiple commands in a single plugin?

Yes. Create separate `.md` files in `.claude/commands/` for each command. Each file is independently discoverable and executable, allowing you to organize related commands—like deployment, testing, and review workflows—as a cohesive plugin suite.