claude-powers-slash-commands
v1.0.2
Published
π Claude Powers - Essential slash commands for Claude Code
Maintainers
Readme
π Claude Powers
β¨ Key Features
π Intelligent Bug Detection - Automatically finds problematic patterns
β‘ Fast Analysis - Scans complete projects in seconds
π οΈ Fix Suggestions - Get automatic solutions for detected issues
π Detailed Reports - Clear outputs with metrics and statistics
βοΈ Flexible Configuration - Customize rules according to your project
π Multi-language - Support for JS, TS, React, Node.js and more
π Installation
π¦ NPM
# Global installation
npm install -g claude-powers-slash-commands
# Or in your project
npm install claude-powers-slash-commands
npx claude-powers installβ Verify Installation
npx claude-powers --version
npx claude-powers --helpπ― Immediate Usage
Once installed, you can use the commands directly in Claude Code:
Find Bugs
/find-bugs/find-bugs src/components --types=react --severity=highFind Unused Code
/find-unused-code/find-unused-code src/ --types=variables,functions --severity=mediumAutomate Git Workflow
/auto-commit/create-pr --type=feature --reviewers=@teamAutomatic Code Review
/code-review/code-review src/ --aspects=security,quality --severity=strictSpecific Analysis
/find-bugs backend/ --types=node,js --output=json
/find-unused-code --types=deps --bundle-impact=true
/auto-commit --type=hotfix --validate=allπ Available Commands
π₯ Super Powers (Most Impactful)
| Command | Description | Impact | Status |
|---------|-------------|---------|--------|
| /generate-tests | Automatic test generation with 90%+ coverage | βββββ | β
Available |
| /fix-bugs | Auto-detection and bug fixing (90% reduction) | βββββ | β
Available |
| /performance-turbo | Automatic optimization (60%+ improvement) | βββββ | β
Available |
| /security-fortress | Automatic protection (95%+ vulnerabilities) | βββββ | β
Available |
| /explain-code | Personal code teacher (80% onboarding) | βββββ | β
Available |
π οΈ Base Commands
| Command | Description | Status |
|---------|-------------|--------|
| /find-bugs | Detects bugs and problematic patterns | β
Available |
| /find-unused-code | Finds unused code, variables and files | β
Available |
| /auto-commit | Generates automatic commits with AI | β
Available |
| /create-pr | Creates intelligent pull requests | β
Available |
| /code-review | Complete automatic code review | β
Available |
π Usage Examples
π₯ Super Powers Examples
Generate Tests - Save 70% testing time
/generate-tests src/components/UserProfile.tsx --coverage=95%Result: 24 unit tests + 6 integration tests + 8 edge cases in 2 minutes
Fix Bugs - Reduce production bugs 90%
/fix-bugs --types=memory-leaks,null-pointers --confidence=highResult: 12 memory leaks + 8 null pointers fixed automatically
Performance Turbo - 60%+ automatic improvement
/performance-turbo --target=web --budget=strictResult: Bundle 847KBβ287KB, LCP 3.2sβ1.4s, Lighthouse 45β94
Security Fortress - Impenetrable fortress
/security-fortress --compliance=gdpr,owasp --harden=paranoidResult: 23 vulnerabilities eliminated, OWASP Top 10 compliant
Explain Code - Personal teacher
/explain-code src/algorithm.js --level=beginner --diagram=flowchartResult: Step-by-step explanation + diagrams + interactive examples
π οΈ Base Commands Examples
Find Bugs
# Ejecutar en tu proyecto
/find-bugs src/Expected output:
π CLAUDE POWERS - FIND BUGS REPORT
===================================
π SUMMARY:
βββββββββββββββ¬ββββββββ
β Severity β Count β
βββββββββββββββΌββββββββ€
β High β 2 β
β Medium β 5 β
β Low β 8 β
β Total β 15 β
βββββββββββββββ΄ββββββββ
π DETAILS:
π src/components/UserForm.tsx
β [HIGH] Line 23 - Comparison with == null
β οΈ [MEDIUM] Line 45 - useEffect without dependencies
π οΈ SUGGESTIONS:
β’ 12 automatic fixes available
β’ 2 critical issues require manual reviewFind Unused Code
# Detect unused code
/find-unused-codeExpected output:
π§Ή CLAUDE POWERS - UNUSED CODE REPORT
=====================================
π SUMMARY:
βββββββββββββββββββ¬ββββββββ¬ββββββββββ
β Category β Count β Size β
βββββββββββββββββββΌββββββββΌββββββββββ€
β Variables β 12 β 35 LOC β
β Functions β 5 β 85 LOC β
β Imports β 18 β 18 LOC β
β Files β 3 β 210 LOC β
β Total β 38 β 348 LOC β
βββββββββββββββββββ΄ββββββββ΄ββββββββββ
πΎ IMPACT: Bundle reducible by ~32KBAuto Commit & PR
# Generate intelligent commit
/auto-commit --interactiveExpected output:
π€ CLAUDE POWERS - AUTO COMMIT ANALYSIS
=======================================
π DETECTED CHANGES:
β’ Detected type: feat
β’ Suggested scope: auth
β’ 8 files changed, +292 -109
π¬ GENERATED MESSAGE:
feat(auth): implement OAuth2 authentication system
- Add LoginForm component with validation
- Implement AuthProvider for state management
- Add comprehensive test suite
β
READY TO COMMITAutomatic Code Review
# Review code quality
/code-review --format=summaryExpected output:
π¨βπ» CLAUDE POWERS - CODE REVIEW REPORT
=======================================
π OVERALL SCORE: 8.2/10 (GOOD)
π― EVALUATED ASPECTS:
β’ Quality: 8.5/10 (Excellent)
β’ Architecture: 7.8/10 (Good)
β’ Performance: 9.1/10 (Excellent)
β’ Security: 7.2/10 (Good)
β’ Testing: 7.9/10 (Good)
π¦ STATUS: β
APPROVED WITH SUGGESTIONSβοΈ Configuration
Basic Configuration
Create .claude/find-bugs-config.json in your project:
{
"severity": "medium",
"rules": {
"javascript": true,
"typescript": true,
"react": true,
"node": true
},
"exclude": [
"node_modules",
"dist",
"*.test.js"
]
}Advanced Configuration
{
"rules": {
"javascript": {
"enabled": true,
"checks": {
"equalityChecks": true,
"asyncAwait": true,
"promiseHandling": true
}
}
},
"customPatterns": [
{
"pattern": "console\\.log\\(",
"message": "Console.log detected",
"severity": "low"
}
]
}π οΈ For Developers
Project Structure
claude-powers/
βββ .claude/
β βββ commands/ # Command definitions
β βββ find-bugs-config.json
βββ scripts/ # Installation scripts
βββ package.json
βββ README.mdContributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/new-command - Commit your changes:
git commit -am 'Add new command' - Push to the branch:
git push origin feature/new-command - Create a Pull Request
Adding New Commands
- Create the command file in
.claude/commands/command-name.md - Define the configuration in
.claude/command-name-config.json - Update the installation script
- Add tests if applicable
π Use Cases
Daily Development
# Complete automated workflow
/find-bugs --severity=high
/find-unused-code --types=variables,imports --severity=medium
/code-review --aspects=quality,security --format=summary
/auto-commit --validate=lint,test
/create-pr --type=feature --draft=true
# Specific component review
/find-bugs src/components/Dashboard.tsx --types=react
/find-unused-code components/ --types=react --min-size=5CI/CD Pipeline
# .github/workflows/quality.yml
- name: Analyze Code
run: npx claude-powers find-bugs --output=json --severity=highPre-commit Hook
#!/bin/sh
npx claude-powers find-bugs --severity=highπ Roadmap
v1.1.0 - Q1 2024
- [ ]
/fix-bugscommand with auto-correction - [ ] ESLint integration
- [ ] Vue.js support
v1.2.0 - Q2 2024
- [ ]
/analyze-performancecommand - [ ] Historical metrics
- [ ] Web dashboard
v2.0.0 - Q3 2024
- [ ] Advanced AI for detection
- [ ] Customizable commands
- [ ] Command marketplace
π¦ Distribution
Claude Powers is available on npm for easy and fast installation.
π License
MIT License - see LICENSE for complete details.
π― Brand & Colors
- Primary Color:
#009a7f(Occupational Therapists Chile) - Typography: Inter, SF Pro, system-ui
- Icons: Phosphor Icons
