slash-command-builder

Create Claude Code slash commands with XML structures and YAML frontmatter.

Updated Dec 22, 2025
One-click install
npx skills add https://github.com/royhenengel/Claude-Customizations --skill slash-command-builder-royhenengel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slash-command-builder
Source: https://github.com/royhenengel/Claude-Customizations/tree/main/skills/Tooling/slash-command-builder
Command: npx skills add https://github.com/royhenengel/Claude-Customizations --skill slash-command-builder-royhenengel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert guidance and a structured framework for creating custom slash commands in Claude Code, enabling users to trigger reusable prompts and standardize workflows.

Core Features & Use Cases

  • Command Structure: Learn the required XML tags (<objective>, <process>, <success_criteria>) and optional tags (<context>, <verification>, etc.) for building robust commands.
  • Argument Handling: Understand how to use $ARGUMENTS and positional arguments ($1, $2) for dynamic command inputs.
  • Dynamic Context: Integrate bash commands and file references to load real-time state into your prompts.
  • Use Case: You need to create a new /commit command that automatically stages changes, checks the git status, and prompts for a commit message, ensuring consistency across your team's development workflow.

Quick Start

Use the slash-command-builder skill to create a new command file named my-new-command.md with a basic objective, process, and success criteria.

Frequently Asked Questions about slash-command-builder

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

FAQPage Schema
How do I create custom Claude Code slash commands for reusable prompts?

To create custom Claude Code slash commands, you define a markdown file using specific XML structures like <objective>, <process>, and <success_criteria> alongside YAML frontmatter to standardize and trigger reusable workflow prompts.

How does argument handling work when building Claude Code slash commands?

Argument handling in Claude Code slash commands utilizes the $ARGUMENTS keyword or positional variables like $1 and $2, allowing your custom prompts to dynamically accept and process user inputs during workflow automation.

Can I integrate dynamic context and bash commands into Claude Code slash commands?

Yes, you can integrate dynamic context into Claude Code slash commands by embedding bash commands and file references directly within the prompt structure to load real-time state and environmental data.

What is the best way to standardize development workflows like git commits using prompt engineering?

The best way to standardize development workflows through prompt engineering is by building a custom slash command file that automatically stages git changes, checks status, and generates consistent commit messages.

Do I need YAML frontmatter to define a Claude Code slash command?

Yes, defining a Claude Code slash command requires YAML frontmatter to establish the command metadata, paired with required XML tags to separate the objective, process, and success criteria for robust prompt execution.