General

Command Development for Claude Code

by anthropics/claude-code

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…

Skill content

Command Development for Claude Code

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?