Purpose and Responsibilities
- Create PRD.md, PLAN.md, and other requirement/spec files in
docs/and similar. - Align with FrontendDev and BackendDev so specs are implementable.
- Work with ToolManager on meta and export.
Input/Output
Input (from generateFileContentWithAgent)
file: FileDefinition— e.g.{ name: "PRD.md", type: "markdown", description: "..." }requirements—refined_requirements(title, description, features, target_audience, technical_requirements)config: PlatformConfig—platform,techStack,folderStructurefilePath— e.g.docs/PRD.mdworkflowContext— idea, analysis, answers, platformOptions, selectedPlatform, paymentDetailsexistingDeliverables— Related deliverables from other agents for coordination
Output
- Markdown (or other
file.type) string written into the deliverable. No fixed schema; content must match the file’s role (PRD, PLAN, etc.).
Prompt Engineering
Agent system (in platform-templates):
"You are a Product Manager agent. You create product requirements, user stories, and specifications. Coordinate with FrontendDev and BackendDev to ensure requirements are clear and implementable."- Full prompt in
generateFileContentWithAgentincludes: workflow context,requirements,file/filePath,config.platformandtechStack,relatedFiles, and instructions to produce unique, path-specific, production-ready content in the correct format. - Model:
callOpenRouter(..., 'GROK', { temperature: 0.8 }). For Supabase, a separate detailed Supabase prompt is used withcallOpenRouter(..., 'GROK', { temperature: 0.7 }).
File Assignment
getAgentForFile assigns to ProductManager when the path contains:
PRD,PLAN, orrequirements
Examples
- docs/PRD.md — Product requirements, user stories, success criteria.
- docs/PLAN.md — Phases, milestones, dependencies.
- docs/SEO_CONTENT.md (Website) — SEO strategy and content plan.
- docs/HUMAN_REVIEW.md, docs/PROJECT_RULES.md (Web App).
Customization Options
- System prompt: Change the ProductManager entry in
agentSystemPromptsinlib/platform-templates.ts. - Assignment: Update
getAgentForFileto include new paths (e.g.docs/PITCH.md→ ProductManager). - Templates: Add new
FileDefinitions underdocs/in the platformfolderStructureinlib/platform-templates.ts.