command-builder

Generate Claude Code slash commands with XML bodies and YAML frontmatter for reusable prompts.

3|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/rayk/lucid-toolkit --skill command-builder-rayk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-builder
Source: https://github.com/rayk/lucid-toolkit/tree/main/.claude/skills/command-builder
Command: npx skills add https://github.com/rayk/lucid-toolkit --skill command-builder-rayk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Crafting effective Claude Code slash commands can be complex, requiring precise YAML frontmatter, XML structure, and intelligent argument handling. This skill simplifies the process, guiding you to create reusable prompts that automate workflows and standardize operations.

Core Features & Use Cases

  • Structured Command Creation: Learn to define commands with XML tags, dynamic context loading, and argument parsing.
  • Workflow Automation: Standardize common tasks for your team, from Git operations to code analysis, with simple /command-name invocations.
  • Use Case: Quickly create a /commit command that automatically stages changes, writes a descriptive message based on your diff, and commits, all while adhering to your team's conventions.

Quick Start

  1. Create commands/ directory (project) or use ~/commands/ (personal)
  2. Create command-name.md file
  3. Add YAML frontmatter (at minimum: description)
  4. Write command prompt
  5. Test with /command-name [args]

Frequently Asked Questions about command-builder

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

FAQPage Schema
How do I create reusable Claude Code slash commands for my team?

Create a `command-name.md` file in `commands/` (project) or `~/commands/` (personal) with YAML frontmatter and your prompt. Define commands with XML tags, dynamic context loading, and argument handling. Invoke with `/command-name [args]` to standardize workflows like code review, Git operations, or performance optimization across your team.

What's the structure of a Claude Code slash command?

Slash commands require YAML frontmatter (at minimum: `description`), XML-tagged body structure, and argument parsing logic. This format enables dynamic context loading and robust handling of optional argument hints, letting you build automation for tasks like automated commits, code analysis, or workflow standardization.

Can I automate common development tasks with slash commands?

Yes. Build slash commands to automate workflows like staging Git changes, generating commit messages from diffs, running code analysis, or enforcing team conventions. Commands execute with `/command-name` syntax and apply consistent logic across individual and team workflows.

Do slash commands support dynamic arguments and context?

Yes. Slash commands handle optional and required arguments with hint support and include testing hooks. XML structure and YAML frontmatter enable dynamic context loading, letting you pass file content, diffs, or environment state into your command logic.

What file format do Claude Code slash commands use?

Slash commands use Markdown files with YAML frontmatter and XML-tagged prompt bodies. This combination provides structured metadata, flexible argument parsing, and clear separation between configuration and execution logic for reliable command behavior.

How do I test slash commands before deploying them to my team?

Slash commands include built-in testing hooks. Create and iterate on `command-name.md` in your local `~/commands/` directory, then invoke `/command-name [args]` to validate output. Once tested, move the file to your project's `commands/` directory for team use.