Command Development

Originally fromovachiever/droid-tings
Installation
Summary

Markdown-based slash commands for Claude Code with dynamic arguments, file references, and bash execution.

  • Commands are Markdown files with optional YAML frontmatter that define reusable prompts executed by Claude; organize them in .claude/commands/ (project), ~/.claude/commands/ (personal), or plugin directories
  • Support dynamic arguments via $ARGUMENTS, $1, $2 syntax and file inclusion with @file-path to pass context directly to Claude
  • Configure tool access, model selection, and command descriptions through frontmatter fields like allowed-tools, model, and argument-hint
  • Execute bash commands inline with !backtick syntax` to gather dynamic context (git status, environment state) before Claude processes the command
  • Organize commands in flat or namespaced structures; plugin commands access ${CLAUDE_PLUGIN_ROOT} for portable resource references and integrate with agents, skills, and hooks
SKILL.md
Contains Shell Commands

This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.

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
Related skills

More from anthropics/claude-code

Installs
GitHub Stars
122.7K
First Seen