create-prd
Create PRD
Create a business-focused Product Requirements Document through structured brainstorming.
Required Inputs
- Feature name or product idea.
- Optional: existing
_prd.mdfile for update mode.
Workflow
-
Determine the project name and working directory.
- Derive the slug from the feature name provided by the user.
- Use
tasks/prd-<slug>/as the target directory. - If
_prd.mdalready exists in the target directory, read it and operate in update mode. - If the directory does not exist, create it.
- Create
tasks/prd-<slug>/adrs/directory if it does not exist.
-
Discover context through parallel research.
- Spawn one Agent tool call to explore the codebase for relevant patterns, existing features, and architecture.
- Spawn a second Agent tool call to perform 3-5 web searches for market trends, competitive analysis, and user needs.
- Merge findings from both agents before proceeding to questions.
-
Ask clarifying questions following
references/question-protocol.md.- Focus exclusively on WHAT features users need, WHY it provides business value, and WHO the target users are.
- Ask about success criteria and constraints.
- Never ask technical implementation questions about databases, APIs, frameworks, or architecture.
- Ask at most 3 questions per round and wait for answers before the next round.
- Complete at least one full clarification round before presenting approaches.
-
Present product approaches.
- Offer 2-3 product approaches with trade-offs for each.
- Lead with the recommended approach and explain why it is preferred.
- Wait for the user to select an approach before continuing.
- After the user selects an approach, create an ADR for this decision:
- Read
references/adr-template.md. - Determine the next ADR number by listing existing files in
tasks/prd-<slug>/adrs/. - Fill the template: the selected approach as "Decision", rejected approaches as "Alternatives Considered" with their trade-offs, and outcomes as "Consequences". Set Status to "Accepted" and Date to today.
- Write the ADR to
tasks/prd-<slug>/adrs/adr-NNN.md(zero-padded 3-digit number, e.g.,adr-001.md).
- Read
-
Refine the chosen approach.
- Ask targeted follow-up questions based on the selected approach.
- Confirm key decisions about scope, phasing, and success criteria with the user before generating the document.
- If the user makes a significant scope decision during refinement (e.g., including or excluding a major feature, choosing a phasing strategy), create an additional ADR for that decision following the same process as step 4.
-
Generate the PRD document.
- Read
references/prd-template.mdand fill every section with the gathered context. - Include an "Architecture Decision Records" section listing all ADRs created during this session with their numbers, titles, and one-line summaries as links to the
adrs/directory. - Write the completed document to
tasks/prd-<slug>/_prd.md. - The PRD must describe user capabilities and business outcomes only.
- No databases, APIs, code structure, frameworks, testing strategies, or architecture decisions.
- Read
Error Handling
- If the user provides insufficient context to complete a section, note it in the Open Questions section rather than guessing.
- If web research tools are unavailable, proceed with codebase exploration only and note the limitation.
- If the target directory cannot be created, stop and report the filesystem error.
- If operating in update mode, preserve sections the user has not asked to change.
More from compozy/looper
create-tasks
Decomposes PRDs and TechSpecs into detailed, independently implementable task files with enrichment from codebase exploration. Use when a PRD or TechSpec exists and needs to be broken down into executable tasks, or when task files need enrichment with implementation context. Do not use for PRD creation, TechSpec generation, or direct task execution.
3execute-prd-task
Executes one PRD task end-to-end using a provided task file, PRD directory, tracking file paths, and auto-commit mode. Use when a prompt includes a task specification that must be implemented, validated, and reflected in task tracking files. Do not use for PR review batches, generic coding tasks without a PRD task file, or standalone verification-only work.
3create-techspec
Creates a Technical Specification by translating PRD business requirements into implementation designs through interactive technical clarification. Use when a PRD exists and needs a technical plan, or when technical architecture decisions need documentation. Do not use for PRD creation, task breakdown, or direct code implementation.
3fix-reviews
Executes provider-agnostic PR review remediation using existing review round files under tasks/prd-<name>/reviews-NNN/. Use when resolving batched review issues, updating issue/grouped markdown files, implementing fixes, and verifying the result. Do not use for PRD task execution, review export/fetch, or generic coding tasks without review issue files.
1