Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

prd-to-ddd-designprd 到 ddd 设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

11,619

周安装

489

GitHub Stars

公开资料未说明

下载量

4,068
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prd-to-ddd-design(prd 到 ddd 设计)
来源仓库:https://github.com/qitongfire/prd-to-ddd-design
安装命令:
openclaw skills install prd-to-ddd-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install prd-to-ddd-design

简介

prd-to-ddd-design 可将自然语言需求转化为结构化领域设计文档,提升 AI 对复杂业务逻辑的理解效率。

  • 适用于将产品需求拆解为可执行的设计方案,尤其在微服务或中台架构设计中价值显著。
  • 支持从用户故事映射到限界上下文、实体关系建模及聚合根定义,形成开发友好的技术蓝图。
  • 使用时需提供清晰的用户旅程与业务规则,以便准确划分领域边界和交互契约。
  • 输出结果需人工复核领域划分合理性及与现有系统的兼容性,不可直接作为开发依据。

SKILL.md

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

  • User provides a PRD, requirement document, or business description
  • User asks: "把需求转成DDD设计" / "领域建模" / "domain modeling from requirement"
  • Before implementation — this is the first step in the AI development workflow

Relationship to Other Skills

  • design-to-plan: After this skill produces the design doc → split into implementation plans
  • ddd-domain-model / ddd-cross-layer: Implementation patterns → use after design is finalized

Resources

FileRoleWhen to Read
This file (SKILL.md)Map — workflow, phases, output rulesAlways (auto-loaded)
phase-guide.mdHow-to — analysis heuristics, design criteria, identification rulesWhen executing each phase
ddd-design-template.mdTemplate — output section structure with table formatsWhen writing the design doc

Workflow

PRD / Natural Language
        │
        ▼
  Phase 0 → 1 → 2 → 3 → 4 → 4.5 → 5 → 5.5 → 6
        │
        ▼
  Output: docs/design/<feature>-ddd-design.md

Phase Summary

PhaseNameWhat to ProduceKey Input
0Event StormingActor → Command → Aggregate → Event → Policy flowPRD text
1Domain DiscoveryUbiquitous language glossary, domain events, business rulesPRD nouns/verbs
2Strategic DesignBounded contexts, context mappingPhase 0-1 results
3Tactical DesignEntities, VOs, aggregates, relationshipsPhase 1-2 results
4ER ModelingMermaid ER diagram (PK/FK only)Phase 3 entities
4.5Database SchemaTable mapping, columns, indexes, constraintsPhase 3-4 entities
5Logic PlacementEntity/VO logic, Gateway/Repo interfaces, Domain ServicesPhase 3 + PRD rules
5.5Cross-Layer ContractsREST API, Client DTOs, AppService API, Infra adaptersPhase 5 results
6Behavior ModelingState machines, sequence diagrams, flowcharts, event flowsPhase 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/<feature-name>-ddd-design.md

Output Rules

  • Pure Markdown with Mermaid diagrams
  • Chinese for business descriptions, English for technical terms (class names, method signatures)
  • Align naming and layer placement with ddd-architecture rule
  • Align domain purity with ddd-domain-layer rule
  • Every entity must have behaviors (no anemic model)
  • Every aggregate must list invariants
  • Every domain logic item must have placement rationale
  • Database schema must map all entities/VOs to tables with complete columns
  • Cross-layer contracts must be defined with input/output types

Quality Checklist

Before finalizing the document, verify:

Event Storming & Discovery (Phase 0-1)

  • [ ] All Actors, Commands, Specs, Events, Policies identified
  • [ ] Command → Aggregate → Event mapping is complete
  • [ ] All business nouns mapped to entities or value objects
  • [ ] All business rules captured with rule IDs
  • [ ] Ubiquitous language glossary includes Package column

Tactical Design (Phase 2-3)

  • [ ] Aggregates are small with clear boundaries
  • [ ] No cross-aggregate direct object references (use ID)
  • [ ] Entity behaviors are rich (no anemic model)
  • [ ] State machines documented for stateful entities
  • [ ] Naming follows project DDD conventions

Data & Logic (Phase 4-5)

  • [ ] ER diagram only shows PK/FK, consistent with entity/VO tables
  • [ ] Entity → Table mapping covers all entities and value objects
  • [ ] Table Detail includes all columns with type, nullable, default
  • [ ] Indexes defined for FK columns, frequent queries, unique keys
  • [ ] Domain logic placement has clear rationale for every item
  • [ ] Domain Service design decisions documented with alternatives

Cross-Layer & Behavior (Phase 5.5-6)

  • [ ] REST API endpoints listed with URL, HTTP method, request/response types
  • [ ] Client DTOs (Request/Response) key fields defined
  • [ ] AppService methods listed with Command input and DTO output
  • [ ] Infrastructure adapter-to-gateway mapping is complete
  • [ ] Sequence diagrams cover all core use cases
  • [ ] Flowcharts cover complex branching rules (2+ paths)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

89.54%
按下载量换算3,642

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills