# Command Development > This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code. Source: https://skillsagentes.com/skills/anthropics/claude-code/command-development Repository: https://github.com/anthropics/claude-code Author: anthropics License: not specified Updated: hace 9 meses Context cost: 122 tok installed, 4.7k tok once triggered, 38.5k tok with every bundled file Bundle: 11 files, 150 KB Permissions requested: none declared ## Install ```bash npx -y skills add anthropics/claude-code --skill command-development --agent claude-code ``` ## What it does - Guía la creación de comandos slash como archivos Markdown con frontmatter YAML, argumentos dinámicos y referencias a archivos - Explica campos de frontmatter (description, allowed-tools, model, argument-hint, disable-model-invocation) - Define patrones para argumentos ($ARGUMENTS, $1, $2), referencias @archivo y ejecución bash inline - Detalla organización de comandos en estructura plana o con namespaces - Cubre integración de comandos con agentes, skills y ${CLAUDE_PLUGIN_ROOT} en plugins ## Use it when - El usuario pide crear un slash command o comando personalizado - Se necesita definir argumentos de comando o usar frontmatter de comando - Se requiere organizar comandos o usar referencias de archivo en un comando - Se pide crear un comando interactivo o usar AskUserQuestion en un comando ## What triggers it - "Crea un slash command para revisar pull requests" - "Añade un comando /deploy con argumentos de entorno y versión" - "Cómo defino argument-hint en un comando personalizado" - "Organiza mis comandos en subdirectorios con namespaces" ## Before you install - Environment: ARGUMENTS, CLAUDE_PLUGIN_ROOT ## Files - README.md — 7 KB - SKILL.md — 18 KB - examples/plugin-commands.md — 14 KB - examples/simple-commands.md — 8 KB - references/advanced-workflows.md — 13 KB - references/documentation-patterns.md — 15 KB - references/frontmatter-reference.md — 9 KB - references/interactive-commands.md — 20 KB - references/marketplace-considerations.md — 16 KB - references/plugin-features-reference.md — 14 KB - references/testing-strategies.md — 14 KB ## SKILL.md Not reproduced here. Read it at https://github.com/anthropics/claude-code/blob/main/plugins/plugin-dev/skills/command-development/SKILL.md --- Skills Agentes — https://skillsagentes.com/skills/anthropics/claude-code/command-development