Loading...
Loading...
Expert guidance for creating Claude Code slash commands. Use when working with slash commands, creating custom commands, understanding command structure, or learning YAML configuration.
npx skill4agent add glittercowboy/taches-cc-resources create-slash-commands---
description: Analyze this code for performance issues and suggest optimizations
---
Analyze the performance of this code and suggest three specific optimizations:/optimize<objective><objective>
What needs to happen and why this matters.
Context about who uses this and what it accomplishes.
</objective><process><steps><process>
Sequential steps to accomplish the objective:
1. First step
2. Second step
3. Final step
</process><success_criteria><success_criteria>
Clear, measurable criteria for successful completion.
</success_criteria><context><context>
Current state: ! `git status`
Relevant files: @ package.json
</context><verification><verification>
Before completing, verify:
- Specific test or check to perform
- How to confirm it works
</verification><testing><testing>
Run tests: ! `npm test`
Check linting: ! `npm run lint`
</testing><output><output>
Files created/modified:
- `./path/to/file.ext` - Description
</output>---
name: example-command
description: Does something useful
argument-hint: [input]
---
<objective>
Process $ARGUMENTS to accomplish [goal].
This helps [who] achieve [outcome].
</objective>
<context>
Current state: ! `relevant command`
Files: @ relevant/files
</context>
<process>
1. Parse $ARGUMENTS
2. Execute operation
3. Verify results
</process>
<success_criteria>
- Operation completed without errors
- Output matches expected format
</success_criteria><objective><process><success_criteria>/check-todos/first-principles<objective><process><success_criteria><context><verification><output>/commit/create-prompt/run-prompt$ARGUMENTS<objective><process>argument-hint<output><verification><testing><success_criteria>/fix-issue [issue-number]/review-pr [pr-number]/optimize [file-path]/commit [type]argument-hint: [description]$ARGUMENTS/check-todos/first-principles/whats-nextargument-hint$ARGUMENTS<objective><objective>
Fix issue #$ARGUMENTS following project conventions.
This ensures bugs are resolved systematically with proper testing.
</objective><process><process>
1. Understand issue #$ARGUMENTS from issue tracker
2. Locate relevant code
3. Implement fix
4. Add tests
</process><context><context>
Issue details: @ issues/$ARGUMENTS.md
Related files: ! `grep -r "TODO.*$ARGUMENTS" src/`
</context>$1$2$3---
argument-hint: <pr-number> <priority> <assignee>
---
<objective>
Review PR #$1 with priority $2 and assign to $3.
</objective>/review-pr 456 high alice.claude/commands/(project)/help~/.claude/commands/(user)/helpcommand-name.md/command-namedescription: Analyze this code for performance issues and suggest optimizations/helpallowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)allowed-tools: [Read, Edit, Write]allowed-tools: SequentialThinkingallowed-tools: Bash(git add:*).claude/commands/fix-issue.md---
description: Fix issue following coding standards
---
Fix issue #$ARGUMENTS following our coding standards/fix-issue 123 high-priority.claude/commands/review-pr.md---
description: Review PR with priority and assignee
---
Review PR #$1 with priority $2 and assign to $3/review-pr 456 high alice---
description: Create a git commit
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
---
## Context
- Current git status: ! `git status`
- Current git diff: ! `git diff HEAD`
- Current branch: ! `git branch --show-current`
- Recent commits: ! `git log --oneline -10`
## Your task
Based on the above changes, create a single git commit.@---
description: Review implementation
---
Review the implementation in @ src/utils/helpers.js# All slash commands should have XML-structured bodies<objective><process><success_criteria># Good
description: Analyze this code for performance issues and suggest optimizations
# Bad
description: Optimize stuffCurrent git status: ! `git status`
Files changed: ! `git diff --name-only`# For git commands - prevent running arbitrary bash
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
# For analysis - thinking only
allowed-tools: SequentialThinkingFind and fix issue #$ARGUMENTSReview @ package.json for dependencies
Analyze @ src/database/* for schema---
description: Review this code for security vulnerabilities
---
<objective>
Review code for security vulnerabilities and suggest fixes.
</objective>
<process>
1. Scan code for common vulnerabilities (XSS, SQL injection, etc.)
2. Identify specific issues with line numbers
3. Suggest remediation for each issue
</process>
<success_criteria>
- All major vulnerability types checked
- Specific issues identified with locations
- Actionable fixes provided
</success_criteria>---
description: Create a git commit
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
---
<objective>
Create a git commit for current changes following repository conventions.
</objective>
<context>
- Current status: ! `git status`
- Changes: ! `git diff HEAD`
- Recent commits: ! `git log --oneline -5`
</context>
<process>
1. Review staged and unstaged changes
2. Stage relevant files
3. Write commit message following recent commit style
4. Create commit
</process>
<success_criteria>
- All relevant changes staged
- Commit message follows repository conventions
- Commit created successfully
</success_criteria>---
description: Fix issue following coding standards
argument-hint: [issue-number]
---
<objective>
Fix issue #$ARGUMENTS following project coding standards.
This ensures bugs are resolved systematically with proper testing.
</objective>
<process>
1. Understand the issue described in ticket #$ARGUMENTS
2. Locate the relevant code in codebase
3. Implement a solution that addresses root cause
4. Add appropriate tests
5. Verify fix resolves the issue
</process>
<success_criteria>
- Issue fully understood and addressed
- Solution follows coding standards
- Tests added and passing
- No regressions introduced
</success_criteria>---
description: Optimize code performance
argument-hint: [file-path]
---
<objective>
Analyze performance of @ $ARGUMENTS and suggest specific optimizations.
This helps improve application performance through targeted improvements.
</objective>
<process>
1. Review code in @ $ARGUMENTS for performance issues
2. Identify bottlenecks and inefficiencies
3. Suggest three specific optimizations with rationale
4. Estimate performance impact of each
</process>
<success_criteria>
- Performance issues clearly identified
- Three concrete optimizations suggested
- Implementation guidance provided
- Performance impact estimated
</success_criteria>/optimize src/utils/helpers.js---
name: command-name
description: Clear description of what it does
argument-hint: [input] # Only if arguments needed
allowed-tools: [...] # Only if tool restrictions needed
---<objective><process><success_criteria><context>commands<verification><testing><output>argument-hint$ARGUMENTSargument-hint$ARGUMENTS.claude/commands/command-name.md~/.claude/commands/command-name.mddescriptionargument-hintallowed-tools<objective><process><success_criteria>$ARGUMENTS$1$2$ARGUMENTS<process><success_criteria>