Skip to content

feat(render): add --prd — one standalone PRD per functional requirement#10

Closed
maxgfr wants to merge 1 commit into
mainfrom
feat/render-prd-export
Closed

feat(render): add --prd — one standalone PRD per functional requirement#10
maxgfr wants to merge 1 commit into
mainfrom
feat/render-prd-export

Conversation

@maxgfr

@maxgfr maxgfr commented Jul 6, 2026

Copy link
Copy Markdown
Owner

What

construct render --out <run> --prd now also emits requirements/prd/:

  • one PRD-FR-NNN-<slug>.md per functional requirement — product context, the FR description, Given/When/Then acceptance criteria, linked NFRs resolved to their statements, touched entities/interfaces, and the [E#] grounding citations;
  • a README.md index table (file · priority · title).

Everything is rendered from the same SRD.jsonFUNCTIONAL.md stays the canonical requirement list — so a single feature can be handed whole to a tracker or an implementation agent.

Design notes

  • Off by default, additive: check does not gate on it; no schema change.
  • The requirements/prd/ subtree is cleared on every re-render (filenames are id+title-derived), same hygiene as the decisions/ and design/ dirs — no stale per-feature PRDs.
  • CLI wiring follows the --no-design pattern (BOOL_FLAGS + render opts); SKILL.md documents the flag.

Tests

TDD (red first): 3 new render tests (per-FR files + index, content incl. resolved NFR statements + citations, default-off + stale-subtree cleanup) and 1 CLI parse test. vitest 258/258, tsc --noEmit, biome ci, check:build all green.

🤖 Generated with Claude Code

render --prd also emits requirements/prd/: one PRD-FR-NNN-<slug>.md per FR
(product context, Given/When/Then acceptance criteria, linked NFRs resolved
to their statements, touched entities/interfaces, [E#] grounding citations)
plus a README.md index. Rendered from the same SRD.json — FUNCTIONAL.md stays
canonical — and the subtree is cleared on re-render, same hygiene as the
decisions and design dirs. Off by default; additive, check does not gate on it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@maxgfr

maxgfr commented Jul 6, 2026

Copy link
Copy Markdown
Owner Author

Superseded: the --prd per-FR export landed on main via 57c556d (feat: modules mode + --prd), released in v1.7.0. Closing without merge.

@maxgfr maxgfr closed this Jul 6, 2026
@maxgfr
maxgfr deleted the feat/render-prd-export branch July 6, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant