slash-commands

Configure Claude Code slash commands with frontmatter and dynamic features.

5|2|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/horuz-ai/claude-plugins --skill slash-commands-horuz-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slash-commands
Source: https://github.com/horuz-ai/claude-plugins/tree/main/plugins/core/skills/slash-commands
Command: npx skills add https://github.com/horuz-ai/claude-plugins --skill slash-commands-horuz-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

This Skill provides best practices for creating Claude Code slash commands. It helps you configure frontmatter, leverage dynamic features, apply command patterns, and decide when to use slash commands vs skills vs subagents.

Core Features & Use Cases

  • Frontmatter configuration guidance for allowed-tools, description, and model overrides
  • Dynamic features: support for $ARGUMENTS, !bash context, and file references with @
  • Command patterns for Git workflows, multi-agent orchestration, and code reviews
  • Decision guidance on when to use slash commands versus skills or subagents
  • Templates and patterns to accelerate command creation and standardization

Quick Start

Create a new slash command by adding a Markdown file under .claude/commands/ (project) or ~/.claude/commands/ (personal). Include a YAML frontmatter with at least name and description, and place the operational instructions in the body following the frontmatter. Use the provided templates in references/ to guide design and adhere to frontmatter rules. To test, type /<command-name> in Claude Code.

Frequently Asked Questions about slash-commands

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

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

Create a Markdown file in `.claude/commands/` (project) or `~/.claude/commands/` (personal) with YAML frontmatter containing `name` and `description`, followed by operational instructions in the body. Test by typing `/<command-name>` in Claude Code.

What dynamic features can I use in slash commands?

Slash commands support `$ARGUMENTS` for user input, `!` for Bash context injection, and `@` for file references. These enable parameterized commands, environment data access, and direct file manipulation within command workflows.

When should I use a slash command instead of a Skill or subagent?

Use slash commands for lightweight, reusable operations tied to a specific workflow. Use Skills for complex, multi-step logic with internal reasoning; use subagents for parallel orchestration across independent tasks.

What frontmatter configuration options are required for slash commands?

Frontmatter requires `name` and `description`. Optional fields include `allowed-tools` to restrict tool access, model overrides for specific Claude versions, and argument hints to guide user input and validation.

Can I use slash commands for Git workflows and code reviews?

Yes. Slash commands support Git workflow patterns (commit, branch, merge operations) and multi-agent code review patterns. Use Bash context and file references to automate repository tasks and coordinate review processes.

Do slash commands support template-driven definitions?

Yes. Provided templates in `references/` accelerate command creation and enforce standardization. Templates guide frontmatter structure, argument design, and validation logic for consistent, maintainable commands across teams.

Related Skills