prd-generator

Extract and structure product requirements from source code and configuration files.

Updated May 6, 2026
One-click install
npx skills add https://github.com/crgarcia12/compy --skill prd-generator-crgarcia12
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prd-generator
Source: https://github.com/crgarcia12/compy/tree/main/.github/skills/prd-generator
Command: npx skills add https://github.com/crgarcia12/compy --skill prd-generator-crgarcia12

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

The prd-generator Skill addresses the challenge of reconstructing a Product Requirements Document (PRD) from an existing codebase, providing a brownfield-friendly spec2cloud-compatible PRD for incremental planning and implementation.

Core Features & Use Cases

  • Codebase Analysis: Extracts and analyzes product vision, user personas, and feature list from code.
  • Feature Cataloging: Identifies and prioritizes features with traceable code and configuration sources.
  • Dependency Mapping: Maps feature dependencies, shared services, and external service dependencies.
  • Diagram Generation: Generates diagrams for product flow and implementation to visualize the system architecture.
  • PRD Generation: Outputs a structured PRD document with traceable evidence and a human gate for review.

Quick Start

Run the prd-generator skill with your codebase and specifications to generate a PRD document at 'specs/prd.md'.

Frequently Asked Questions about prd-generator

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

FAQPage Schema
How do I reverse-engineer a PRD from an existing codebase?

Reverse-engineering a PRD from a codebase involves analyzing source code and configuration files to extract user personas, features, and dependencies. The prd-generator skill automates this extraction to output a structured PRD document at 'specs/prd.md' for review.

Can I generate product requirements documentation for brownfield projects?

Yes, generating product requirements for brownfield projects is the primary use case. The skill analyzes existing code to reconstruct a spec2cloud-compatible PRD, cataloging features and mapping dependencies to support incremental planning and implementation.

What is the best way to map feature dependencies from source code?

Mapping feature dependencies is best handled by analyzing source code and configuration files to identify shared services and external integrations. This skill automates dependency tracking to visually document system architecture and traceable feature sources within the generated PRD.

Does PRD generation from code require manual review after extraction?

PRD generation from code requires a human gate for review after extraction. The automated process produces a structured document with traceable evidence, diagrams, and prioritized features, but human validation ensures the reconstructed requirements accurately reflect the product vision.

How to visualize product flow and implementation architecture for a legacy project?

Visualizing product flow for a legacy project requires mapping extracted features and service dependencies from the codebase. The skill generates diagrams for product flow and implementation architecture to help you understand the existing system structure during PRD reconstruction.