Skip to content

[example] PRD Generator #41

@bnchrch

Description

@bnchrch

Overview

Takes a feature description or brief and scrapes the product site for context, then generates a full Product Requirements Document including problem statement, user stories, requirements, success metrics, and edge cases.

Input: Feature description or brief (text) + product URL
Output: Full PRD with problem statement, user stories, functional requirements, success metrics, and edge cases

APIs Required

  • Scraping: Firecrawl or Jina Reader
  • LLM: Anthropic API

Folder Structure

Based on: output-dev-folder-structure skill

This workflow lives at src/workflows/prd_generator/:

  • workflow.ts — deterministic orchestration (no I/O, no Date.now(), no Math.random())
  • steps.ts — all HTTP, LLM, and external API calls
  • types.ts — Zod input/output schemas
  • prompts/ — LLM prompt templates (if needed)
  • scenarios/ — test input JSON files

Scenario

Based on: output-dev-scenario-file skill

Create src/workflows/prd_generator/scenarios/happy_path.json with a realistic sample input, e.g.:

{
  "featureDescription": "Allow users to export their data as a CSV file from the dashboard",
  "productUrl": "https://yourproduct.com"
}

Test Plan

Based on: output-workflow-run skill

  1. Start the dev environment:
    npx output dev
  2. No additional credentials needed beyond default LLM credentials.
  3. Run with the scenario:
    npx output workflow run prd_generator --scenario happy_path
    Or with inline input:
    npx output workflow run prd_generator --input '{"featureDescription": "Allow users to export their data as a CSV file from the dashboard", "productUrl": "https://yourproduct.com"}'
  4. Confirm the output matches the expected schema and content.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions