feat: Add interactive interview for PRD generation#22
feat: Add interactive interview for PRD generation#22
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
- Add ralph-interview.sh CLI script for interactive PRD generation - Add /ralph:interview command for AI-guided PRD creation - Update README and documentation with interview workflow - Add comprehensive tests for interview feature - Update examples with interview instructions Co-authored-by: OctavianTocan <55554752+OctavianTocan@users.noreply.github.com>
- Add json_escape function to handle quotes and backslashes - Apply escaping to task titles and acceptance criteria - Add comprehensive interview example walkthrough - Update USAGE.md to reference example documentation Co-authored-by: OctavianTocan <55554752+OctavianTocan@users.noreply.github.com>
- Enhanced session name sanitization to remove special characters - Added comments about JSON escaping and delimiter limitations - Improved kebab-case conversion to handle edge cases Co-authored-by: OctavianTocan <55554752+OctavianTocan@users.noreply.github.com>
|
@copilot I want this to also ask user's which model they want to add to the PRD for the Ralph session. By default you can just use Claude Code for the interviewer. |
- Add explanation that model is for Ralph execution, not the interviewer - Show common model options (sonnet, opus, haiku) for Claude - Clarify when to leave blank for agent's default - Update command file and documentation with improved flow - Add context about model purpose in all interview materials Co-authored-by: OctavianTocan <55554752+OctavianTocan@users.noreply.github.com>
Done in ad9b302. The interview now explicitly asks "Which model should Ralph use?" with clearer context that this is for Ralph's execution (not the interviewer). It shows common model options (sonnet, opus, haiku) for Claude and explains when to leave blank for the agent's default. |
Users currently must write PRDs manually, which is counterintuitive given Ralph's autonomous nature. This adds an interview-based workflow where Ralph asks questions and generates PRDs automatically.
Changes
Core Implementation
ralph-interview.sh: CLI script conducting interactive interviews with colored prompts, input sanitization, and automatic session generation/ralph:interview: AI command file for Claude/Cursor with conversation guidelines and example transcriptsprd.json,progress.txt,learnings.mdInterview Flow
Model Selection
Documentation
docs/INTERVIEW-EXAMPLE.md: Complete walkthrough with example interactionUsage
Ralph interviews user conversationally, then generates:
{ "branchName": "ralph/user-auth", "agent": "claude", "model": "sonnet", "validationCommands": { "typecheck": "pnpm typecheck" }, "userStories": [ { "id": "TASK-001", "title": "Create auth API routes", "acceptanceCriteria": ["Route exists at /api/auth", "Typecheck passes"], "priority": 1, "passes": false } ] }Makes Ralph self-contained for PRD creation as requested.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.