Skip to content

[plan] Add PRD generation workflow for Ralph Loop #11136

@github-actions

Description

@github-actions

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

  1. Create .github/workflows/ralph-prd-generator.md that:

    • 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
          }
        ]
      }
  2. Include validation to ensure tasks are small and atomic

  3. Add examples in examples/ralph/prd-samples/

Files to Create

  • .github/workflows/ralph-prd-generator.md - PRD generation workflow
  • examples/ralph/prd-samples/feature-example.md - Sample input
  • examples/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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions