
Command Development
If you're building custom workflows in Claude Code, this is your reference for creating slash commands with the `.claude/commands/` directory structure. It covers YAML frontmatter options like model selection and tool permissions, dynamic argument substitution with $1, $2, and $ARGUMENTS, file references using @ syntax, and inline bash execution for pulling in context like git status. The critical insight here is that commands are instructions for Claude, not messages to users, so write them as directives about what to do. Worth noting this is the legacy format, the newer `.claude/skills/` approach is preferred for new work, but both load identically so existing commands keep working.
- skills.sh installs
- 7.4K
- GitHub stars
- 46.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add anthropics/claude-plugins-official --skill command-development --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/anthropics/claude-plugins-official
- Categories
- Design & UI/UX, CLI & Terminal
- First seen
- May 16, 2026
More from anthropics/claude-plugins-official
All 24- Writing Hookify Rules7.4K
- Build Mcp Server7.4K
- Plugin Structure7.3K
- Plugin Settings7.3K
- Build Mcp App7.1K
- Build Mcpb6.9K
- Math Olympiad4.7K
- Configure4.5K
- Access4.5K
- Session Report4.3K
- M5 Onboard3.5K
- Cardputer Buddy3.5K
- Stripe Best Practices1.4K
- Example Skill208
- Frontend Design18.4K
- Claude Md Improver14.2K
- Claude Automation Recommender10.7K
- Playground8.6K
- Skill Creator8.3K
- Agent Development7.9K
- Skill Development7.7K
- Hook Development7.5K
- Mcp Integration7.5K