generate-prp

generate-prp is a command for Claude Code from croffasia/cc-blueprint-toolkit. It costs 15 tokens per session (1,443 once invoked), scanned A, original, MIT.

A command for creating a comprehensive PRP, or Product Requirements and Plans document, from a feature request. It combines task validation, codebase analysis, research, documentation, and implementation context.

In plain words
What is it for?
Use it to turn a feature description into a researched implementation plan with requirements, findings, documentation links, examples, and validation details.
Why use it?
It puts the information needed by an executor agent into one document, reducing repeated investigation and missing context during development.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the TodoWrite tool.

Part of the cc-blueprint-toolkit plugin — 5 commands, 4 agents, 2 MCP servers shipped together

Good fit Use it to turn a feature description into a researched implementation plan with requirements, findings, documentation links, examples, and validation details.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/croffasia/cc-blueprint-toolkit/generate-prp
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/croffasia/cc-blueprint-toolkit

Made for: Claude Code.

Or install cc-blueprint-toolkit, the plugin that ships this one along with the rest of its 5 commands, 4 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-prp

README.md
[![agentmods](https://agentmods.dev/badge/commands/croffasia/cc-blueprint-toolkit/generate-prp.svg)](https://agentmods.dev/commands/croffasia/cc-blueprint-toolkit/generate-prp)
Your own site
<a href="https://agentmods.dev/commands/croffasia/cc-blueprint-toolkit/generate-prp"><img src="https://agentmods.dev/badge/commands/croffasia/cc-blueprint-toolkit/generate-prp.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,443 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.01443
Opus 5 $0.00008 $0.00722
Sonnet 5 $0.00003 $0.00289
Haiku 4.5 $0.00002 $0.00144

Measured 8d ago against content hash b9d3d766bf24, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

generate-prp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude/commands/generate-prp.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create PRP

Feature file: $ARGUMENTS

Generate PRP (Product Requirements & Plans) through validated research and codebase analysis.

Workflow Summary

Two-phase approach: validate completeness (Phase 1), then research (Phase 2).

CRITICAL: PRP must contain ALL context - research findings, documentation URLs, code examples. The executor agent sees only the final PRP document, not your research process.

Research Process

Phase 1: Initial Discovery & Task Validation (Validate task completeness before deep research)

  1. Preflight Analysis (Use subagent: bp:preflight-prp)

    • Quick scan of project structure for similar features/patterns
    • Analyze user's task description for business logic completeness
    • Identify gaps in user requirements and missing business logic details:
      • User flows and interaction patterns
      • Data requirements and relationships
      • Integration points with existing features
      • Edge cases and error scenarios
      • UI/UX expectations and constraints
    • Language Guidelines for Questions:
      • Ask clarification questions in the same language the user wrote the initial task
      • Wait for user responses and analyze thoroughly
    • Generate targeted clarification questions if gaps identified
    • Make proceed/clarify recommendation with clear reasoning
  2. Decision Gate:

    • IF bp:preflight-prp recommends PROCEED → Continue to Phase 2
    • IF bp:preflight-prp identifies gaps → Stop and ask clarifying questions
    • ONLY continue to comprehensive research after user provides missing details
    • Use surface discovery findings to inform Phase 2 research focus

Phase 2: Comprehensive Research Phase (After task validation - Codebase first, then smart external research)

  1. Codebase Analysis (Use subagent: bp:codebase-research)
    • Search for similar features/patterns in the codebase
    • Identify files to reference in PRP
    • Note existing conventions to follow
    • Check test patterns for validation approach
    • CRITICAL: Document what components/libraries/patterns already exist
    • ASSESS: Determine knowledge gaps that truly need external research

Read the full file on GitHub · 159 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 159 lines · 15 tokens per session scan A b9d3d766bf24

Subscribe to this mod's changes

generate-prp is a command published in the GitHub repository croffasia/cc-blueprint-toolkit (194 stars, last pushed 9mo ago), licensed MIT. It adds 15 tokens to every session and 1,443 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.