Agent skill

Prd Generator

by EmeaAppGbb in EmeaAppGbb/spec2cloud

Generate a Product Requirements Document (PRD) from analyzed codebase extraction data.

MITAuto-check passedProduct & Project Management

Install Prd Generator

skills CLI
$ npx skills add EmeaAppGbb/spec2cloud --skill prd-generator -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install EmeaAppGbb/spec2cloud prd-generator --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/EmeaAppGbb/spec2cloud.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/prd-generator .claude/skills/prd-generator && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
prd-generator
GitHub stars
100
Token cost
~3.1k tokens
SKILL.md length
1,229 words
Files
1
Skills in repo
38
Repo updated
First seen
Licence
MIT

At a glance

Generate a Product Requirements Document (PRD) from analyzed codebase extraction data.

  • Works in 6 steps: Identify the Application's Purpose → Infer User Personas → Catalog Features → …
  • Tasks that involve PRD writing
  • SKILL.md covers Role, Inputs, Process and Output, plus 8 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Prd Generator is an agent skill from EmeaAppGbb/spec2cloud. Generate a Product Requirements Document (PRD) from analyzed codebase extraction data. Reverse-engineer the product vision, user personas, and feature list from what the code actually implements. Used in brownfield workflows to produce a spec2cloud-compatible PRD that drives downstream FRD generation, increment planning, and implementation.

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Product & Project Management, covering PRD writing. The licence is MIT.

When your agent uses it

  • Tasks that involve PRD writing

Example prompts

  • “/prd-generator”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Identify the Application's Purpose
  2. Infer User Personas
  3. Catalog Features
  4. Map Feature Dependencies
  5. Generate Diagrams
  6. Determine Product Scope

What it can do on your machine

Read from SKILL.md and the folder at commit 8e76618. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown and mermaid).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Prd Generator loads about 3.1k tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 1,229 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from EmeaAppGbb/spec2cloud at commit 8e76618, republished under its MIT licence (© EmeaAppGbb). 1,229 words, ~3,079 tokens.

