Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

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.

    by tronghieu 123
    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.

    by phuryn 28k
    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.

    by rampstackco 1.1k
    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.

    by mohitagw15856 1.6k
    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.

    by product-on-purpose 850
    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.

    by Trystan-SA 2.1k
    8/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added