Prerequisites
Set up MCP integration
Follow the MCP Integration guide to connect Product Graph to your IDE or AI assistant.
Mapping Code to Artifacts
| Artifact | Code Pattern |
|---|---|
| Product | README, root architecture, rollup of capabilities |
| Capabilities | Feature directories, services |
| Features | Routes, components |
| Requirements | Validation logic, business rules |
| Acceptance Criteria | Test files |
| Core Entities | Database models, types |
Best Practices
- Start small: Begin with one capability, validate the workflow, then expand
- Review AI output: The AI may combine concepts that should be separate or miss edge cases
- Get approval first: Ask the AI to summarize proposed changes before executing
- Iterate: Create structure first with basic content, then enrich over time
Workflow
Each prompt follows the same workflow:Understand the Template
The AI retrieves the artifact template from Product Graph to learn what information is required.
Reconcile
The AI creates a matrix comparing what it found in code vs. what exists in Product Graph, identifying additions, updates, and removals.