One-click install
npx skills add https://github.com/fcakyon/claude-codex-settings --skill command-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-development
Source: https://github.com/fcakyon/claude-codex-settings/tree/main/plugins/plugin-dev/skills/command-development
Command: npx skills add https://github.com/fcakyon/claude-codex-settings --skill command-development

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Creating effective, reusable Claude Code slash commands requires understanding their structure, configuration options, and how to integrate dynamic content and tools. This Skill provides comprehensive guidance, enabling you to build sophisticated automation and interactive workflows with ease.

Core Features & Use Cases

  • Flexible Command Structure: Define commands as Markdown files with optional YAML frontmatter for configuration.
  • Dynamic Arguments & File References: Use $ARGUMENTS, $1, and @syntax to create commands that adapt to user input and include file content.
  • Inline Bash Execution: Execute bash commands (`!command) directly within your prompts to gather dynamic context or perform actions.
  • Plugin-Specific Features: Leverage ${CLAUDE_PLUGIN_ROOT} for portable file references and integrate seamlessly with plugin agents, skills, and hooks.
  • Robust Validation & Error Handling: Implement argument validation, file existence checks, and graceful error handling for reliable commands.
  • Use Case: Build a custom code review command that fetches Git changes, a deployment command that uses environment-specific configurations, or an interactive troubleshooting tool that guides users through diagnostics.

Quick Start

Show me how to create a simple slash command that takes a file path as an argument and then reviews its content.

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 that accepts file paths and processes their content?

Slash commands use Markdown files with YAML frontmatter to define configuration. Use `$1` or `$ARGUMENTS` to capture user input like file paths, then reference the file directly in your prompt or execute bash commands with backticks to read and process its content dynamically.

Can I execute bash commands within Claude Code slash commands to gather dynamic context?

Yes. Inline bash execution using backtick syntax (`command`) lets you run shell commands directly within prompts to gather Git changes, environment variables, file listings, or other dynamic context before processing.

What's the difference between using `$ARGUMENTS` and `$1` in slash command definitions?

`$1` captures the first positional argument passed to the command, while `$ARGUMENTS` captures all arguments as a single string. Choose `$1` for structured single-input commands and `$ARGUMENTS` for flexible multi-argument workflows.

How do I make slash commands portable across different Claude Code plugins and environments?

Use the `${CLAUDE_PLUGIN_ROOT}` variable for file references instead of absolute paths. This ensures commands work consistently whether deployed as standalone plugins, skills, or integrated hooks across different environments.

What validation and error handling should I implement in slash commands?

Implement argument validation to check required inputs, file existence checks before processing, and graceful error messages when operations fail. This prevents silent failures and helps users understand what went wrong and how to correct it.

Can I automate deployment or code review workflows using slash commands?

Yes. Slash commands support complex workflows like fetching Git changes for automated code review or loading environment-specific configurations for deployments using dynamic arguments, bash execution, and conditional logic.