slash-commands

Create reusable Claude Code slash commands with YAML frontmatter and validation scripts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/StefanMaksimek/dev-challenge-2026 --skill slash-commands-stefanmaksimek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slash-commands
Source: https://github.com/StefanMaksimek/dev-challenge-2026/tree/main/.claude/skills/slash-commands
Command: npx skills add https://github.com/StefanMaksimek/dev-challenge-2026 --skill slash-commands-stefanmaksimek

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yaml, and includes scripts (resource) components.

What problem does it solve?

It solves the challenge of turning frequent prompts into reusable slash commands for Claude Code.

Core Features & Use Cases

  • Create project-wide commands under .claude/commands and personal commands under ~/.claude/commands
  • Include frontmatter-driven options like allowed-tools, argument-hint, and templates to enforce structure
  • Validate command syntax and best practices with a lightweight validation script, ensuring consistency across deployments

Quick Start

To set up a basic slash command, add a new Markdown file under .claude/commands/ (for project commands) or under ~/.claude/commands/ (for personal commands) with the required frontmatter and content.

Frequently Asked Questions about slash-commands

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

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

To create reusable slash commands for Claude Code, add a Markdown file with YAML frontmatter under .claude/commands for project scope or ~/.claude/commands for personal scope. This standardizes frequent prompts and enforces structure.

What is YAML frontmatter configuration used for in Claude Code commands?

YAML frontmatter configuration in Claude Code commands defines allowed-tools, argument-hint, and templates. This enforces consistent structure and validation workflows across project-wide and personal command deployments.

How do I validate slash command syntax and best practices for Claude Code?

You validate slash command syntax using a lightweight validation script that checks YAML frontmatter structure and conventions. This ensures consistency and verifies syntax across your Claude Code command files.

Does the slash command validation script require any dependencies?

Yes, the slash command validation script requires the yaml dependency. This allows it to properly parse and verify the YAML frontmatter structure within your Claude Code command files.

What is the difference between project-scope and personal-scope commands in Claude Code?

Project-scope commands are stored under .claude/commands and shared across a project, while personal-scope commands are stored under ~/.claude/commands for individual use. Both use frontmatter-driven configuration for consistency.

Can I use templates to automate argument handling in Claude Code slash commands?

Yes, you can use templates within frontmatter-driven options to automate argument handling and enforce structure in Claude Code slash commands. This streamlines frequent prompts into reusable, validated configurations.