Install
openclaw skills install prd-to-ddd-designConvert 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.
openclaw skills install prd-to-ddd-designConvert PRD / natural language requirements into a structured DDD design document.
| 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 |
PRD / Natural Language
│
▼
Phase 0 → 1 → 2 → 3 → 4 → 4.5 → 5 → 5.5 → 6
│
▼
Output: docs/design/<feature>-ddd-design.md
| 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.
docs/design/<feature-name>-ddd-design.mdddd-architecture ruleddd-domain-layer ruleBefore 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)