Blueprint prp create

From laurigates/claude-plugins · View interactive version

Blueprint prp create is an AI agent skill from the GitHub repository laurigates/claude-plugins. Create a PRP (Product Requirement Prompt) with research, context, and validation gates. Use when planning a feature packet for subagent execution with TDD and confidence scoring.

How to use this skill

Skill file

/blueprint:prp-create

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.

What is a PRP? PRD + Curated Codebase Intelligence + Implementation Blueprint + Validation Gates = everything needed for reliable implementation.

Usage: /blueprint:prp-create [feature-name]

Prerequisites:

When to Use This Skill

| Use this skill when... | Use alternative when... |

|------------------------|-------------------------|

| Creating new feature implementation packet | Executing an existing PRP (use /blueprint:prp-execute) |

| Want comprehensive research and documentation | Quick prototyping without formal requirements |

| Planning for AI agent or subagent execution | Solo developer implementing without research |

| Need to document implementation approach | Implementing based on existing codebase patterns |

Context

Parameters

Parse $ARGUMENTS:

Execution

Execute the complete PRP creation workflow:

Step 1: Verify prerequisites and understand requirements

  1. If Blueprint not initialized → Error: "Run /blueprint:init first"
  2. Ask user to describe the feature: "What feature needs to be implemented?"
  1. Ask if this implements an existing PRD: "Does this implement an existing PRD or is it standalone?"
  1. Determine feature type (API endpoint, database, UI, integration, etc.)

Step 2: Research codebase patterns

Use Explore agent to find existing patterns:

  1. Similar features already implemented (identify existing patterns to follow)
  2. Relevant file locations and integration points
  3. Testing patterns used for similar features
  4. Architecture decisions that affect this feature

Store findings with specific file paths and line numbers.

Step 3: Research external documentation

For relevant libraries/frameworks, gather:

  1. Official documentation sections (capture URLs with specific sections)
  2. Known issues and gotchas from Stack Overflow / GitHub discussions
  3. Best practices from documentation
  4. Common implementation patterns

Use WebSearch/WebFetch as needed. Create or update curated rule entries if needed (see REFERENCE.md).

Step 4: Generate PRP document ID and structure

Take the next PRP ID from the "Next PRP ID" line in Context, or run

bash "${CLAUDE_SKILL_DIR}/../../scripts/blueprint-next-id.sh" --kind PRP. It is

max(id_registry.last_prp, highest PRP id on disk) + 1 in PRP-NNN form, so a

PRP pulled in since the last registry update is not assigned again.

Create docs/prps/[feature-name].md with frontmatter and sections (see REFERENCE.md).

Step 5: Draft PRP content with research findings

Fill all required sections (see REFERENCE.md):

  1. Goal & Why: One-sentence goal, business justification, target users, priority
  2. Success Criteria: Specific, testable acceptance criteria with metrics
  3. Context:
  1. Implementation Blueprint:
  1. TDD Requirements: Test strategy and critical test cases
  2. Validation Gates: Executable commands (linting, type-checking, tests, coverage)

Critical: 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):

Update docs/blueprint/manifest.json ID registry with new PRP entry.

Step 8: Report PRP and prompt for next action

Display summary showing:

If confidence >= 7, offer user choices:

If confidence < 7, offer user choices:

Agentic Optimizations

| Context | Command |

|---------|---------|

| Check blueprint init | test -f docs/blueprint/manifest.json && echo "YES" \|\| echo "NO" |

| Next PRP ID | bash "${CLAUDE_SKILL_DIR}/../../scripts/blueprint-next-id.sh" --kind PRP |

| 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 curated rules rather than fetching docs again |


For PRP document structure, task categorization, review checklists, and curated-rule creation guidance, see REFERENCE.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.