slash-command-builder
БесплатноБез исполняемых скриптовНе проверенUse when creating, improving, or troubleshooting Claude Code slash commands. Expert guidance on command structure, arguments, frontmatter, tool permissions…
Об этом скилле
Slash Command Builder - Claude Code Command Expert
Use this skill when creating, improving, or troubleshooting Claude Code slash commands. Provides expert guidance on command structure, syntax, frontmatter configuration, and best practices.
When to Use This Skill
Activate this skill when:
- User asks to create a new slash command
- User wants to improve an existing command
- User needs help with command arguments or frontmatter
- User is troubleshooting command invocation issues
- User wants to understand slash command capabilities
- User asks about the difference between commands and skills
Quick Reference
Command File Structure
---
description: Brief description shown in autocomplete
argument-hint: [arg1] [arg2] <optional-arg>
allowed-tools: Bash(git *), Read, Write
model: claude-sonnet-4-6
disable-model-invocation: false
---
Your command prompt here with $ARGUMENTS or $1, $2, etc.
Use !`command` for bash execution
Use @file.txt for file references
File Locations
Project commands (shared with team):
.claude/commands/my-command.md
Personal commands (individual use):
~/.claude/commands/my-command.md
Organized commands (namespaced):
.claude/commands/frontend/component.md → /component (project:frontend)
Creating Effective Slash Commands
Step 1: Identify the Use Case
Good candidates for slash commands:
- Frequently repeated prompts
- Simple, single-purpose tasks
- Quick code reviews or analyses
- Common git workflows
- Standard documentation tasks
NOT good for slash commands (use Skills instead):
- Complex multi-step workflows
- Context-aware behavior
- Team standardization needs
- Workflows requiring multiple files
Step 2: Choose Command Name
Best practices:
- Use lowercase with hyphens:
/review-pr,/optimize-code - Make it memorable and intuitive
- Avoid conflicts with built-in commands
- Keep it short (2-3 words max)
Examples:
- ✅
/review-pr- Clear, concise - ✅
/fix-lint- Action-oriented - ❌
/review-pull-request-thoroughly- Too verbose - ❌
/rpr- Too cryptic
Step 3: Design the Prompt
Simple command (no arguments):
---
description: Analyze code for performance bottlenecks
---
Analyze the current file for performance issues:
1. Identify O(n²) or worse algorithms
2. Find unnecessary re-renders or computations
3. Check for memory leaks
4. Suggest optimizations with code examples
Command with all arguments:
---
description: Generate component boilerplate
argument-hint: <component-name> <type>
---
Create a $ARGUMENTS component following our style guide:
- Use TypeScript with strict types
- Include prop interfaces
- Add JSDoc comments
- Export as default
Command with positional arguments:
---
description: Review pull request
argument-hint: [pr-number] [reviewer]
---
Review PR #$1 and assign to @$2:
1. Check code quality and style
2. Verify tests are included
3. Look for security issues
4. Suggest improvements
5. Add comments in GitHub
Step 4: Add Frontmatter Configuration
See FRONTMATTER.md in this skill directory for complete frontmatter options.
Minimal frontmatter:
---
description: What this command does
---
Full-featured frontmatter:
---
description: Complete command with all options
argument-hint: [required] <optional>
allowed-tools: Bash(git *), Read(**/*.ts), Write
model: claude-sonnet-4-6
disable-model-invocation: false
---
Step 5: Test the Command
- Save the file to
.claude/commands/ - Invoke with
/command-name - Check argument substitution works
- Verify tool permissions if using
allowed-tools - Test edge cases (missing args, wrong types)
Advanced Features
Bash Execution
Execute shell commands inline with ! prefix:
---
description: Show git status
allowed-tools: Bash(git status:*)
---
Current repository status:
!`git status`
Recent commits:
!`git log --oneline -5`
File References
Include file contents with @ prefix:
---
description: Review specific file
argument-hint: <file-path>
---
Review this file for code quality:
@$1
Focus on:
- Type safety
- Error handling
- Performance
- Maintainability
Tool Permissions
Restrict which tools Claude can use:
---
description: Safe git status check
allowed-tools: Bash(git status:*), Bash(git diff:*)
---
Show current changes:
!`git status`
!`git diff --stat`
Tool permission syntax:
Bash(command:*)- Allow specific command with any argsRead(path/to/*.ts)- Allow reading TypeScript files in pathWrite- Allow writing any fileGlob,Grep,Edit- Other available tools
Model Selection
Override default model for specific commands:
---
description: Quick syntax fix
model: claude-haiku-4-5-20251001
---
Fix syntax errors in the current file quickly.
When to use different models:
- `cl
Установить slash-command-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл slash-command-builder?
Use when creating, improving, or troubleshooting Claude Code slash commands. Expert guidance on command structure, arguments, frontmatter, tool permissions, and best practices for building effective custom commands.
Как установить скилл slash-command-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл slash-command-builder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic