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
- Start the dev environment:
- No additional credentials needed beyond default LLM credentials.
- 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"}'
- Confirm the output matches the expected schema and content.
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
Folder Structure
This workflow lives at
src/workflows/prd_generator/:workflow.ts— deterministic orchestration (no I/O, noDate.now(), noMath.random())steps.ts— all HTTP, LLM, and external API callstypes.ts— Zod input/output schemasprompts/— LLM prompt templates (if needed)scenarios/— test input JSON filesScenario
Create
src/workflows/prd_generator/scenarios/happy_path.jsonwith 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
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"}'