2026-04-10 09:24:59 +00:00
---
name: analyze-prd
2026-04-10 09:34:54 +00:00
description: "Extract architectural requirements from a PRD, identify relevant knowledge domains, and flag ambiguities before architecture design. This is the Architect pipeline's first step. Produces internal analysis only — no file artifacts."
2026-04-10 09:24:59 +00:00
---
2026-04-10 09:34:54 +00:00
This skill extracts architectural requirements from the PRD before designing architecture.
2026-04-10 09:24:59 +00:00
**Announce at start:** "I'm using the analyze-prd skill to extract architectural requirements from the PRD."
## Purpose
2026-04-10 09:34:54 +00:00
Read the PRD and extract the architectural dimensions that must be addressed during design. Identify which knowledge domains are relevant, flag ambiguities that block architectural decisions, and produce structured internal analysis that feeds into `design-architecture` .
## Important
This skill produces **internal analysis only** . It MUST NOT write any file artifacts. The strict pipeline output is `docs/architecture/{date}-{feature}.md` only.
2026-04-10 09:24:59 +00:00
## Hard Gate
Do NOT start designing architecture in this skill. This skill only extracts and organizes requirements. Design happens in `design-architecture` .
## Process
You MUST complete these steps in order:
2026-04-10 09:34:54 +00:00
1. **Read the PRD** at `docs/prd/{date}-{feature}.md` end-to-end
2. **Inspect existing codebase** for current architecture, service boundaries, and technology stack (if applicable)
2026-04-10 09:24:59 +00:00
3. **Extract functional requirements** - List each functional requirement and its architectural implications
4. **Extract non-functional requirements** - List each NFR and its architectural implications
5. **Identify relevant knowledge domains** - Determine which of the 9 knowledge domains are relevant:
- System Decomposition
- API & Contract Design
- Data Modeling
- Distributed System Basics
- Architecture Patterns
- Storage Knowledge
- Async & Queue Design
- Error Model Design
- Idempotency Design
6. **Flag ambiguities** - Identify any PRD requirements that are unclear for architectural purposes
7. **Map requirements to architecture sections** - Show which PRD requirements map to which architecture output sections
2026-04-10 09:34:54 +00:00
## Analysis Format
2026-04-10 09:24:59 +00:00
2026-04-10 09:34:54 +00:00
Retain this analysis internally. Do not write it to a file.
2026-04-10 09:24:59 +00:00
```markdown
## PRD Source
Reference to the PRD file being analyzed.
## Functional Requirements Extraction
| # | Requirement | Architectural Implications | Relevant Domains |
|---|-------------|---------------------------|-----------------|
| FR-1 | ... | ... | system-decomposition, api-contract-design |
## Non-Functional Requirements Extraction
| # | Requirement | Architectural Implications | Relevant Domains |
|---|-------------|---------------------------|-----------------|
| NFR-1 | ... | ... | storage-knowledge, async-queue-design |
## Knowledge Domain Relevance
| Domain | Relevant? | Reason |
|--------|-----------|--------|
| System Decomposition | Yes/No | ... |
| API & Contract Design | Yes/No | ... |
| Data Modeling | Yes/No | ... |
| Distributed System Basics | Yes/No | ... |
| Architecture Patterns | Yes/No | ... |
| Storage Knowledge | Yes/No | ... |
| Async & Queue Design | Yes/No | ... |
| Error Model Design | Yes/No | ... |
| Idempotency Design | Yes/No | ... |
## Requirement-to-Section Mapping
| Architecture Section | PRD Requirements Served |
|---------------------|------------------------|
| System Overview | ... |
| Frontend Architecture | ... |
| Backend Architecture | ... |
| API Definitions | ... |
| DB Schema | ... |
| Service Boundaries | ... |
| Async Model | ... |
| Error Model | ... |
| Idempotency Design | ... |
## Ambiguities And Gaps
List any PRD requirements that are unclear for architectural purposes and need PM clarification before design can proceed. If none, write "None identified."
```
2026-04-10 09:34:54 +00:00
## Primary Input
2026-04-10 09:24:59 +00:00
2026-04-10 09:34:54 +00:00
- `docs/prd/{date}-{feature}.md` (required)
2026-04-10 09:24:59 +00:00
2026-04-10 09:34:54 +00:00
## Output
2026-04-10 09:24:59 +00:00
2026-04-10 09:34:54 +00:00
Internal analysis only. No file artifact. Findings are carried forward in memory to inform `design-architecture` .
2026-04-10 09:24:59 +00:00
## Transition
2026-04-10 09:34:54 +00:00
After completing this internal analysis, proceed to `design-architecture` with the PRD and analysis findings in memory.
2026-04-10 09:24:59 +00:00
## Guardrails
This is a pure analysis skill.
Do:
- Extract architectural implications from PRD requirements
- Identify relevant knowledge domains
- Flag ambiguities that block design decisions
- Map requirements to architecture output sections
Do not:
- Design architecture
- Make technology selections
- Define API contracts, schemas, or service boundaries
- Write architecture decisions
2026-04-10 09:34:54 +00:00
- Produce any file artifacts
- Write any file to disk