code-to-prd

Extracts routes, models, APIs and UI interactions from a codebase to generate a structured PRD.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/devCharuzu/philfida-taskmanage --skill code-to-prd-devcharuzu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-to-prd
Source: https://github.com/devCharuzu/philfida-taskmanage/tree/main/.windsurf/skills/code-to-prd
Command: npx skills add https://github.com/devCharuzu/philfida-taskmanage --skill code-to-prd-devcharuzu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Reconstructing a product requirement document from an existing codebase is time-consuming and error-prone; this skill automates turning frontend, backend, or fullstack projects into a structured PRD that stakeholders can review and engineers can implement from.

Core Features & Use Cases

  • Global analysis: detect framework, project structure, and data flows to seed PRD context.
  • Page/endpoint mapping: extract routes, components, models, APIs, and interactions to map features and data contracts.
  • PRD scaffolding: generate a self-contained prd/ directory with per-page docs, enum dictionaries, API inventories, and relationship maps for engineers and AI agents.

Quick Start

Run the codebase analyzer on your project to generate the PRD scaffold.

Frequently Asked Questions about code-to-prd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a PRD from an existing codebase?

To generate a PRD from an existing codebase, the analyzer extracts routes, models, APIs, and UI interactions to scaffold a structured document with per-page docs, enums, and relationship maps. It automates feature mapping for stakeholder review and implementation.

Can I extract API inventories and data models for fullstack projects?

Yes, you can extract API inventories and data models for fullstack projects. The analysis detects framework structures and data flows, mapping frontend UI interactions and backend endpoints into a complete production-ready specification.

What is the best way to document legacy codebase features for product managers?

The best way to document legacy codebase features for product managers is generating a self-contained directory with per-page docs and API inventories. This translates existing routes and models into structured specs for scoping and validation.

Does the PRD scaffolding support major frontend and backend frameworks?

Yes, PRD scaffolding supports major frontend and backend frameworks. It performs global analysis to detect the project structure and framework, automatically mapping routes and data contracts across fullstack implementations.

How does codebase analysis map UI interactions and routes for documentation?

Codebase analysis maps UI interactions and routes by detecting the project structure and extracting component relationships. It scaffolds a structured PRD containing relationship maps and enum dictionaries to guide engineers.

Why do I need a relationship map in a generated product requirement document?

You need a relationship map in a generated product requirement document to visualize data flows and component connections. It provides engineers and AI agents with structured context to scope, implement, and validate complete product specifications.