prd-writing

Co-author a Behavioral PRD via structured interviews and codebase exploration, output to docs/prd.md.

2|1|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/mattstruble/skills --skill prd-writing-mattstruble
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prd-writing
Source: https://github.com/mattstruble/skills/tree/main/prd-writing
Command: npx skills add https://github.com/mattstruble/skills --skill prd-writing-mattstruble

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Behavioral PRD writing — co-author a product requirements document through structured interview and codebase exploration, saved as a local Markdown file. Use when user wants to write a PRD, create a product requirements document, plan a new feature, define requirements, capture expected behaviors, or scope a project. Also trigger when the user mentions "PRD", "product requirements", "requirements doc", or wants to define what a system should do before implementation begins.

Core Features & Use Cases

  • Co-author a Behavioral PRD for a repository through structured interview and codebase exploration. Output is docs/prd.md at the repo root.
  • The PRD defines what the system should do from the user's perspective, enabling downstream skills to derive stories, epics, and feature specs from this PRD.

Quick Start

Ask questions about the codebase and user goals to begin drafting the PRD, then save the result to docs/prd.md.

Frequently Asked Questions about prd-writing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a product requirements document for an existing codebase?

To write a product requirements document for an existing codebase, you can use a structured interview process to explore the repository structure and co-author a Behavioral PRD saved directly as docs/prd.md.

What is a behavioral PRD and when do I need one?

A behavioral PRD defines what a system should do from the user's perspective, capturing expected behaviors and scoping features. You need one to formalize problem statements and user stories before implementation begins.

How do I scope a new feature and capture expected behaviors before coding?

You can scope a new feature and capture expected behaviors by conducting an interview-driven planning process that references existing documentation to generate a complete product requirements document with an Expected Behaviors section.

Can I generate a reusable PRD workflow for multiple projects?

Yes, you can generate a reusable PRD workflow for multiple projects by applying an interview-driven process that formalizes problem statements and outputs a standardized product requirements document at each repository root.

Does writing a PRD require manual codebase exploration beforehand?

Manual codebase exploration is not required beforehand because the PRD co-authoring process integrates structured interviews with automated codebase exploration to reference existing code structure and documentation directly.

What is the best way to define system requirements through structured interviews?

The best way to define system requirements through structured interviews is using a co-authoring process that asks targeted questions about user goals, translating answers into a formal product requirements document with user stories.