Skip to main content

Module prd

Module prd 

Source
Expand description

PRD (Product Requirements Document) to task conversion implementation.

Responsibilities:

  • Parse PRD markdown files to extract structured content.
  • Generate Ralph tasks from parsed PRD data.
  • Support both single consolidated task and multi-task (per user story) modes.

Not handled here:

  • CLI argument parsing (see crate::cli::prd).
  • Queue persistence details (see crate::queue).
  • Runner execution or external command invocation.

Invariants/assumptions:

  • PRD files use standard markdown format with recognizable sections.
  • User stories follow ### US-XXX: Title format when present.
  • Generated tasks have unique IDs computed from queue state.
  • Task insertion respects the doing-task-first ordering rule.

Structs§

CreateOptions
Options for creating tasks from a PRD file.

Functions§

create_from_prd
Create task(s) from a PRD file.