prompts/squad/skills/write-a-prd/SKILL.md
Generate a Product Requirements Document from a task description, user intent, or PRD outline. Structure the PRD with sections: Overview, Problem Statement, Goals, Scope, Features, Acceptance Criteria, Metrics. Use this when the Planner or Orchestrator needs to formalize requirements before decomposing into implementation steps.
npx skillsauth add imabusyman/CodebrewRouter write-a-prdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Formalizes task intent into a structured PRD that serves as input to the Planner or Orchestrator.
A PRD for Blaze.LlmGateway tasks typically has:
# PRD: <Feature Name>
## Overview
<One-paragraph executive summary: what, why, who benefits>
## Problem Statement
<Current state, pain point, why it matters>
## Goals
- <Specific, measurable goal>
- <Specific, measurable goal>
## Scope
### In scope
- <Feature or component>
- <Behavior or interface>
### Out of scope
- <Deliberate exclusion>
## Features
### Feature 1: <Name>
<Description, inputs, outputs, constraints>
### Feature 2: <Name>
<Description, inputs, outputs, constraints>
## Acceptance Criteria
- [ ] Criterion 1 (testable, specific)
- [ ] Criterion 2 (testable, specific)
- [ ] Blaze.LlmGateway-specific: builds with `-warnaserror`, 95% code coverage, ADR-0008 compliant
## Success Metrics
- <Quantifiable outcome: latency, coverage, adoption>
## Dependencies
- <Existing components or external services this relies on>
## Open Questions
- <Ambiguities to resolve before implementation>
Docs/PRD/<slug>.md (long-lived, blessed version).Docs/squad/runs/<ts>-<slug>/prd.md (working copy for this run).See Docs/PRD/blaze-llmgateway-prd.md for a system-level PRD. Task-specific PRDs are smaller and focused on a single feature or component (e.g., "add a circuit breaker to LlmRoutingChatClient").
Before marking the PRD complete:
squad-plan command — invoked after PRD is approved, decomposes into ordered steps.development
Compose parallel teams of specialized agents for a multi-faceted task. Map subtasks to agent roles, balance workload, and validate team composition. Use this when breaking a task into parallel streams that require different expertise (Coder, Tester, Infra, etc.).
development
Delegate implementation work to specialized subagent instances, each inheriting a task scope and constraints from the parent. Emit structured handoffs, monitor completion signals, aggregate results. Use this in the Orchestrator parallel path when spawning independent Coder/Tester/Infra subagents from a single coordinator.
testing
Maintain the append-only reasoning log and write handoff envelopes for every squad delegation. Use this when the Conductor delegates to a specialist or when a specialist records a non-trivial decision.
development
Enforce the -warnaserror build + 95% coverage test gate on every squad [DONE]. Use this before any specialist (Coder, Tester, Reviewer, Infra) marks a phase complete.