slash-command-builder

Generate Claude Code slash command metadata with frontmatter and tool permissions.

121|16|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/pr-pm/prpm --skill slash-command-builder-pr-pm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slash-command-builder
Source: https://github.com/pr-pm/prpm/tree/main/.claude/skills/slash-command-builder
Command: npx skills add https://github.com/pr-pm/prpm --skill slash-command-builder-pr-pm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the guesswork and trial-and-error when creating Claude Code slash commands, providing expert guidance and best practices.

Core Features & Use Cases

  • Command Creation: Step-by-step guidance for building effective slash commands from scratch.
  • Frontmatter Optimization: Complete reference for all YAML frontmatter options and configurations.
  • Use Case: Imagine you want to create a command that automatically reviews pull requests. Use this Skill to structure the command, configure tool permissions, and test it properly.

Quick Start

Create a new slash command that formats JSON files with customizable indentation.

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 a slash command for Claude Code?

Slash commands for Claude Code require YAML frontmatter metadata that specifies the command name, description, allowed tools, and model configuration. This Skill provides step-by-step guidance to structure frontmatter correctly, configure tool permissions, and generate self-contained command metadata that Claude Code can reliably retrieve and execute.

What options are available in Claude Code slash command frontmatter?

Frontmatter for Claude Code slash commands includes YAML configuration for command metadata, argument hints, tool permissions, model selection, disable-model-invocation flags, and file references. This Skill covers the complete reference for all supported frontmatter options and their proper configuration to ensure reliable command execution.

Can I control which tools a slash command can access?

Yes. Claude Code slash commands support granular tool permissions through frontmatter configuration. This Skill teaches how to set allowed-tools permissions, manage tool access restrictions, and structure tool-permission metadata so your commands invoke only the capabilities you intend.

How do I troubleshoot when a slash command won't invoke correctly?

Command invocation issues typically stem from malformed frontmatter, incorrect model selection, or misconfigured tool permissions. This Skill covers troubleshooting invocation behavior by validating frontmatter structure, verifying model and tool configuration, and applying standardized output formats to resolve execution failures.

What's the best way to structure a complex slash command?

Complex slash commands benefit from careful frontmatter design, precise argument hints, explicit tool permissions, and model selection tuned to the task. This Skill provides best practices for building effective commands from scratch, including strategies for self-contained metadata that scales across multiple use cases and refinement cycles.