Code to PRD
Helps you write a PRD or product spec from an existing codebase (reverse-engineer requirements, document pages, fields, routes and endpoints).
In detail
Use when asked to write a PRD or product spec from an existing codebase (reverse-engineer requirements, document pages, fields, routes and endpoints). Maps the code with codebase_analyzer.py and scaffolds the PRD with prd_scaffolder.py.
Safety check
- Script calls the network: scripts/codebase_analyzer.py line 226
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: code-to-prd
description: "Use when asked to write a PRD or product spec from an existing codebase (reverse-engineer requirements, document pages, fields, routes and endpoints). Maps the code with codebase_analyzer.py and scaffolds the PRD with prd_scaffolder.py."
license: MIT
metadata:
updated: 2026-03-17
tier: STANDARD
category: product
dependencies: none
author: Alireza Rezvani
version: 2.1.2
---
## Name
Code → PRD
## Description
Reverse-engineer any frontend, backend, or fullstack codebase into a complete Product Requirements Document (PRD). Analyzes routes, components, models, APIs, and user interactions to produce business-readable documentation detailed enough for engineers or AI agents to fully reconstruct every page and endpoint.
# Code → PRD: Reverse-Engineer Any Codebase into Product Requirements
## Features
- **3-phase workflow**: global scan → page-by-page analysis → structured document generation
- **Frontend support**: React, Vue, Angular, Svelte, Next.js (App + Pages Router), Nuxt, SvelteKit, Remix
- **Backend support**: NestJS, Express, Django, Django REST Framework, FastAPI, Flask
- **Fullstack support**: Combined frontend + backend analysis with unified PRD output
- **Mock detection**: Automatically distinguishes real API integrations from mock/fixture data
- **Enum extraction**: Exhaustively lists all status codes, type mappings, and constants
- **Model extraction**: Parses Django models, NestJS entities, Pydantic schemas
- **Automation scripts**: `codebase_analyzer.py` for scanning, `prd_scaffolder.py` for directory generation
- **Quality checklist**: Validation checklist for completeness, accuracy, readability
## Usage
```bash
# Analyze a project and generate PRD skeleton
python3 scripts/codebase_analyzer.py /path/to/project -o analysis.json
...From alirezarezvani's repository, MIT licence.
Related skills
-
Checked
Product manager copilot
Turns evidence into product decisions, PRDs, prioritised backlogs and launch plans, all kept in one workspace.
7/101 credit -
Checked
Strategy red team
Attacks the key assumptions in a plan or roadmap and gives the cheapest test and kill criteria for each one.
8/101 credit -
Checked
Roadmap planner
Builds a multi quarter roadmap from your backlog, sequenced by capacity, with a clear list of what not to do.
7/101 credit -
Checked
Hostile expert panel
Stress tests a plan or launch with hostile expert personas, then ranks the biggest risks and the fixes.
7/101 credit -
Checked
Feature prioritisation frameworks
Scores features with RICE, ICE, MoSCoW and more, showing where rankings agree so you can pick what to build.
7/101 credit -
Checked
Feature framing brief
Frames a feature before it is built with a job story, success metric, click budget and kill criteria.
8/101 credit