Superpowers Patterns
Overview
Superpowers provides battle-tested development patterns for TDD, debugging, and team collaboration. This skill should be invoked when applying systematic approaches to development, debugging, or team workflows.
Core Principles
- TDD: Write failing test first, minimal code, then refactor
- Debugging: Reproduce, isolate, fix, add regression test
- Planning: Use /brainstorm and /write-plan
- Execution: Follow /execute-plan for structured work
Preparation Checklist
- Identify which pattern applies
- Load appropriate skill
- Gather required context
- Set up testing/debugging environment
Step-by-Step Process
- Identify: Choose appropriate pattern
- TDD Flow: Red-Green-Refactor cycle
- Debug Flow: Reproduce, isolate, fix, verify
- Brainstorm: Use /brainstorm for ideation
- Plan: Use /write-plan for documentation
- Execute: Follow /execute-plan
Do's and Don'ts
- ✅ Do follow patterns consistently
- ✅ Do add regression tests after fixes
- ✅ Do document decisions
- ❌ Don't skip steps in patterns
- ❌ Don't deviate from established workflows
- ❌ Don't skip testing
Anti-Patterns
- No Testing: Skipping test-first approach
- Random Debugging: Not following systematic debugging
- No Planning: Diving in without planning
- Skipping Documentation: Not recording decisions