New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Interview-driven PRD builder that turns rough ideas into structured requirements with gap analysis.

version
1.0.0
GitHub stars
36
View on GitHub

What it does

  • Adds 4 commands (/prd, /feature, /bugfix, /refine) and a prd-interviewer agent that offers discovery when product ideas come up
  • Covers 8 interview categories: problem, users, solution, technical, business, UX, risks, and testing
  • Guides you through PRDs with P0/P1/P2 requirements, acceptance criteria, and Mermaid architecture diagrams saved to docs/prd/
  • Integrates with TaskManager by generating hierarchical feature and subtask lists from a completed PRD

Interactive PRD (Product Requirements Document) builder with comprehensive interview-driven discovery, gap analysis, and taskmanager integration.

Add marketplace

/plugin marketplace add mwguerra/claude-code-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install prd-builder@mwguerra-marketplace

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

PRD Interview Skill

Guide comprehensive interviews to transform rough ideas into actionable Product Requirements Documents through structured discovery across 8 categories.

Core Interview Process

Interview Flow

  1. Initial Prompt: Capture the base idea in user's own words
  2. Category-Based Discovery: Work through relevant categories using AskUserQuestion
  3. Adaptive Branching: Skip irrelevant questions based on context
  4. Progressive Summarization: Summarize after each category before moving on
  5. Document Generation: Create the final PRD with Mermaid diagrams
  6. Task Integration: Offer to generate hierarchical tasks via taskmanager

Interview Categories

Conduct interviews across these 8 categories (adapt based on PRD type):

CategoryFocus AreasWhen to Use
Problem & ContextPain points, current state, why nowAlways
Users & CustomersPersonas, segments, user journeysAlways
Solution & FeaturesFeature list, MVP scope, prioritiesAlways
Technical ImplementationArchitecture, stack, integrationsAlways
Business & ValueROI, pricing, revenue modelProducts, major features
UX & DesignFlows, wireframes, accessibilityUI-facing work
Risks & ConcernsDependencies, assumptions, blockersAlways
Testing & QualityTest strategies, acceptance criteriaAlways

Question Guidelines

When using AskUserQuestion:

  • Ask 2-4 questions per round maximum
  • Provide concrete options when possible
  • Enable multiSelect for non-mutually-exclusive choices
  • Include "Other" automatically (tool handles this)
  • Use short headers (max 12 chars)

Adaptive Branching Rules

Skip categories based on context:

  • Internal tool: Skip pricing/revenue questions in Business & Value
  • Backend-only: Minimize UX & Design category
  • Bug fix: Focus on Problem & Context, Technical, Testing
  • Feature: Full interview but lighter on Business & Value

Session State Management

State File Location

Save interview progress to: .taskmanager/prd-state.json

State Structure

{
  "sessionId": "uuid",
  "prdType": "product|feature|bugfix",
  "slug": "feature-name",
  "startedAt": "ISO timestamp",
  "lastUpdatedAt": "ISO timestamp",
  "currentCategory": "category-name",
  "completedCategories": ["category1", "category2"],
  "answers": {
    "category-name": {
      "question-key": "answer-value"
    }
  },
  "initialPrompt": "User's original description"
}

Resuming Sessions

When /prd-builder:prd or similar is invoked:

  1. Check for existing state in .taskmanager/prd-state.json
  2. If found, ask user: "Resume previous session for '{slug}' or start fresh?"
  3. If resuming, continue from currentCategory
  4. If starting fresh, archive old state and begin new session

PRD Document Structure

Output Location

Save PRDs to: docs/prd/prd-{slug}.md

Document Template

Generate PRDs following the template in templates/prd-template.md. Key sections:

  1. Header: Title, version, date, status, author
  2. Executive Summary: One-paragraph overview
  3. Problem Statement: What problem, who has it, current solutions
  4. Users & Personas: Target users with characteristics
  5. Solution Overview: High-level approach
  6. Features & Requirements: Detailed feature breakdown with priorities
  7. Technical Architecture: Stack, integrations, Mermaid diagrams
  8. User Experience: Flows, wireframes references
  9. Business Case: Value proposition, pricing (if applicable)
  10. Risks & Mitigations: Known risks with mitigation strategies
  11. Testing Strategy: Acceptance criteria, test approach
  12. Timeline & Milestones: Phase breakdown (if applicable)
  13. Open Questions: Unresolved items for follow-up

Mermaid Diagrams

Include these diagrams where appropriate:

Architecture Diagram:

graph TB
    subgraph Frontend
        UI[User Interface]
    end
    subgraph Backend
        API[API Layer]
        DB[(Database)]
    end
    UI --> API --> DB

User Flow Diagram:

flowchart LR
    A[Start] --> B{Decision}
    B -->|Yes| C[Action]
    B -->|No| D[Alternative]

TaskManager Integration

Task Generation Process

After PRD completion:

  1. Parse all features from the PRD
  2. Create hierarchical task structure:
    • Parent task per major feature
    • Child tasks for implementation steps
  3. Use /taskmanager:plan with the PRD file path

Task Hierarchy Example

Feature: User Authentication
├── Setup authentication infrastructure
├── Implement login endpoint
├── Implement registration endpoint
├── Add password reset flow
├── Create authentication middleware
└── Write authentication tests

Automatic Execution

