creating-commands

Create Claude Code slash commands with frontmatter, preflight checks, and task instructions.

Updated Jan 14, 2026
One-click install
npx skills add https://github.com/Mission42-ai/m42-claude-plugins --skill creating-commands-mission42-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-commands
Source: https://github.com/Mission42-ai/m42-claude-plugins/tree/main/plugins/m42-meta-toolkit/skills/creating-commands
Command: npx skills add https://github.com/Mission42-ai/m42-claude-plugins --skill creating-commands-mission42-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides structured guidance for building Claude Code slash commands with deliberate frontmatter, explicit preflight checks, and safe inter-skill orchestration.

Core Features & Use Cases

  • Defines strict frontmatter and sections for command workflows
  • Demonstrates preflight checks, context gathering, and task instructions
  • Encourages safe integration with skills and subagents

Quick Start

Implement a new slash command by following the Creating Commands guidance to structure frontmatter, preflight checks, context, and task instructions. No code fences or external tooling required in this section

Frequently Asked Questions about creating-commands

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

FAQPage Schema
How do I design Claude Code slash commands with preflight checks?

Build robust Claude Code slash commands by structuring frontmatter, preflight checks, context, task instructions, and success criteria. This ensures safe execution and maintainability.

When should I use slash commands instead of skills in Claude Code?

Use slash commands for structured, repeatable workflows requiring explicit frontmatter and tool restrictions. Use skills for broader, dynamic orchestration. Commands excel at concise, testable task execution.

How do I enforce tool restrictions in Claude Code command design?

Enforce tool restrictions in Claude Code command design by defining explicit rules within the command's frontmatter and task instructions. This prevents unauthorized tool usage during execution.

Can I use subagents for inter-skill orchestration in slash commands?

Yes, you can use subagents for safe inter-skill orchestration by guiding explicit Skill() and Task() invocations within your slash commands. This enforces structured delegation patterns.

What is the best way to structure frontmatter for Claude Code commands?

The best way to structure frontmatter for Claude Code commands is to define strict metadata fields specifying tool restrictions, preflight requirements, and delegation patterns for safe execution.