creating-commands

Generate and validate Markdown slash-command templates with YAML frontmatter for Claude Code.

2|1|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/mikkelkrogsholm/dst-skills --skill creating-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-commands
Source: https://github.com/mikkelkrogsholm/dst-skills/tree/main/.claude/skills/creating-commands
Command: npx skills add https://github.com/mikkelkrogsholm/dst-skills --skill creating-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill empowers you to automate repetitive tasks and streamline your workflow by teaching you how to design and implement powerful slash commands for Claude Code, eliminating manual effort.

Core Features & Use Cases

  • Command Design: Learn to structure commands with YAML frontmatter, arguments ($1, $ARGUMENTS), and precise tool permissions.
  • Bash Integration: Execute shell commands (!``command`` ) directly within your prompts, dynamically pulling context or performing actions.
  • Workflow Automation: Design commands for common development tasks like git operations, testing, and code generation, turning complex sequences into single, user-invoked actions.

Quick Start

Teach me how to create a new slash command that runs git status and then asks me to summarize the changes.

Frequently Asked Questions about creating-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a slash command in Claude Code?

Slash commands in Claude Code use YAML frontmatter to define metadata (description, arguments, allowed tools, model settings) followed by a prompt block. Structure your command with argument placeholders like `$1`, `$2`, or `$ARGUMENTS`, then use bash execution blocks with backticks to run shell commands and pull dynamic context into your prompt.

Can I run bash commands inside a Claude Code slash command?

Yes. Use backtick syntax (`` `command` ``) within your prompt to execute bash commands directly. This lets you dynamically gather context—like git status or file contents—and pass results into Claude's reasoning, enabling workflows that combine shell execution with AI analysis.

What frontmatter fields are required for a Claude Code slash command?

Required YAML frontmatter fields are: description, argument-hint, allowed-tools, model, and disable-model-invocation. These fields control what your command does, which tools Claude can access, and whether to invoke the model. Optional fields include file references and extended-thinking prompts to customize behavior.

How do I automate git workflows using slash commands?

Design a slash command that runs git operations (like `git status` or `git log`) using bash blocks, then passes the output to Claude for analysis or summarization. Combine multiple commands in sequence—for example, fetch git status, then ask Claude to summarize changes—turning complex git tasks into a single command invocation.

Can I pass multiple arguments to a Claude Code slash command?

Yes. Use positional arguments (`$1`, `$2`, `$3`) for ordered inputs or `$ARGUMENTS` to capture all arguments as a string. Define what arguments your command expects in the argument-hint frontmatter field, and reference them in your prompt or bash blocks to make commands flexible and reusable.

What's the difference between simple and workflow command patterns?

Simple commands execute a single task with basic input/output. Workflow commands chain multiple steps—context gathering, validation, generation—using sequential bash execution and Claude reasoning to handle complex development tasks like testing pipelines or code generation sequences in one invocation.