Loading...
Loading...
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.
npx skill4agent add pr-pm/prpm slash-command-builder---
description: Brief description shown in autocomplete
argument-hint: [arg1] [arg2] <optional-arg>
allowed-tools: Bash(git *), Read, Write
model: claude-3-5-sonnet-20241022
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.claude/commands/my-command.md~/.claude/commands/my-command.md.claude/commands/frontend/component.md → /component (project:frontend)/review-pr/optimize-code/review-pr/fix-lint/review-pull-request-thoroughly/rpr---
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---
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---
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 GitHubFRONTMATTER.md---
description: What this command does
------
description: Complete command with all options
argument-hint: [required] <optional>
allowed-tools: Bash(git *), Read(**/*.ts), Write
model: claude-3-5-sonnet-20241022
disable-model-invocation: false
---.claude/commands//command-nameallowed-tools!---
description: Show git status
allowed-tools: Bash(git status:*)
---
Current repository status:
!`git status`
Recent commits:
!`git log --oneline -5`@---
description: Review specific file
argument-hint: <file-path>
---
Review this file for code quality:
@$1
Focus on:
- Type safety
- Error handling
- Performance
- Maintainability---
description: Safe git status check
allowed-tools: Bash(git status:*), Bash(git diff:*)
---
Show current changes:
!`git status`
!`git diff --stat`Bash(command:*)Read(path/to/*.ts)WriteGlobGrepEdit---
description: Quick syntax fix
model: claude-3-5-haiku-20241022
---
Fix syntax errors in the current file quickly.claude-3-5-haiku-20241022claude-3-5-sonnet-20241022claude-opus-4-20250514---
description: Destructive operation
disable-model-invocation: true
---
!`rm -rf node_modules`
!`npm install`---
description: Review code changes
argument-hint: [file-or-pr]
allowed-tools: Bash(git *), Read, Grep
---
Review $ARGUMENTS for:
1. **Code Quality**
- Clean, readable code
- Proper naming conventions
- DRY principle
2. **Security**
- Input validation
- SQL injection risks
- XSS vulnerabilities
3. **Performance**
- Inefficient algorithms
- Unnecessary computations
- Memory leaks
4. **Tests**
- Unit test coverage
- Edge cases handled
- Integration tests
Provide specific file:line references for all issues.---
description: Create feature branch
argument-hint: <feature-name>
allowed-tools: Bash(git *)
---
Create and switch to feature branch:
!`git checkout -b feature/$1`
!`git push -u origin feature/$1`
Branch feature/$1 created and pushed to origin.---
description: Generate API docs
argument-hint: <file-path>
allowed-tools: Read
---
Generate comprehensive API documentation for:
@$1
Include:
- Function signatures with types
- Parameter descriptions
- Return value documentation
- Usage examples
- Error cases---
description: Generate test cases
argument-hint: <file-to-test>
allowed-tools: Read, Write
---
Generate test cases for:
@$1
Create tests covering:
- Happy path scenarios
- Edge cases
- Error conditions
- Boundary values
Use the existing test framework style./my-command.claude/commands/~/.claude/commands/.claude/commands/my-command.md$1/command arg1 arg2$1$2${1}$ARGUMENTSargument-hintallowed-toolsBash(git *)BashbashRead(**/*.ts)disable-model-invocation: truedescription/review-prcode-reviewerargument-hint: [required] <optional> [choices: a|b|c]Generate a JSON response with this structure:
{
"issues": [],
"suggestions": []
}Example output:
## Security Issues
- **SQL Injection** (file.ts:42) - Use parameterized queriesallowed-tools: Bashallowed-tools: Bash(git *).claude/commands/.claude/commands/
├── git/
│ ├── feature.md
│ ├── fix.md
│ └── release.md
└── testing/
├── unit.md
└── e2e.md