SPEC-WORKFLOW.md
This workflow is opt-in. Use it when explicitly requested by saying "use spec-driven development" or "follow the spec workflow".
The specs/ folder contains design documents for features in development.
Each spec follows this structure:
specs/{feature}/
├── CLAUDE.md # Feature-specific instructions (read this first)
├── design.md # The specification
├── implementation.md # Current status and what's done
├── decisions.md # Why decisions were made
├── prompts.md # Reusable prompts
├── future-work.md # What's deferred
└── docs/ # Documentation with screenshots
Workflow:
CLAUDE.md for specific instructionsdesign.md to understand what we're buildingimplementation.md for current statusimplementation.md after eachspecs/ — if it exists, follow itWhen user asks to build a new feature:
cp -r specs/_templates specs/{feature-name}design.md with technical specCLAUDE.md with feature-specific instructionsimplementation.md with "not-started" status## Status: in-progress
## Completed
- [x] Database schema
- [x] Migration file
## In Progress
- tRPC endpoints
## Next Steps
1. UI components
2. Tests
## Session Notes
### 2024-01-15
- Done: Added schema, created migration
- Next: Implement tRPC router
## ADR-001: Use Separate Table for Custom Locations
### Context
Need to store user-defined locations.
### Options
1. JSON field — simpler, but harder to query
2. Separate table — more flexible, better indexing
### Decision
Separate table for better querying.
### Consequences
- Need migration
- Need new tRPC router