tzachbon avatar

Command Development

This is the canonical reference for building slash commands in Claude Code. It covers the full lifecycle: YAML frontmatter fields, dynamic arguments with $1/$2/$ARGUMENTS syntax, file references using @ notation, and bash execution for gathering context. The critical insight that commands are instructions FOR Claude, not messages TO users, prevents a common mistake where people write documentation instead of directives. Covers both project and personal command locations, tool permissions, model selection, and organization patterns. If you're creating custom workflows or sharing commands across a team, this has the specifics you need on argument hints, namespacing, and when to use haiku versus sonnet for execution.

GitHub stars
340
last updated
May 19, 2026

Install

$ npx -y skills add tzachbon/smart-ralph --skill 'Command Development' --agent claude-code

Installs into .claude/skills of the current project.

Files

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?

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

Commands are written for agent consumption, not human consumption.

When a user invokes /command-name, the command content becomes Claude's instructions. Write commands as directives TO Claude about what to do, not as messages TO the user.

Sponsors

Details

Repository
github.com/tzachbon/smart-ralph
Category
Marketing & SEO
License
MIT
First seen
Jun 11, 2026

More from tzachbon/smart-ralph

All 28
1utopai-research avatarvideo-composeutopai-research/pai-proGenerates and prompts video clips on the filmmaking canvas. Use when the user asks to generate, render, animate, continue, restyle, edit, shoot, or compose a vi0skills.sh installs
2kostja94 avatarmulti-domain-brand-seokostja94/marketing-skillsWhen the user wants to optimize brand search for a company with multiple domains (e.g. parent company.com vs product.ai). Ensure the parent/company domain ranks779skills.sh installs
3nexu-io avataremail-marketingnexu-io/open-designA brand product-launch email — masthead with wordmark, hero image block, headline lockup with skewed-italic accent, body copy, primary CTA, and a specifications249skills.sh installs
4kostja94 avataremail-marketingkostja94/marketing-skillsWhen the user wants to plan email marketing, EDM, newsletter strategy, or email deliverability. Also use when the user mentions "email marketing," "EDM," "newsl1.2Kskills.sh installs
5autonnel avatarlanding-page-conversion-auditautonnel/autonnel-skillsAudit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review, criti122.1Kskills.sh installs
6claude-office-skills avataremail-marketingclaude-office-skills/skillsEmail marketing automation - campaign creation, sequence building, A/B testing, deliverability optimization, and analytics5.2Kskills.sh installs