-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Description
Objective
Create a workflow that generates a structured PRD (Product Requirements Document) in JSON format, similar to Ralph's prd.json.
Context
Ralph uses a skill to convert markdown PRDs into structured JSON with user stories. We need a workflow that takes a feature description and generates a PRD suitable for the Ralph Loop workflow.
Approach
-
Create
.github/workflows/ralph-prd-generator.mdthat:- Takes a feature description as input
- Uses AI engine to generate structured PRD
- Asks clarifying questions if needed
- Outputs prd.json with user stories format:
{ "feature": "...", "branchName": "...", "userStories": [ { "id": 1, "title": "...", "description": "...", "acceptanceCriteria": [], "passes": false } ] }
-
Include validation to ensure tasks are small and atomic
-
Add examples in
examples/ralph/prd-samples/
Files to Create
.github/workflows/ralph-prd-generator.md- PRD generation workflowexamples/ralph/prd-samples/feature-example.md- Sample inputexamples/ralph/prd-samples/prd-output.json- Sample output
Acceptance Criteria
- Workflow generates structured PRD from description
- PRD includes properly formatted user stories
- Each story has title, description, criteria, and passes flag
- Workflow validates stories are appropriately sized
- Examples demonstrate various feature types
Related to Add Ralph Loop examples for agentic workflows #11132
AI generated by Plan Command for #11132
Copilot