prd-generator
Installation
SKILL.md
PRD Generator
Generate a Product Requirements Document (prd.md) from validated idea files.
Terms used throughout:
PROJECT_DIR: the folder that holdsidea.mdandvalidate.md.prd.mdis written there.- Run mode:
createwhenPROJECT_DIR/prd.mddoes not exist or the user asks for a new PRD;modifywhen it exists and the user wants changes to it. - Ideas repo: the git repository that contains
PROJECT_DIR, when its root hasscripts/update_readme_ideas_index.pyor aREADME.mdideas table with a PRD column. - Status:
COMPLETE,PARTIALorBLOCKED, chosen by the rules in Final Report.
Run order: Phase 1 (Repo Sync runs inside it), Phases 2-7, then the Final Report. A modify run replaces Phases 2-5 with Modification Mode. A stop at any point still produces the Final Report.
Repo Sync Before Edits (mandatory)
Run this inside the git repository that contains PROJECT_DIR, after Phase 1 step 1 resolves PROJECT_DIR and before any file is written.
- Run
git -C "$PROJECT_DIR" rev-parse --show-toplevel. If it fails,PROJECT_DIRis not in a git repository: skip this sync and go on. - Run
git status --porcelainin that repository. - If the output is empty, sync: