Plan a new feature with analysis, design, and implementation steps. Use when the user asks to plan a feature or run /plan-feature.
Plan and structure new features with thorough analysis, design considerations, and actionable implementation steps.
When this skill is invoked:
Gather Requirements
Analyze Existing Codebase
Design the Solution
Create Implementation Plan
Save Plan to File
.claude/plans/ directory if it doesn't existcustom-voting-decks.md).claude/plans/<feature-slug>.md using the Output Format belowPresent for Approval
[ ] Define API contract (Commands/Events/Queries in api module)
[ ] Implement domain logic (aggregates, entities, value objects)
[ ] Create command/query handlers
[ ] Update read model projections
[ ] Add usecase tests for handlers
[ ] Add integration tests
[ ] Design component structure
[ ] Implement state management (stores/hooks)
[ ] Create UI components
[ ] Wire up API integration
[ ] Add component tests
[ ] Update shared types/contracts
[ ] Add documentation if needed
[ ] Verify build passes
[ ] Run full test suite
Domain Layer:
Application Layer:
Adapter Layer:
UI Layer:
Plans are saved to .claude/plans/<feature-slug>.md where:
Examples:
custom-voting-decks.mdadd-user-authentication.mdfix-timer-bug.mdWrite the plan to the file using this structure:
# Feature: [Name]
> **Created**: [YYYY-MM-DD]
> **Status**: Draft | Approved | In Progress | Completed
## Summary
[1-2 sentence description of what this feature does]
## Affected Modules
- [ ] api (contracts)
- [ ] guessimate-lobby
- [ ] guessimate-session
- [ ] guessimate-ui
## Key Design Decisions
1. [Decision 1 with rationale]
2. [Decision 2 with rationale]
## Implementation Tasks
[Numbered list of specific, actionable tasks]
## Risks & Considerations
- [Risk 1]
- [Risk 2]
## Open Questions
- [Question needing user input]
For a feature request like "Add ability to customize voting deck", the plan would be saved to .claude/plans/custom-voting-decks.md:
# Feature: Custom Voting Decks
> **Created**: 2026-01-02
> **Status**: Draft
## Summary
Allow lobby owners to create and select custom card decks for estimation sessions instead of using only the default Fibonacci sequence.
## Affected Modules
- [x] api (new commands/events for deck management)
- [x] guessimate-lobby (deck storage in lobby aggregate)
- [ ] guessimate-session (use selected deck)
- [x] guessimate-ui (deck configuration UI)
## Key Design Decisions
1. Store custom decks at lobby level (not user level) - simpler model, decks tied to where they're used
2. Provide preset templates (Fibonacci, T-shirt, Powers of 2) - quick setup for common cases
3. Validate deck has 2-15 cards - reasonable constraints
## Implementation Tasks
1. Add Deck value object with validation to api module
2. Add CreateCustomDeckCommand and DeckCreatedEvent to api
3. Implement deck storage in LobbyAggregate
4. Create DeckSelectionComponent in UI
5. Add deck preview functionality
6. Update session creation to use selected deck
7. Add usecase tests for deck commands
8. Add integration test for full flow
## Risks & Considerations
- Migration: existing lobbies need default deck assigned
- UI complexity: deck editor could become complex
## Open Questions
- Should decks be shareable between lobbies?