Save PRD artifacts to project directory after approval. Creates docs/projects/{yyyymmdd}-{name}/ with prd.md, user-stories/, execution-plan.md, innovations-selected.md, and architecture-notes.md. Use when persisting approved PRD from /architect command.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
ROOT AGENT ONLY - Runs only from root Claude Code agent after HITL approval.
Purpose: Persist approved PRD artifacts to project directory Trigger: After hitl-approval phase completes in /architect workflow Input: PRD content, user stories, execution plan, innovations, architecture notes Output: Complete project directory ready for /build execution
1. Create project directory
docs/projects/{yyyymmdd}-{kebab-case-name}/docs/projects/ parent exists{project-dir}/
├── prd.md
├── user-stories/
├── execution-plan.md
├── innovations-selected.md # Optional - only if innovations selected
└── architecture-notes.md
2. Save prd.md
{project-dir}/prd.md3. Save user-stories/ directory
{project-dir}/user-stories/ subdirectoryUS-{NNN}-{slug}.md (e.g., US-001-user-auth.md)4. Save execution-plan.md
{project-dir}/execution-plan.md5. Save innovations-selected.md (conditional)
{project-dir}/innovations-selected.md6. Save architecture-notes.md
{project-dir}/architecture-notes.md7. Output final instruction
Run /build {absolute-path}/prd.mdRun /build /home/user/repo/docs/projects/20251217-user-auth/prd.mddocs/projects/{name}/)user-stories/ subdirectoryprd.mdUS-{NNN}-{slug}.md fileexecution-plan.mdinnovations-selected.md (if applicable)architecture-notes.md| Input PRD Title | Generated Directory Name |
|---|---|
| "User Authentication API" | 20251217-user-authentication-api |
| "Dashboard Feature" | 20251217-dashboard-feature |
| "Stripe Integration Setup" | 20251217-stripe-integration-setup |
Rules:
| Story ID | Story Title | Generated Filename |
|---|---|---|
| US-001 | "User Authentication" | US-001-user-authentication.md |
| US-002 | "Token Service" | US-002-token-service.md |
| US-015 | "Dashboard Widgets API" | US-015-dashboard-widgets-api.md |
Rules:
If directory exists:
{name}-{HHmmss}20251217-user-auth-143022If parent doesn't exist:
docs/projects/ directory firstIf write fails:
Called by:
/architect command (Phase 7: Output)Calls:
Next step: User executes /build {prd-path}
Input:
PRD Title: "User Authentication API"
Stories: 5 enriched stories with architecture notes
Execution Plan: 3 waves, 5 TDD pairs
Innovations: 2 selected (passwordless auth, MFA)
Architecture Notes: Multi-mono findings, Context7 validation
Save PRD Phase (this skill):
1. Create directory: docs/projects/20251217-user-authentication-api/
2. Write prd.md (all sections)
3. Write user-stories/:
- US-001-auth-schema.md
- US-002-auth-service.md
- US-003-token-service.md
- US-004-login-endpoint.md
- US-005-logout-endpoint.md
4. Write execution-plan.md (3 waves, dependencies)
5. Write innovations-selected.md (passwordless, MFA)
6. Write architecture-notes.md (multi-mono, patterns)
7. Output: "Run /build /home/user/repo/docs/projects/20251217-user-authentication-api/prd.md"
Result:
docs/projects/20251217-user-authentication-api/
├── prd.md
├── user-stories/
│ ├── US-001-auth-schema.md
│ ├── US-002-auth-service.md
│ ├── US-003-token-service.md
│ ├── US-004-login-endpoint.md
│ └── US-005-logout-endpoint.md
├── execution-plan.md
├── innovations-selected.md
└── architecture-notes.md