Download SKILL.mdSave it as .claude/skills/prd-generator/SKILL.md (or your agent's skills folder).
name
prd-generator
description
Generate a Product Requirements Document (PRD) from analyzed codebase extraction data. Reverse-engineer the product vision, user personas, and feature list from what the code actually implements. Used in brownfield workflows to produce a spec2cloud-compatible PRD that drives downstream FRD generation, increment planning, and implementation.

PRD Generator (Brownfield)

Role

You are the PRD Generator agent — the "reverse-engineer the product" agent in the spec2cloud brownfield pipeline. Your job is to produce a complete Product Requirements Document by analyzing what the codebase actually does, not what someone imagines it should do.

In a greenfield workflow, a human writes the PRD from a product vision. In brownfield, you reconstruct the PRD from extraction outputs: the technology stack, architecture overview, component inventory, test coverage, route maps, and source code. The result must be a PRD that is structurally identical to a greenfield PRD so that every downstream skill (FRD generation, gherkin generation, increment planning) works without modification.

You are an archaeologist, not an architect. You document what exists. When you must infer intent, you say so explicitly.

Inputs

SourcePathWhat It Provides
Technology stackspecs/docs/technology/stack.mdLanguages, frameworks, dependencies, infrastructure
Architecture overviewspecs/docs/architecture/overview.mdHigh-level system structure, patterns used
Component inventoryspecs/docs/architecture/components.mdAll modules, services, and their responsibilities
Test coveragespecs/docs/testing/coverage.mdWhat is tested, what is not, assertion patterns
README / package manifestsRoot-level README.md, package.json, *.csproj, go.mod, etc.Stated purpose, description, scripts
Source codeEntire codebaseEntry points, route definitions, auth config, UI components

Process

Step 1: Identify the Application's Purpose

Read the README, package descriptions, manifest metadata, and main entry points. Look for:

  • description fields in package.json, pyproject.toml, *.csproj
  • README title and first paragraph
  • Main entry point comments and module docstrings
  • CI/CD pipeline names and deployment target names
  • Domain-specific terminology used across the codebase

Synthesize into a single Product Vision paragraph. If the README is missing or generic (e.g., "This project was bootstrapped with Create React App"), note this and derive the vision from the code's actual behavior instead.

Step 2: Infer User Personas

Analyze the codebase for evidence of distinct user types:

  1. Authentication and authorization — Check auth middleware, role definitions, permission guards, JWT claims, OAuth scopes, RBAC configurations. Each distinct role implies a persona.
  2. UI routes and views — Group routes by access level. Admin routes imply an admin persona. Public routes imply an end-user persona. Dashboard views imply a manager persona.
  3. API consumers — Look for API key management, webhook configurations, SDK generation, OpenAPI specs. These imply developer/integration personas.
  4. Background processes — Scheduled jobs, queue consumers, and batch processors imply operator/system personas.

For each inferred persona, document:

  • Role: What the persona is (e.g., "Admin User", "API Consumer")
  • Evidence: Where in the code this persona is visible (file paths, route patterns, role names)
  • Needs: What capabilities the code provides to this persona
  • Goals: What the persona appears to accomplish (inferred from workflows)

Mark all persona entries as Inferred: with reasoning if they are not explicitly defined in the codebase (e.g., no role constants, no documented user types).

Step 3: Catalog Features

Identify discrete feature areas by analyzing:

  1. Route groups — Routes sharing a common prefix (e.g., /api/users/*, /api/orders/*) usually represent a feature area.
  2. Component clusters — UI components in the same directory or sharing imports typically form a feature.
  3. Service boundaries — Classes/modules with distinct responsibilities (e.g., PaymentService, NotificationService).
  4. Database models/entities — Each aggregate root or primary entity often maps to a feature.
  5. Configuration sections — Feature flags, environment variables grouped by concern.

For each feature, assign:

  • Feature ID: F-001, F-002, etc.
  • Name: Descriptive name derived from code naming
  • Description: What the feature does based on code analysis
  • Priority: Inferred from code completeness:
    • P0 (Critical) — Fully implemented, heavily tested, core flow
    • P1 (High) — Fully implemented, moderate tests
    • P2 (Medium) — Implemented but sparse tests or partial coverage
    • P3 (Low) — Stubbed, partially implemented, or behind feature flags
Step 4: Map Feature Dependencies

Using import graphs, call chains, and shared data models:

  1. Build a dependency map showing which features depend on which others
  2. Identify shared services (auth, logging, config) that multiple features use
  3. Note circular dependencies or tight coupling — these are important for downstream migration planning
  4. Record external service dependencies (third-party APIs, databases, message queues)
Step 5: Generate Diagrams

Generate Mermaid diagrams that make the PRD easier to understand:

  1. Product Flow Diagram — place this at the top of the PRD when the product has a meaningful workflow, actor handoff, lifecycle, or multi-step process. Prefer:
    • flowchart for business processes
    • journey for end-to-end user journeys
    • stateDiagram-v2 for lifecycle/state transitions
  2. Implementation Diagram — because brownfield already has working code, include an as-built diagram when the runtime flow is non-trivial. Prefer:
    • sequenceDiagram for request/response or command/event flows
    • flowchart for orchestration or branching pipelines

If a diagram would not materially improve understanding, say so explicitly instead of forcing decorative Mermaid.

Show full SKILL.md (479 more words)Show less
Step 6: Determine Product Scope

Categorize everything found into:

  • Implemented: Code exists, is reachable, and appears functional
  • Stubbed/Incomplete: Code exists but throws NotImplementedError, returns TODO responses, has commented-out logic, or is behind disabled feature flags
  • Out of Scope: Functionality that is clearly not present — document based on what the app does NOT do compared to what its domain would suggest

This directly maps to the "Out of Scope" section of the PRD.

Output

File: specs/prd.md

The generated PRD must preserve the greenfield PRD's core sections and order, with the optional diagram sections described below:

markdown
# Product Requirements Document

## Product Flow Diagram

```mermaid
{Mermaid diagram that clarifies the product or business process when relevant}

{If no product/process diagram materially improves understanding, state that it was intentionally omitted because the flow is trivial.}

Product Vision

{One paragraph synthesizing the application's purpose, target audience, and core value proposition. Derived from README, package metadata, and code analysis.}

User Personas

{Persona Name}
  • Role: {description}
  • Needs: {what they need from the product}
  • Goals: {what they want to accomplish}
  • Source: {Inferred from auth roles | Explicit in codebase}

{Repeat for each persona}

Feature List

IDFeatureDescriptionPriorityDependencies
F-001{name}{description}P0—
F-002{name}{description}P1F-001

{Repeat for each feature}

Non-Functional Requirements

Performance

{Extracted from load test configs, caching setup, CDN config, rate limiters}

Security

{Extracted from auth config, CORS settings, CSP headers, secret management}

Reliability

{Extracted from retry policies, circuit breakers, health checks, monitoring}

Scalability

{Extracted from container orchestration, auto-scaling config, queue usage}

Observability

{Extracted from logging config, APM setup, metrics, alerting rules}

Out of Scope

{Areas explicitly not implemented. If the app is an e-commerce platform but has no recommendation engine, note that here. Derived from Step 6.}

Implementation Diagram

mermaid
{Mermaid sequence, flow, or state diagram of the current implementation if
useful}

{If the implementation is too trivial for a diagram, state that it was intentionally omitted.}

Appendix: Extraction Evidence

{Summary table mapping each PRD section to the extraction files and code locations that informed it. This provides traceability.}


## Critical Rules

1. **Generate from FACTS only.** Every statement in the PRD must be traceable
   to code, configuration, or extraction output. Do not invent features.

2. **Mark inferences explicitly.** When you infer intent (e.g., "this appears
   to be a user management feature based on route naming"), prefix with
   `Inferred:` and include your reasoning.

3. **Never fabricate features.** If a route exists but the handler is empty,
   document it as "Stubbed" — do not describe it as a working feature.

4. **Preserve the greenfield core format.** Downstream skills (FRD generator,
   gherkin generator, increment planner) expect the core section structure shown
   above. Do not rename the core sections or change the feature table columns.
   The only diagram additions are `## Product Flow Diagram` immediately after
   the title and `## Implementation Diagram` before the appendix when useful.

5. **Include the evidence appendix.** This is the brownfield-specific addition
   that gives reviewers confidence the PRD reflects reality.

## Human Gate

**Required.** The generated PRD must be reviewed and approved by a human before
FRD generation begins. Present the PRD with a summary of:

- Total features identified
- Persona count and confidence level
- Areas where inference was heavy (low confidence sections)
- Stubbed/incomplete features that may need product decisions
- Whether the PRD included product and implementation diagrams or explicit omission rationale

The human may:
- ✅ Approve as-is → proceed to FRD generation
- ✏️ Edit and approve → update `specs/prd.md` with changes, then proceed
- ❌ Reject → re-run extraction with additional focus areas, regenerate

## State Tracking

After generating the PRD, update `.spec2cloud/state.json`:

```json
{
  "phase": "brownfield",
  "step": "prd-generation",
  "status": "awaiting-approval",
  "artifacts": {
    "prd": {
      "path": "specs/prd.md",
      "features_count": 0,
      "personas_count": 0,
      "generated_at": "ISO-8601"
    }
  }
}

After human approval, update status to "approved".

Quality Checklist

Before presenting the PRD for human review:

  • Product Vision is a single, coherent paragraph
  • The PRD begins with a Mermaid product/process diagram when the workflow is non-trivial, or explicitly explains why a diagram was omitted
  • Every persona has evidence from the codebase
  • Every feature has a traceable source (routes, components, services)
  • Feature priorities reflect actual code completeness, not guesses
  • Non-functional requirements are extracted from real config, not assumed
  • Out of Scope section exists (even if minimal)
  • The PRD includes an as-built implementation diagram when the runtime flow is non-trivial, or explicitly explains why it was omitted
  • Evidence appendix maps every section to extraction sources
  • No fabricated features — every entry is backed by code
  • Format matches the greenfield PRD core template plus the diagram guidance above
  • State JSON is updated

BLOCKING: If any item is unchecked, the skill has NOT completed successfully. The orchestrator must loop back and complete the missing items before advancing. The PRD is the foundation for all downstream FRDs — gaps here propagate everywhere.

© EmeaAppGbb, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/prd-generator of EmeaAppGbb/spec2cloud.

Open the folder on GitHubat commit 8e76618

Compare with similar skills

Prd Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Prd Generator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prd Generator this skillEmeaAppGbb/spec2cloud100—~3.1kAutomated safety check: PassMIT
CCPM Project Managementautomazeio/ccpm8.4k—~1.1kAutomated safety check: PassMIT
Ralph Tui Create Beadssubsy/ralph-tui2.5k1 repos~2.6kAutomated safety check: PassMIT
Trellis Brainstormanjiemo/SunnyBeach1787 repos~4kAutomated safety check: PassApache-2.0
Adversarial Speczscole/adversarial-spec5561 repos~8.3kAutomated safety check: NotesMIT
Ralph Tui Create Beads Rustsubsy/ralph-tui2.5k1 repos~2.8kAutomated safety check: PassMIT

Similar skills

  • Runs a spec-driven workflow from PRD to epic to GitHub issues to parallel agents, with status, standup and blocked-work reports from bundled scripts.

    8.4k GitHub stars~1.1k tokensUpdated 6 mo ago
    Product & Project ManagementAuto-check passed
  • Ralph Tui Create Beads

    subsy/ralph-tui

    Convert PRDs to beads for ralph-tui execution. An agent skill from subsy/ralph-tui.

    2.5k GitHub starsUsed in 1 repo~2.6k tokens
    Product & Project ManagementAuto-check passed
  • Trellis Brainstorm

    anjiemo/SunnyBeach

    Guides collaborative requirements discovery before implementation.

    178 GitHub starsUsed in 7 repos~4k tokens
    Product & Project ManagementAuto-check passed
  • Adversarial Spec

    zscole/adversarial-spec

    Iteratively refine a product spec by debating with multiple LLMs (GPT, Gemini, Grok, etc.) until all models agree.

    556 GitHub starsUsed in 1 repo~8.3k tokens
    Product & Project ManagementAuto-check: notes
  • Convert PRDs to beads for ralph-tui execution using beads-rust (br CLI).

    2.5k GitHub starsUsed in 1 repo~2.8k tokens
    Product & Project ManagementAuto-check passed
  • Runs a guided product-manager interview that classifies each question automatically and produces a Product Requirements Document.

    6.2k GitHub starsUsed in 1 repo~5.7k tokens
    Product & Project ManagementAuto-check passed

More from EmeaAppGbb/spec2cloud

All 38 skills in this repo
  • Azure Deployment

    EmeaAppGbb/spec2cloud

    Provision Azure infrastructure, deploy to Azure Container Apps, and verify via smoke tests.

    100 GitHub stars~1.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Contract Generation

    EmeaAppGbb/spec2cloud

    Generate API contracts, shared TypeScript types, and infrastructure resource definitions from Gherkin scenarios and test files.

    100 GitHub stars~1.6k tokensUpdated 5 mo ago
    Auto-check passed
  • Ddd Modeling

    EmeaAppGbb/spec2cloud

    Create Domain-Driven Design proposals from product specs or brownfield extraction outputs.

    100 GitHub stars~2.4k tokensUpdated 5 mo ago
    Auto-check passed
  • Implementation

    EmeaAppGbb/spec2cloud

    Write application code to make failing tests pass using contract-driven, slice-based architecture.

    100 GitHub stars~2.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Spec Refinement

    EmeaAppGbb/spec2cloud

    Review PRDs and FRDs through product and technical lenses. An agent skill from EmeaAppGbb/spec2cloud.

    100 GitHub stars~2.2k tokensUpdated 5 mo ago
    Auto-check passed
  • State Management

    EmeaAppGbb/spec2cloud

    Read, write, and maintain .spec2cloud/state.json across phases and increments.

    100 GitHub stars~1.5k tokensUpdated 5 mo ago
    Auto-check passed

Questions about Prd Generator

What does Prd Generator do?

Generate a Product Requirements Document (PRD) from analyzed codebase extraction data. Prd Generator is an agent skill from EmeaAppGbb/spec2cloud. Generate a Product Requirements Document (PRD) from analyzed codebase extraction data.

When should I use Prd Generator?

Prd Generator fits situations like: tasks that involve PRD writing.

How do I install Prd Generator in Claude Code?

Run `npx skills add EmeaAppGbb/spec2cloud --skill prd-generator -a claude-code`. Or copy the skill folder (.github/skills/prd-generator in EmeaAppGbb/spec2cloud) into .claude/skills/prd-generator in your project. Claude Code loads it when a task matches its description.

How do I install Prd Generator in Codex?

Run `npx skills add EmeaAppGbb/spec2cloud --skill prd-generator -a codex`. Or copy the skill folder (.github/skills/prd-generator in EmeaAppGbb/spec2cloud) into .agents/skills/prd-generator in your project. Codex loads it when a task matches its description.

Can I use Prd Generator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add EmeaAppGbb/spec2cloud --skill prd-generator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/prd-generator, .gemini/skills/prd-generator, .github/skills/prd-generator and .opencode/skills/prd-generator in your project.

What does Prd Generator need to run?

SKILL.md names no scripts, command-line tools or credentials: Prd Generator is instructions for the agent only.

Does Prd Generator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Prd Generator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Prd Generator use?

Prd Generator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Prd Generator use?

About 3.1k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Prd Generator?

Skills that share tags, products or a category with Prd Generator: CCPM Project Management (automazeio/ccpm, 8.4k stars), Ralph Tui Create Beads (subsy/ralph-tui, 2.5k stars), Trellis Brainstorm (anjiemo/SunnyBeach, 178 stars) and Adversarial Spec (zscole/adversarial-spec, 556 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Prd Generator?

EmeaAppGbb (a GitHub organization) maintains it in EmeaAppGbb/spec2cloud, which has 100 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on April 16, 2026.

Source: EmeaAppGbb/spec2cloud on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.