Convert natural language requirements (PRD) into AI-friendly DDD domain design documents in Markdown. Use when the user provides a PRD, requirement doc, or business description and wants a DDD domain
by @qitongfire
Convert natural language requirements (PRD) into AI-friendly DDD domain design documents in Markdown. Use when the user provides a PRD, requirement doc, or b...
clawhub install prd-to-ddd-design๐ About This Skill
name: prd-to-ddd-design description: Convert natural language requirements (PRD) into AI-friendly DDD domain design documents in Markdown. Use when the user provides a PRD, requirement doc, or business description and wants a DDD domain model, entity/aggregate design, ER diagram, domain logic placement, or sequence/flow diagrams. Produces structured output that AI agents can directly use for implementation.
PRD to DDD Domain Design
Convert PRD / natural language requirements into a structured DDD design document.
When to Use
Relationship to Other Skills
Resources
| File | Role | When to Read | |------|------|-------------| | This file (SKILL.md) | Map โ workflow, phases, output rules | Always (auto-loaded) | | phase-guide.md | How-to โ analysis heuristics, design criteria, identification rules | When executing each phase | | ddd-design-template.md | Template โ output section structure with table formats | When writing the design doc |
Workflow
PRD / Natural Language
โ
โผ
Phase 0 โ 1 โ 2 โ 3 โ 4 โ 4.5 โ 5 โ 5.5 โ 6
โ
โผ
Output: docs/design/-ddd-design.md
Phase Summary
| Phase | Name | What to Produce | Key Input | |-------|------|----------------|-----------| | 0 | Event Storming | Actor โ Command โ Aggregate โ Event โ Policy flow | PRD text | | 1 | Domain Discovery | Ubiquitous language glossary, domain events, business rules | PRD nouns/verbs | | 2 | Strategic Design | Bounded contexts, context mapping | Phase 0-1 results | | 3 | Tactical Design | Entities, VOs, aggregates, relationships | Phase 1-2 results | | 4 | ER Modeling | Mermaid ER diagram (PK/FK only) | Phase 3 entities | | 4.5 | Database Schema | Table mapping, columns, indexes, constraints | Phase 3-4 entities | | 5 | Logic Placement | Entity/VO logic, Gateway/Repo interfaces, Domain Services | Phase 3 + PRD rules | | 5.5 | Cross-Layer Contracts | REST API, Client DTOs, AppService API, Infra adapters | Phase 5 results | | 6 | Behavior Modeling | State machines, sequence diagrams, flowcharts, event flows | Phase 0 + 5 |
For detailed instructions on each phase (extraction rules, identification heuristics, design criteria), read phase-guide.md.
Execution Steps
1. Read the PRD document provided by user
2. Read phase-guide.md for analysis heuristics
3. Execute phases 0-6 sequentially, using ddd-design-template.md as the output structure
4. Run the Quality Checklist below before finalizing
5. Save to docs/design/
Output Rules
ddd-architecture ruleddd-domain-layer ruleQuality Checklist
Before finalizing the document, verify:
Event Storming & Discovery (Phase 0-1)
Tactical Design (Phase 2-3)
Data & Logic (Phase 4-5)
Cross-Layer & Behavior (Phase 5.5-6)