Writing a PRD
A PRD (Product Requirements Document) is the starting point of every task flow in TaskGraph. It defines what you’re building and why. A clear PRD dramatically improves the quality of your tasks, your model outputs, and your final product — so it’s worth taking the time to get it right.What Makes a Good PRD?
- Clear objective — what’s the outcome or feature?
- Context — what’s already in place or assumed?
- Constraints — what limits or requirements need to be respected?
- Reasoning — why are you building it this way?
Writing a PRD for TaskGraph
Two example PRD templates are available in
.taskgraph/templates/:example_prd.md- Simple template for straightforward projects (.mdrecommended for better editor support)example_prd_rpg.md- Advanced RPG (Repository Planning Graph) template for complex projects with dependencies
.md? While both .txt and .md work, Markdown files provide syntax highlighting, proper rendering on GitHub, and better collaboration through formatted documentation.- Chat about requirements — explain what you want to build.
- Show an example PRD — share the example PRD so the model understands the expected format. The example uses formatting that work well with TaskGraph’s code. Following the example will yield better results.
- Iterate and refine — work with the model to shape the draft into a clear and well-structured PRD.
Choosing Between Templates
Useexample_prd.md when:
- Building straightforward features
- Working on smaller projects
- Dependencies are simple and obvious
example_prd_rpg.md when:
- Building complex systems with multiple modules
- Need explicit dependency management
- Want structured guidance on architecture decisions
- Planning a large codebase from scratch
- Functional decomposition (WHAT the system does)
- Structural decomposition (HOW it’s organized in code)
- Explicit dependencies (WHAT depends on WHAT)
- Topological ordering (build foundation first, then layers)
Where to Save Your PRD
Place your PRD file in the.taskgraph/docs folder in your project.
- You can have multiple PRDs per project.
- Name your PRDs clearly so they’re easy to reference later.
- Examples:
dashboard_redesign.md,user_onboarding.md - Tip: Use
.mdextension for better editor support and syntax highlighting
- Examples:
Parse your PRD into Tasks
This is where the TaskGraph magic begins. In Claude Code, instruct the agent to generate tasks from your PRD:- Parse your PRD document
- Generate a structured
tasks.jsonfile with tasks, dependencies, priorities, and test strategies
/taskgraph:parse-prd plugin command in Claude Code, or add --clarify in the terminal:
## Clarifications, and then generates the tasks from it.
Now that you have written and parsed a PRD, you are ready to start setting up your tasks.
