jack-michaud/faire/creating-slash-commands
Claude Code and agent skill by jack-michaud/faire
- community
Checking that the SKILL.md file is still in the repository.
Build custom slash commands in Claude Code with YAML frontmatter, permissions, and best practices. Use when creating automation workflows, project-specific commands, or standardizing repetitive tasks.
Install
npx vskill@latest install jack-michaud/faire/creating-slash-commandsSKILL.md
The same SKILL.md was published earlier as jack-michaud/faire/creating-slash-commands.
Creating Slash Commands
Overview
Slash commands automate workflows by encapsulating multi-step processes into reusable commands. They support YAML frontmatter for permissions, can integrate with CLI tools, and enable sophisticated decision logic.
When to Use
- Automate repetitive multi-step workflows
- Standardize team processes (issue triage, PR reviews, etc.)
- Integrate external tools (GitHub CLI, git, custom scripts)
- Create project-specific automation patterns
Process
- Create command file in
.claude/commands/[name].md - Add YAML frontmatter with permissions and description
- Write command prompt with clear steps and decision logic
- Use $ARGUMENTS variable for dynamic input
- Test command with
/<command-name> [args]
Command Structure
Basic Template
YAML Frontmatter Fields
allowed-tools: Restrict which tools the command can use- Examples:
Bash(gh:*),Bash(git:*),Read,Edit,Write - Use wildcards:
Bash(pytest:*)allows any pytest command description: One-line summary shown in command list
Permission Patterns
Reference Example: Issue Triage Command
This project's /plan-issue demonstrates sophisticated automation:
Key strengths:
- Specific tool permissions (only issue view/comment)
- Multi-step workflow with decision branching
- GitHub CLI integration
- Context-aware (reads codebase before planning)
- Conditional logic (asks questions when unclear)
Best Practices
Permissions
- ✅ Do: Use specific tool permissions to limit scope
- ✅ Do: Use wildcards for command families (
Bash(git:*)) - ❌ Don't: Grant broad permissions without reason
Command Design
- ✅ Do: Include decision logic for complex workflows
- ✅ Do: Read relevant context before taking action
- ✅ Do: Use CLI tool integration (gh, git, etc.)
- ❌ Don't: Assume context without verification
- ❌ Don't: Skip validation steps
Structure
- ✅ Do: Number steps clearly
- ✅ Do: Use $ARGUMENTS for user input
- ✅ Do: Include clear success criteria
- ❌ Don't: Write vague instructions
- ❌ Don't: Omit error handling guidance
Integration Patterns
With Skills
Reference skill files in commands:
With GitHub CLI
With Git
Common Use Cases
Workflow Automation
- Issue triage and planning
- PR review orchestration
- Release preparation
- Testing workflows
Code Operations
- Batch refactoring
- Migration scripts
- Code generation
- Style enforcement
Project Management
- Status reporting
- Documentation generation
- Dependency updates
- Configuration management
Anti-patterns
- ❌ Don't: Create commands for single-step tasks
- ✅ Do: Reserve commands for multi-step workflows
- ❌ Don't: Grant unlimited tool access
- ✅ Do: Use specific allowed-tools restrictions
- ❌ Don't: Skip context gathering
- ✅ Do: Read relevant files before action
- ❌ Don't: Write commands without decision logic
- ✅ Do: Include conditional workflows for edge cases
- ❌ Don't: Ignore error scenarios
- ✅ Do: Specify what to do when things fail
Resources
- Official Docs: https://docs.claude.com/en/docs/claude-code/slash-commands
- Settings Reference: https://docs.claude.com/en/docs/claude-code/settings
- Permissions Guide: https://docs.claude.com/en/docs/claude-code/iam
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingjack-software/skills/creating-slash-commands/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jack-michaud/faire/creating-slash-commands)