Bundle open backlog items from .kiln/issues/ into a feature PRD. Groups related issues by theme, prioritizes them, and generates a PRD ready for /build-prd. Use as "/issue-to-prd" (all open) or "/issue-to-prd <category>" to filter.
Read all open backlog entries from .kiln/issues/, group related issues into coherent themes, and generate a feature PRD that can be built with /build-prd.
$ARGUMENTS
.md files in top-level .kiln/issues/ (not the completed/ subdirectory — FR-025)status: open/issue-to-prd templates): further filter by category match/report-issueAnalyze the open entries and group them into coherent themes. A theme is a set of related issues that should be fixed together because they share:
Present the grouping to the user:
## Backlog Summary: N open items
### Theme 1: <theme name>
**Items**: N | **Highest severity**: <severity>
- [<title>](.kiln/issues/<file>) — <type>, <severity>
- [<title>](.kiln/issues/<file>) — <type>, <severity>
### Theme 2: <theme name>
**Items**: N | **Highest severity**: <severity>
- [<title>](.kiln/issues/<file>) — <type>, <severity>
### Ungrouped
- [<title>](.kiln/issues/<file>) — <type>, <severity>
Ask the user which themes to include in the PRD:
If there's only one theme, skip this step and proceed.
Using the selected items, generate a feature PRD following the same structure as /create-prd Mode B (feature addition).
Create: docs/features/<YYYY-MM-DD>-<theme-slug>/PRD.md
The PRD must:
.kiln/issues/ file and GitHub issue number (if any)# Feature PRD: <Theme Name>
**Date**: YYYY-MM-DD
**Status**: Draft
**Parent PRD**: [link to docs/PRD.md if exists]
## Background
<Why this work is needed — synthesize the backlog items into a narrative>
### Source Issues
| # | Backlog Entry | GitHub Issue | Type | Severity |
|---|---------------|--------------|------|----------|
| 1 | [title](.kiln/issues/file.md) | #N or — | type | severity |
## Problem Statement
<1-2 paragraphs: what's broken or missing, who's affected, what's the cost of not fixing it>
## Goals
<Bulleted list of what "done" looks like>
## Non-Goals
<What this PRD explicitly does NOT address>
## Requirements
### Functional Requirements
<FR-001 through FR-NNN, each traceable to one or more source issues>
### Non-Functional Requirements
<Performance, reliability, backwards compatibility constraints>
## User Stories
<Derived from the backlog items — who needs what and why>
## Success Criteria
<Measurable outcomes — how do we know this worked>
## Tech Stack
<Inherited from parent PRD, plus any additions needed>
## Risks & Open Questions
<Unknowns, dependencies, things that could go wrong>
FR-001 (from: missing-dockerfile.md))After the PRD is written, update each included backlog entry:
status: open to status: prd-createdprd: docs/features/<date>-<slug>/PRD.md## PRD Created
**Location**: docs/features/<date>-<slug>/PRD.md
**Addresses**: N backlog items
**Requirements**: N functional requirements
### Backlog items included:
- [x] <title> — <severity>
- [x] <title> — <severity>
### Remaining open backlog items: N
**Next step**: Review the PRD, then run `/build-prd <slug>` to execute the full pipeline.
docs/PRD.md doesn't exist), the generated PRD is standalone — don't require a parent