Creating Slash Commands

Create slash commands with YAML frontmatter to automate multi-step workflows.

7|1|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/jack-michaud/faire --skill creating-slash-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Creating Slash Commands
Source: https://github.com/jack-michaud/faire/tree/main/jack-software/skills/creating-slash-commands
Command: npx skills add https://github.com/jack-michaud/faire --skill creating-slash-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Slash commands automate workflows by encapsulating multi-step processes into reusable commands and enabling permissions.

Core Features & Use Cases

  • YAML frontmatter for permissions
  • Command prompts with steps and decision logic
  • Test patterns and CLI integration

Quick Start

Create a new file under .claude/commands/[name].md with frontmatter and a scripted prompt, then test with /[name].

Frequently Asked Questions about Creating Slash Commands

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

FAQPage Schema
How do I automate multi-step workflows with slash commands?

Slash commands automate workflows by encapsulating multi-step processes into reusable commands. Create a file under .claude/commands/[name].md with YAML frontmatter defining permissions (allowed-tools), a command prompt using $ARGUMENTS, and explicit decision logic. Test via /<command> [args].

What permissions can I set for slash commands?

Slash commands use YAML frontmatter to specify allowed-tools, controlling which CLI tools and integrations (GitHub CLI, git, custom scripts) each command can access. This enables secure automation by restricting permissions per command.

Can I use slash commands for GitHub and git automation?

Yes. Slash commands integrate with GitHub CLI, git, and custom scripts for project automation, issue triage, and PR reviews. Define tool access in YAML frontmatter and reference them in your command prompt logic.

How do I structure a slash command prompt?

Structure command prompts with $ARGUMENTS placeholders for user input, explicit decision logic for multi-step workflows, and a .claude/commands model directory. This creates testable, reusable automation that handles complex workflows end-to-end.

What's the workflow for testing slash commands?

Test slash commands by running /<command> [args] in your CLI. The command executes the prompt with specified arguments, allowing you to verify decision logic and tool integrations before deploying to production workflows.

Do I need coding experience to create slash commands?

Slash commands require familiarity with YAML syntax for permissions and CLI tools like GitHub CLI or git. You write command prompts with step-by-step logic rather than code, making automation accessible without programming expertise.