MUST load this skill when creating custom slash commands, standardizing workflows, or adding reusable operations. Secondary: understanding command structure, learning YAML configuration, or optimizing existing commands. Create, audit, and maintain custom slash commands.
Create and manage custom slash commands that expand reusable prompts with `/command-name` syntax. Use this when building standardized workflows, auditing existing commands, or adding dynamic context with `!` and `@` syntax.
/plugin marketplace add Git-Fg/thecattoolkit/plugin install git-fg-thecattoolkit@Git-Fg/thecattoolkitThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/templates/agent-delegator.mdassets/templates/argument-handler.mdassets/templates/background-agent-delegator.mdassets/templates/context-loader.mdassets/templates/hybrid-workflow.mdassets/templates/parallel-fan-out.mdassets/templates/skill-delegator_minimalistic.mdassets/templates/skill-delegator_structured.mdreferences/arguments.mdreferences/background-patterns.mdreferences/command-structure-standards.mdreferences/common-patterns.mdreferences/cross-platform.mdreferences/frontmatter.mdreferences/patterns.mdreferences/permissions-guide.mdreferences/semantic-categories.mdreferences/tool-restrictions.mdreferences/ultra-minimalist-commands.mdreferences/xml-markdown-decision-framework.mdCreate effective slash commands for Claude Code that enable users to trigger reusable prompts with /command-name syntax. Slash commands expand as prompts in the current conversation, allowing teams to standardize workflows and operations. This skill teaches you to structure commands with YAML frontmatter, dynamic context loading using ! and @ syntax, and intelligent argument handling.
.claude/commands/ directory in project (for portability)command-name.md filedescription)/command-name [args]Note: Use ~/.claude/commands/ (personal) only if specifically requested for global availability.
For comprehensive XML/Markdown decision guidelines, see:
File: .claude/commands/optimize.md
---
description: Optimize code performance
---
Optimize the code for better performance
File: .claude/commands/review-code.md
---
description: Review code quality
---
## Objective
Review the code for quality issues and improvements.
## Process
1. **Read the code** - Understand the implementation
2. **Identify issues** - Find bugs, inefficiencies, and improvements
3. **Suggest improvements** - Provide actionable recommendations
## Success Criteria
- Code quality assessment provided
- Specific issues identified
- Actionable recommendations given
Pattern: Single-line instruction, no sections
Best for: Direct skill invocation
---
description: Debug this code
---
Load the engineering skill to debug this code
Pattern: Objective, Process, Success Criteria
Best for: Multi-step workflows
---
description: Create a test plan
---
## Objective
Create a comprehensive test plan for the feature.
## Process
1. **Analyze requirements** - Understand what needs testing
2. **Identify test cases** - List all scenarios
3. **Prioritize tests** - Focus on critical paths
## Success Criteria
- Test plan covers all requirements
- Critical paths identified
- Test cases are actionable
Pattern: Structured + dynamic context
Best for: Commands that need file/git context
---
description: Create a git commit
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
---
## Context
Current git status: ! `git status`
## Objective
Create a well-structured git commit.
## Process
1. **Review changes** - Understand what was modified
2. **Write message** - Follow conventional commits format
3. **Execute commit** - Stage and commit changes
## Success Criteria
- Commit follows conventional format
- Message is clear and descriptive
- All changes properly staged
---
description: [Clear, actionable description]
---
[Single instruction or Objective + Process + Success Criteria]
---
description: [Description]
argument-hint: [input] # If needed
allowed-tools: [restrictions] # If needed
---
## Objective
[What and why]
## Process
1. [Step 1]
2. [Step 2]
3. [Step 3]
## Success Criteria
- [Criterion 1]
- [Criterion 2]
Determine pattern:
Create file:
.claude/commands/command-name.md~/.claude/commands/command-name.md (only if specifically requested)Write content:
Test: Run /command-name to verify it works
Use Ultra-Minimalist when:
Use Structured when:
Use Advanced when:
For commands that need routing or complex logic:
Assess complexity:
Choose approach:
Create file:
Optimize:
Update description:
---
description: Updated description with better trigger words
---
Add arguments:
---
description: Review code for issues
argument-hint: [file-or-directory]
---
Review $1 for code quality, standards compliance, and potential improvements.
Add tool restrictions:
---
description: Create git commit
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
---
Create a git commit following our standards.
Structure:
Content:
Functionality:
For complete command patterns, examples, and best practices, see:
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.