---
active: true
iteration: 1
max_iterations: 30
completion_promise: "PHASE_1_COMPLETE"
started_at: "2026-01-10T12:00:45Z"
---
Execute Phase 1 - Foundation from PROMPT.md.
You are building the Ralph PRD Generator CLI tool.
Read PROMPT.md for full specification.
Read prd.json for feature tracking.
Read CLAUDE.md for project configuration.
Phase 1 tasks:
1. Set up TypeScript project with all dependencies
2. Configure tsup, vitest, eslint
3. Implement CLI framework with Commander.js
4. Implement config management for API key storage
5. Create basic project structure
6. Write tests for config and CLI
For each feature:
1. Write tests first
2. Implement the feature
3. Run: npm run build && npm run test && npm run lint
4. If all pass, update prd.json by setting passes to true for completed features
5. Commit with descriptive message
6. Append progress to progress.txt
When ALL Phase 1 features in prd.json have passes set to true:
Output PHASE_1_COMPLETE
If blocked after 10 attempts on same issue:
Document in progress.txt and output PHASE_1_BLOCKED