What is a Product Requirement Prompt (PRP)?
developmentA Product Requirement Prompt (PRP) is a structured prompt designed to provide an AI coding agent with the complete information required to deliver a specific vertical slice of working software. It combines the goal-oriented scope of a traditional Product Requirements Document (PRD) with technical context and implementation strategies necessary for agentic engineering.
A PRP is composed of three critical layers that distinguish it from a standard PRD:
- Context: Provides precise file paths, content, library versions, and code snippets. It often utilizes an
ai_docs/directory to pipe in relevant library documentation to ensure the LLM has direct references. - Implementation Details and Strategy: Explicitly defines how the software will be built. This includes specifying API endpoints, test runners, agent patterns (e.g., ReAct, Plan-and-Execute), typehints, dependencies, and architectural patterns.
- Validation Gates: Defines deterministic checks to ensure quality, such as
pytest,ruff, or static type passes. A common validation gate is requiring that all individual function tests pass before proceeding.
In essence, a PRP follows the formula: PRP = PRD + curated codebase intelligence + agent/runbook.