slash-command-design

Guide Claude Code slash command design with delegation and frontmatter standards.

1|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/racurry/neat-little-package --skill slash-command-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slash-command-design
Source: https://github.com/racurry/neat-little-package/tree/main/plugins/forge/skills/slash-command-design
Command: npx skills add https://github.com/racurry/neat-little-package --skill slash-command-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This Skill guides you in designing effective Claude Code slash commands, ensuring they are actionable, discoverable, and correctly delegate complex tasks, preventing common design pitfalls and maximizing automation potential.

Core Features & Use Cases:

  • Command vs. Agent vs. Skill Decision Framework: Helps choose the right component type for your automation needs, optimizing Claude's behavior.
  • Best Practices for Command Structure: Provides guidance on frontmatter, argument handling, and advanced features like Bash execution and file references.
  • Delegation Pattern: Teaches how to design commands as thin wrappers that delegate complex logic to specialized agents, keeping commands simple and robust.
  • Use Case: When you want to create a new /deploy command, this skill ensures it's designed correctly to trigger a deployment agent, handles arguments efficiently, and avoids common mistakes like embedding too much logic directly in the command.

Quick Start: Use the slash-command-design skill to help me design a new command that creates a React component.

Frequently Asked Questions about slash-command-design

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

FAQPage Schema
How do I design a slash command that delegates work to an agent instead of doing everything in the command itself?

Design commands as thin wrappers that parse arguments and delegate complex logic to specialized agents. This separation keeps commands simple, robust, and reusable while letting agents handle the heavy lifting of your automation workflow.

What's the difference between creating a command, an agent, or a skill for my Claude Code automation?

Commands are entry points that handle user input and invoke agents; agents orchestrate complex workflows; skills package reusable guidance. Choose the right component type based on whether you need a direct trigger, workflow coordination, or shared knowledge across multiple automations.

How do I structure frontmatter and arguments in a Claude Code slash command?

Frontmatter fields define command metadata and behavior; arguments become substitution patterns passed to agents. Follow the box-factory-architecture framework to ensure proper argument handling, tool usage, and isolation for reliable automation execution.

Can I embed complex logic directly in a slash command or should I use delegation?

Avoid embedding logic in commands; use the delegation pattern instead. Commands work best as lightweight wrappers that invoke agents, preventing design pitfalls and maximizing reusability across your automation ecosystem.

What are the common mistakes to avoid when designing a new slash command?

Common pitfalls include embedding too much logic in the command itself, poor argument handling, and misaligned component choices. Adhere to best practices for frontmatter, leverage the command-versus-agent decision framework, and use quality checklists to ensure your command is actionable and discoverable.

How do slash commands integrate with Claude Code developer tools and AI workflows?

Slash commands automate repetitive tasks by triggering agents within Claude Code's developer environment. They standardize component choice and enforce best practices, ensuring your automation integrates cleanly with AI workflows and aligns with official documentation.