Create a comprehensive PRP (Product Requirement Prompt) - a self-contained packet with all context an AI agent needs to deliver production code on first attempt.
All tasks must be explicitly categorized (see
REFERENCE.md
).
Step 6: Score confidence across dimensions
Rate each dimension 1-10:
Dimension
Criteria
Context Completeness
Are all file paths, code snippets, and references explicit?
Implementation Clarity
Is pseudocode clear enough for AI to follow?
Gotchas Documented
Are all known pitfalls documented with mitigations?
Validation Coverage
Are all validation gates with executable commands?
Calculate overall score as average of dimensions. Target: 7+ for execution, 9+ for subagent delegation.
If score < 7 → Return to Steps 2-3 to fill gaps.
Step 7: Review and validate completeness
Verify checklist (see
REFERENCE.md
):
Goal is clear and specific
Success criteria are testable
All file paths are explicit (not "somewhere in...")
Code snippets show actual patterns with line references
Gotchas include mitigations
Validation commands are copy-pasteable
Confidence score is honest
Update
docs/blueprint/manifest.json
ID registry with new PRP entry.
Step 8: Report PRP and prompt for next action
Display summary showing:
PRP ID and location
Feature summary and approach
Context collected (ai_docs, patterns, documentation)
Linked documents (source PRD if applicable)
Confidence score with breakdown
Any gaps if score < 7
If confidence >= 7
, offer user choices:
Execute PRP now →
/blueprint:prp-execute [feature-name]
Create work-order for subagent →
/blueprint:work-order
Review and refine → Show file location and gaps
Done for now → Exit (save for later execution)
If confidence < 7
, offer user choices:
Research more context → Use Explore agent for gaps
Create ai_docs entries →
/blueprint:curate-docs
Execute anyway (risky) → Proceed with warning
Done for now → Save incomplete PRP
Agentic Optimizations
Context
Command
Check blueprint init
test -f docs/blueprint/manifest.json && echo "YES" || echo "NO"
Next PRP ID
jq -r '.id_registry.last_prp // 0' docs/blueprint/manifest.json | awk '{print $1+1}'
List existing PRPs
ls -1 docs/prps/ 2>/dev/null | wc -l
Search for patterns
Use Explore agent instead of manual grep
Fast research
Use existing ai_docs rather than fetching docs again
For PRP document structure, task categorization, review checklists, and ai_docs creation guidance, see
REFERENCE.md
.