create-slash-commands

Create reusable Claude Code slash commands with YAML frontmatter and XML bodies.

Updated Jun 22, 2026
One-click install
npx skills add https://github.com/Elad73/agentic-base-layer --skill create-slash-commands-elad73
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-slash-commands
Source: https://github.com/Elad73/agentic-base-layer/tree/main/global/skills/create-slash-commands
Command: npx skills add https://github.com/Elad73/agentic-base-layer --skill create-slash-commands-elad73

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you design reliable Claude Code slash commands that turn repeated workflows into standardized, reusable prompts. It reduces prompt drift, improves team consistency, and makes complex actions easier to trigger on demand.

Core Features & Use Cases

  • Command Design: Structures slash commands with clear objectives, step-by-step processes, and measurable success criteria.
  • Arguments and Context: Supports both all-arguments and positional-argument patterns, plus live context loading from commands and file references.
  • Safety and Control: Recommends XML-formatted bodies, optional tool restrictions, and validation patterns for safer command execution.
  • Use Cases: Create commands for code review, git commits, issue fixes, file-specific analysis, and multi-step project workflows.

Quick Start

Ask the skill to draft a Claude Code slash command for your workflow, and it will produce a frontmatter-and-XML prompt ready to save as a command file.

Frequently Asked Questions about create-slash-commands

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

FAQPage Schema
How do I create reusable Claude Code slash commands for automated workflows?

Slash commands in Claude Code are structured prompt templates that turn repeated workflows into standardized, reusable prompts. They use YAML frontmatter and XML-structured bodies to reduce prompt drift and improve consistency across repeatable agent tasks.

How do I handle arguments and file references in a Claude Code slash command?

Claude Code slash commands support both all-arguments and positional-argument patterns. You can load dynamic context by integrating file references and command outputs directly within the XML-structured prompt body.

Can I restrict tool usage and add safety validation to Claude Code slash commands?

Yes, you can apply optional tool restrictions and validation patterns to Claude Code slash commands. Defining clear success criteria and using XML-formatted bodies ensures safer, controlled command execution.

What is the best way to structure a slash command for multi-step project workflows?

The best way to structure multi-step slash commands is to use YAML frontmatter for configuration and an XML-structured body for the process. This ensures clear objectives, step-by-step logic, and measurable success criteria for complex agent tasks.

Does building Claude Code slash commands require any external dependencies?

No, building Claude Code slash commands requires no external dependencies. The prompt design relies entirely on native formatting patterns like YAML frontmatter and XML structure to define arguments and context loading.