
Command Development
Guide for writing Claude Code slash commands, with frontmatter fields, dynamic arguments, and file references.
- skills.sh installs
- 7.7K
- GitHub stars
- 47.9K
- last updated
- Aug 21, 2026
What it does
- Covers command file format, storage locations for project, personal, and plugin commands, and how to structure instructions for Claude
- Includes YAML frontmatter fields (
description,allowed-tools,model,argument-hint,disable-model-invocation) plus$ARGUMENTSand positional$1,$2argument handling - Explains
@file references and inline bash execution for gathering repository or environment context before processing - Designed for developers building reusable, shareable workflows for Claude Code, with the
.claude/skills/format noted as preferred
Install
$ npx -y skills add anthropics/claude-plugins-official --skill command-development -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Command Development for Claude Code
Note: The
.claude/commands/directory is a legacy format. For new skills, use the.claude/skills/<name>/SKILL.mddirectory format. Both are loaded identically — the only difference is file layout. See theskill-developmentskill for the preferred format.
Overview
Slash commands are frequently-used prompts defined as Markdown files that Claude executes during interactive sessions. Understanding command structure, frontmatter options, and dynamic features enables creating powerful, reusable workflows.
Key concepts:
- Markdown file format for commands
- YAML frontmatter for configuration
- Dynamic arguments and file references
- Bash execution for context
- Command organization and namespacing
Command Basics
What is a Slash Command?
A slash command is a Markdown file containing a prompt that Claude executes when invoked. Commands provide:
- Reusability: Define once, use repeatedly
- Consistency: Standardize common workflows
- Sharing: Distribute across team or projects
- Efficiency: Quick access to complex prompts
Critical: Commands are Instructions FOR Claude
Details
- Repository
- github.com/anthropics/claude-plugins-official
- Categories
- Skill & Plugin Building, Technical Documentation
- First seen
- May 16, 2026
More from anthropics/claude-plugins-official
All 23- Build Mcp Server7.6K
- Writing Hookify Rules7.6K
- Plugin Structure7.6K
- Plugin Settings7.5K
- Build Mcp App7.4K
- Build Mcpb7.1K
- Math Olympiad4.9K
- Configure4.7K
- Access4.7K
- Session Report4.6K
- M5 Onboard3.8K
- Cardputer Buddy3.8K
- Example Skill213
- Frontend Design19.1K
- Claude Md Improver15K
- Claude Automation Recommender11.5K
- Playground8.9K
- Skill Creator8.6K
- Agent Development8.1K
- Skill Development8K
- Hook Development7.8K
- Mcp Integration7.7K
Similar to Command Development
More Skill & Plugin Building
slash-commandsSkillparcadei/continuous-claude-v3491 installsReference guide for creating Claude Code slash commands with arguments, bash execution, and file references.
create-slash-commandsSkillglittercowboy/taches-cc-resources169 installsExpert guide for writing Claude Code slash commands with XML structure, YAML frontmatter, and argument handling.
command-creatorSkillsoftaworks/agent-toolkit4.1K installsGuided creation of Claude Code slash commands with auto-detected file location, pattern selection, and agent-executable templates.
skill-developmentSkillanthropics/claude-plugins-official8K installsGuidance for creating Claude Code plugin skills, with progressive disclosure and reusable bundled resources.
plugin-structureSkillanthropics/claude-plugins-official7.6K installsReference for building a Claude Code plugin's directory layout, manifest, and component files.
authoringPluginCaptainCrouton89/crouton-kit25 starsGuides for authoring Claude Code artifacts — CLAUDE.md, hooks, rules, skills, commands, and scripts