FirePRD is an agent-driven framework that analyzes your codebase and collaborates with you to generate a human-centered Product Requirements Document (PRD).
Your codebase is the ultimate source of truth, but it's unreadable to non-technical stakeholders like Product Managers, designers, and executives. Writing and maintaining a PRD that accurately reflects your application is a tedious, manual process that often gets neglected, leading to stale documents and misaligned teams.
FirePRD acts like a dedicated product team that lives in your IDE. It's a pure prompt-based framework that uses specialized AI agents to automate the documentation process:
- A Code Analyst reads your code to understand its features, user journeys, and data models.
- A Product Writer collaborates with you to design the document and tell the product's story.
- An Orchestrator manages the entire stateful, resumable workflow, ensuring you are always in control.
The result is a comprehensive, non-technical PRD, generated with a fraction of the manual effort.
- ⚡️ Speed up Onboarding: Generate a clear, readable PRD to help new engineers and stakeholders understand your project in minutes, not weeks.
- ✅ Ensure Accuracy: The PRD is generated directly from the source code, eliminating the risk of human error and outdated information.
- 🤝 Improve Alignment: Create a shared "source of truth" that both technical and non-technical team members can understand and rally behind.
- 🧘 Stay in the Flow: The entire process happens inside your IDE. No context switching, no cumbersome documentation tools. You stay focused on your code.
- Agent-Driven Analysis: A specialist
code-analystagent reads your codebase to understand its features, user journeys, and data models. - Interactive & Collaborative: A
prd-writeragent works with you conversationally to design the Table of Contents and structure of your document. - Stateful & Resumable: The entire workflow is managed via a state file (
workflow-state.toml), so you can stop and resume the process at any time. - User-Directed Workflow: You are in control. The agent proposes a plan, but you execute each step with explicit commands.
- Pure Prompt Framework: FirePRD is a library of prompts designed to be run in any modern AI-powered IDE (like Claude Code, Cursor, etc.). It contains no compiled code.
FirePRD guides you through a simple, command-driven workflow. You are always in control.
*start: You point FirePRD at your codebase to initialize a new session. Activate the/fireprdagent and run*start <path_to_code>to begin.*analyze: The agent autonomously analyzes the code and creates a technical summary artifact.*design-toc: You and the agent collaborate to design the structure (Table of Contents) of your PRD.*finalize-plan: You give the final approval on the complete plan after running*plan-content.*generate-all-chapters: The agent writes the final PRD files to your project directory.
- Clone or download this repository.
- Copy the entire
fireprd/directory into the root of the project you wish to document. - (Recommended) Add
fireprd/cache/to your project's.gitignorefile. - Configure your IDE's AI chat to recognize the
/fireprdcommand by pointing it to thefireprd/agents/fireprd.mdfile.
Note on paths and packaging
This repository shows folders like
agents/,tasks/, andcache/at the top-level for development convenience. When you use FirePRD in another project, these should live under a singlefireprd/directory in that project:
- fireprd/
- agents/
- tasks/
- cache/ (runtime; keep with an empty
.gitkeep, do not commit generated state)- templates/ (e.g.,
workflow-state.example.toml)During distribution, ensure packaging places these folders under
fireprd/. The runtime state filefireprd/cache/workflow-state.tomlis generated by the*startcommand and should not be checked into source control.
In your IDE's AI chat panel:
- Type
/fireprdto activate the agent. - Follow the agent's guidance, starting with
*start .to analyze the current directory. - Work through each step (
*analyze,*design-toc,*plan-content,*finalize-plan,*generate-all-chapters) to create your PRD. - Use
*statusat any time to see the currentstatus,nextStep, and artifact locations fromfireprd/cache/workflow-state.toml. - If you need to tune chapter splitting, run
*set split-threshold <n>(default is 5) before*finalize-plan. - To start fresh, run
*reset(soft reset clears cache only). For a full cleanup, run*reset --hardto also delete generated outputs. Both require confirmation.
Ready to start? Type /fireprd in your IDE's AI chat and follow the interactive workflow!
This project is licensed under the MIT License. See the LICENSE file for details
