From prd-builder
Analyze and enhance an existing PRD by identifying gaps and asking targeted questions to fill weak areas
How this command is triggered — by the user, by Claude, or both
Slash command
/prd-builder:refine <path-to-existing-prd>This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Refine PRD Command Analyze an existing PRD document, identify weak or missing sections, and conduct targeted interviews to fill the gaps. ## Execution Flow ### 1. Locate PRD to Refine If argument provided, use it as path. Otherwise: If multiple PRDs found, ask user to select: - "Which PRD would you like to refine?" - List available PRDs as options If no PRDs found: - "No existing PRDs found in docs/prd/. Would you like to create a new one with /prd-builder:prd instead?" ### 2. Read and Analyze PRD Read the entire PRD file and analyze each section for: **Completeness Checklist:*...
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:
npx claudepluginhub mwguerra/plugins --plugin prd-builder/refineRefines existing CLI harness for software at <software-path> by analyzing gaps in coverage and adding new commands/tests, optionally focusing on specific features.
/refineRefines existing cli-anything-web CLI: performs gap analysis, records new traffic, implements missing endpoints, updates tests and REPL help.
/refineRuns recursive refinement on current branch/PR using a built-in review team, entering at Review then Refine to improve code against specified outcomes.
/refineRuns iterative refinement loop to improve project quality toward a goal, with max iterations, target condition, and semicolon-separated DoD criteria.
/refineAnalyzes existing PRD for gaps using a section checklist, generates markdown gap analysis, and refines via targeted interactive questions.
/refineRefines an existing writer skill by analyzing additional writing samples and updating the voice profile. Provide path to skill directory.