/prd-builder:refine <path-to-existing-prd>from prd-builder
Analyzes an existing PRD for weak or missing sections, generates a gap analysis, and conducts targeted interviews to fill gaps.
Ships in prd-builder. Installing the plugin adds it to Claude Code.
Analyze an existing PRD document, identify weak or missing sections, and conduct targeted interviews to fill the gaps.
If argument provided, use it as path. Otherwise:
ls docs/prd/*.md 2>/dev/null
If multiple PRDs found, ask user to select:
If no PRDs found:
Read the entire PRD file and analyze each section for:
Completeness Checklist:
| Section | Check For |
|---|---|
| Product Thesis | One-line thesis present; leads the document |
| Hero Flow | A single value-proving flow defined, with diagram |
| Executive Summary | Clear, concise, covers what/who/why |
| Problem Statement | Specific problem, affected users, current state |
| Users & Personas | Defined personas with attributes |
| Solution Overview | Clear approach, differentiators |
| Launch Scope & Roadmap | Lean v1 tied to hero flow; deferred items sequenced with why deferred |
| Features | Detailed requirements, acceptance criteria |
| Technical Architecture | Diagrams, stack decisions, integrations, vetted dependency table |
| User Experience | Flows, wireframes, accessibility |
| Business Case | Value prop, metrics (if applicable) |
| Risks | Identified risks with mitigations |
| Testing | Strategy, coverage, edge cases |
| Decisions | Resolved ambiguities recorded with owners |
| Timeline | Milestones (if applicable) |
Quality Indicators:
Create a summary of findings:
## PRD Gap Analysis: {PRD Title}
### Strong Sections ✓
- {Section}: {brief note on strength}
### Needs Improvement ⚠
- {Section}: {what's missing or weak}
### Missing Sections ✗
- {Section}: {why it's important}
Present this analysis to user and ask:
For each gap identified (in priority order):
Load prd-interview skill for question frameworks.
For weak sections:
For missing sections:
Interview Order Priority:
After gathering new information:
Use Edit tool to make targeted changes, not full rewrites.
After updating, show summary:
If PRD now has better-defined features, ask:
Problem Statement is weak if:
Features are weak if:
Technical Architecture is weak if:
$CLAUDE_PLUGIN_ROOT/skills/prd-interview/references/default-stack.md should be applied and recorded)Launch framing is weak if:
Decisions are weak if:
Testing Strategy is weak if:
Risks are weak if:
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub mwguerra/plugins --plugin prd-builder4 commands in this plugin
/bugfixBug Fix Documentation CommandDocument a bug fix with problem analysis, root cause investigation, and regression testing strategy/featureFeature PRD CommandCreate a feature-focused PRD with lighter interview process optimized for new features within existing products/prdPRD Interview CommandStart a comprehensive PRD interview to transform an idea into a complete Product Requirements DocumentOther plugins' commands for the same job