superpowers
9
总安装量
8
周安装量
#31226
全站排名
安装命令
npx skills add https://github.com/founderjourney/claude-skills --skill superpowers
Agent 安装分布
opencode
6
gemini-cli
5
claude-code
5
codex
5
github-copilot
4
amp
4
Skill 文档
Superpowers
A structured software development framework that transforms how coding agents approach developmentâpreventing the “write code immediately” antipattern.
When to Use This Skill
- Complex feature development
- Multi-file refactoring
- Test-driven development
- Code review processes
- Systematic debugging
- Team collaboration with AI
The Philosophy
Traditional AI coding:
User: "Add auth to the app"
AI: *immediately writes 500 lines of code*
Superpowers approach:
User: "Add auth to the app"
AI: "Let me understand requirements first..."
â Questions â Design â Plan â Execute â Review
Core Workflow
Phase 1: Understanding
1. Ask clarifying questions
2. Explore existing codebase
3. Understand constraints
4. Validate assumptions
Phase 2: Design
1. Create isolated workspace (git branch)
2. Break work into 2-5 minute tasks
3. Define exact specifications
4. Get approval before coding
Phase 3: Execution
1. RED: Write failing test
2. GREEN: Minimum code to pass
3. REFACTOR: Clean up
4. Review before next task
Phase 4: Review
1. Specification compliance check
2. Code quality review
3. Integration verification
4. Branch completion decision
Key Principles
1. Design Before Code
Never write code without understanding:
- What problem are we solving?
- What are the constraints?
- How does it fit existing code?
- What are the edge cases?
2. Small, Focused Tasks
Each task should be:
- Completable in 2-5 minutes
- Single responsibility
- Independently testable
- Clear success criteria
3. Test-First Development
RED â GREEN â REFACTOR
- Write test first
- Minimum code to pass
- Clean up afterward
- Never skip this cycle
4. Systematic, Not Ad-hoc
âââââââââââââââââââââââââââââââââââââââ
â Systematic vs. Ad-hoc â
âââââââââââââââââââââââââââââââââââââââ¤
â Plan then execute â Jump in â
â Verify with tests â Hope it worksâ
â Review each step â Review at endâ
â Evidence-based â Assumption â
âââââââââââââââââââââââââââââââââââââââ
5. Evidence Over Assumption
- Don’t assume code worksâverify
- Don’t assume understandingâvalidate
- Don’t assume completionâprove
Skills Library
Testing
- Unit test patterns
- Integration testing
- Test coverage analysis
- Mocking strategies
Debugging
1. Reproduce the issue
2. Isolate the cause
3. Root cause analysis
4. Verify the fix
5. Prevent regression
Collaboration
- Brainstorming: Explore options
- Planning: Structure approach
- Parallel execution: Multiple agents
- Review: Quality gates
Meta-Skills
- Extending the framework
- Custom skill creation
- Workflow optimization
How to Use
Starting a Feature
I want to add user authentication.
Help me think through:
1. What auth mechanism?
2. Session vs JWT?
3. Where to store credentials?
4. What existing code to modify?
During Development
I'm implementing the login endpoint.
Current state:
- User model exists
- Password hashing ready
Next: Create POST /login endpoint
Tests first, then implementation.
Code Review
Review my changes:
[paste diff]
Check against:
- Original spec
- Test coverage
- Code quality
- Security concerns
Example: Adding a Feature
1. Discovery
User: "Add forgot password feature"
Agent: "Before we start, let me understand:
1. How should the reset link be delivered? (email?)
2. What's the token expiry? (1 hour?)
3. Should we rate limit attempts?
4. Any existing email infrastructure?"
2. Planning
Tasks:
1. Create password_reset_tokens table
2. Add POST /forgot-password endpoint
3. Add POST /reset-password endpoint
4. Create email template
5. Add rate limiting middleware
3. Execution (Task 1)
## Task: Create password_reset_tokens table
### Test (RED)
- Test migration creates table
- Test table has correct columns
### Implementation (GREEN)
- Create migration file
- Define schema
### Verify
- Run migration
- Check table exists
4. Review
## Task 1 Complete
â Migration runs successfully
â Table has: id, user_id, token, expires_at
â Foreign key constraint works
Ready for Task 2?
Best Practices
- Don’t Rush: Speed comes from fewer mistakes
- Ask Questions: Clarify before implementing
- Small Steps: Easier to verify and debug
- Test Everything: Trust comes from evidence
- Review Often: Catch issues early
Integration
Available for:
- Claude Code: Via marketplace
- Codex: Plugin installation
- OpenCode: Direct integration
Anti-Patterns to Avoid
- Writing code without understanding requirements
- Skipping tests “to save time”
- Large PRs with multiple concerns
- Assuming code works without verification
- Declaring done without evidence