code-to-prdlisted
Install: claude install-skill garbageek/claude-plugins
# Code to PRD
Read and apply [the delivery contract](../../references/delivery-contract.md) within this skill's scope and authorization.
Reverse-engineer an existing frontend, backend, or mixed codebase into an evidence-backed Product Requirements Document.
## Required Reference Routing
Load only the references needed for the current stage, but do not skip the required stage reference:
| Stage | Required reference |
|---|---|
| Framework detection and source inspection | [framework patterns](references/framework-patterns.md) |
| Final validation before delivery | [quality checklist](references/prd-quality-checklist.md) |
For mixed or monorepo projects, apply the framework reference independently to every detected application/package. Never select one “primary” framework and ignore the others.
## Modes and Installed Helpers
Choose the requested mode: **analyze only**, **create PRD**, or **update existing PRD**.
An inventory request never authorizes scaffolding. Updating an existing PRD is a
source-backed document edit, not a scaffolder rerun; preserve manual work and the
existing organization. Generate only the requested output scope.
Helpers require Python 3.10+ and the standard library. Resolve `SKILL_DIR` to the
actual directory containing this loaded `SKILL.md`; it is a shell variable you
set from the installed resource path, not a required host environment variable.
Do not look for a development checkout or another globally installed skill.
## Workflow
### 1. B