After generating tasks, ask: "Tasks created. Start autonomous execution?" If yes, invoke /taskmanager:run to begin implementation.

PRD Types

Full Product PRD (/prd-builder:prd)

Complete interview covering all 8 categories in depth:

  • 10-15 question rounds
  • Comprehensive documentation
  • Full Mermaid diagrams
  • Complete task breakdown

Feature PRD (/prd-builder:feature)

Lighter interview focused on implementation:

  • 5-8 question rounds
  • Skip or minimize Business & Value (unless monetized feature)
  • Focus on Technical, UX, Testing
  • Assume product context exists

Bug Fix PRD (/prd-builder:bugfix)

Problem-focused documentation:

  • 3-5 question rounds
  • Heavy focus on Problem & Context
  • Technical root cause analysis
  • Regression testing strategy
  • Skip Business, minimize UX

Refine PRD (/prd-builder:refine)

Enhance existing PRDs:

  1. Read and analyze existing PRD
  2. Identify weak or missing sections
  3. Ask targeted questions for gaps only
  4. Merge new answers into existing document
  5. Preserve original content where adequate

Additional Resources

Reference Files

Detailed question banks for each category:

  • references/question-bank.md - Complete question library organized by category

Template Files

PRD output template:

  • templates/prd-template.md - Full PRD document structure

Readme

PRD Builder Plugin

An interactive Product Requirements Document (PRD) builder for Claude Code that transforms rough ideas into comprehensive, actionable plans through structured interviews.

Features

  • Deep Interview Process: 8 comprehensive categories covering all aspects of product/feature planning
  • Smart Branching: Adaptive questions based on previous answers
  • Multiple PRD Types: Full product, feature, and bugfix documentation
  • Gap Analysis: Refine existing PRDs by identifying and filling weak areas
  • Session Persistence: Save progress and continue long interviews later
  • TaskManager Integration: Auto-generate hierarchical tasks from completed PRDs
  • Mermaid Diagrams: Visual architecture and flow diagrams

Commands

CommandDescription
/prd-builder:prdStart a comprehensive product PRD interview
/prd-builder:featureCreate a feature-focused PRD (lighter weight)
/prd-builder:bugfixDocument a bug fix with problem analysis
/prd-builder:refineAnalyze and enhance an existing PRD

Interview Categories

  1. Problem & Context - What problem exists, pain points, why now
  2. Users & Customers - Target users, personas, customer segments
  3. Solution & Features - Proposed solution, feature list, MVP scope
  4. Technical Implementation - Architecture, stack, integrations
  5. Business & Value - Value proposition, pricing, ROI
  6. UX & Design - User flows, wireframes, accessibility
  7. Risks & Concerns - Technical risks, dependencies, assumptions
  8. Testing & Quality - Test strategies, acceptance criteria, edge cases

Output

  • PRD files saved to: docs/prd/prd-{slug}.md
  • Session state saved to: .taskmanager/prd-state.json

Usage

# Start a new product PRD
/prd

# Create a feature PRD
/prd-builder:feature

# Document a bug fix
/prd-builder:bugfix

# Improve an existing PRD
/prd-builder:refine docs/prd/prd-user-auth.md

TaskManager Integration

After completing a PRD, you'll be asked if you want to generate tasks. The plugin will:

  1. Parse all features from the PRD
  2. Create hierarchical tasks (parent features with implementation subtasks)
  3. Optionally start executing tasks autonomously

Proactive Agent

The plugin includes a prd-interviewer agent that triggers automatically when you describe product ideas:

"I want to build a user authentication system"
→ Agent offers to conduct PRD interview

"I'm thinking about adding a dashboard to track metrics"
→ Agent suggests structured discovery before implementation

"Before we start coding, let's document the requirements"
→ Agent launches full PRD interview

Session Persistence

Long interviews can be resumed:

  1. State is saved to .taskmanager/prd-state.json after each question round
  2. If you stop mid-interview, running /prd-builder:prd again offers to resume
  3. Choose "Start fresh" to begin a new interview instead

PRD Document Structure

Generated PRDs include:

  • Executive Summary
  • Problem Statement
  • Users & Personas (with tables)
  • Solution Overview
  • Features & Requirements (P0/P1/P2 with acceptance criteria)
  • Technical Architecture (with Mermaid diagrams)
  • User Experience (flows, accessibility)
  • Business Case (if applicable)
  • Risks & Mitigations
  • Testing Strategy
  • Timeline & Milestones
  • Open Questions

Installation

Add to your Claude Code plugins directory or use --plugin-dir flag:

claude --plugin-dir /path/to/prd-builder

Plugin Structure

prd-builder/
├── .claude-plugin/
│   └── plugin.json
├── agents/
│   └── prd-interviewer.md
├── commands/
│   ├── prd.md
│   ├── feature.md
│   ├── bugfix.md
│   └── refine.md
├── skills/
│   └── prd-interview/
│       ├── SKILL.md
│       ├── references/
│       │   └── question-bank.md
│       └── templates/
│           └── prd-template.md
└── README.md

Details

Marketplace
mwguerra/claude-code-plugins
Source
prd-builder
Category
Productivity
Keywords
prd, planning, requirements, product, features, documentation
Listed since
Apr 7, 2026

More from mwguerra/claude-code-plugins

All 18

Similar to prd-builder

More Agent Workflow & Planning