Save Plan to PRD
Transform the current plan into an RPG-compliant PRD and save to the backlog.
Workflow
1. Extract plan content
From the current conversation, identify:
- •Problem statement / objective
- •Core requirements and features
- •Technical constraints
- •Dependencies between components
- •Acceptance criteria
2. Choose template
| Plan complexity | Template | Use when |
|---|---|---|
| Simple feature | assets/minimal.md | Single capability, few features |
| Standard feature | assets/standard.md | Multiple capabilities, clear dependencies |
| Complex system | assets/example_prd_rpg.md | Full RPG method needed |
3. Format as PRD
Apply RPG structure:
- •Functional decomposition: Capabilities → Features (WHAT it does)
- •Structural decomposition: Modules → Files (WHERE it lives)
- •Dependency graph: Explicit dependencies between modules
- •Implementation phases: Topological order of tasks
4. Split if needed
If PRD exceeds ~200 lines or has loosely coupled parts:
- •Split into separate PRD files
- •Each PRD should be self-contained
- •Name related PRDs with shared prefix:
00001-auth-login-v1.md,00002-auth-session-v1.md
5. Save to backlog
bash
# Create directory if needed mkdir -p .local/prds/backlog # Determine next sequence number # Scan ALL prds in .local/prds (backlog, wip, done) for highest existing sequence # Extract 5-digit prefix from filenames matching pattern NNNNN-*.txt # Increment by 1, pad to 5 digits # Save PRD with sequence prefix
File Naming Convention
code
{sequence}-{feature-slug}-v{version}.md
Where:
- sequence: 5-digit zero-padded number (00001, 00002, ...)
- Sequence determined across ALL subdirs in .local/prds/
Examples:
- 00001-user-auth-v1.md
- 00002-api-rate-limiting-v1.md
- 00003-dashboard-widgets-v2.md
Sequence Number Logic
- •List all
.mdfiles in.local/prds/** - •Extract leading 5-digit prefixes matching
^[0-9]{5}- - •Find max sequence number (default 0 if none exist)
- •New sequence = max + 1, zero-padded to 5 digits
Directory Structure
code
.local/prds/ ├── backlog/ # Planned but not started ├── wip/ # Currently being implemented └── done/ # Completed PRDs (for reference)
PRD Lifecycle
- •Create: Save to
backlog/ - •Start work: Move to
wip/ - •Complete: Move to
done/
Assets
- •
assets/minimal.md- Quick PRD for simple features (~50 lines) - •
assets/standard.md- Standard PRD structure (~100 lines) - •
assets/example_prd_rpg.md- Full RPG method reference