Cleanddd Modeling

基于 cleanddd-requirements-analysis 结果,输出符合 CleanDDD 的聚合、命令、事件、查询、API 端点(Endpoints)、定时任务模型;用于从已拆解的需求快速得到建模蓝图

49 stars 12 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add zhouda1fu/Ncp.Admin --skill cleanddd-modeling
Manual install
git clone --depth 1 https://github.com/zhouda1fu/Ncp.Admin.git /tmp/Ncp.Admin
mkdir -p ~/.claude/skills
cp -r /tmp/Ncp.Admin/.cursor/skills/cleanddd-modeling ~/.claude/skills/cleanddd-modeling

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# CleanDDD 建模技能

根据用户需求,设计符合 CleanDDD 原则的业务模型,包括聚合、命令、事件、查询等,确保模型的清晰性和可维护性。

## 前置输入

- 已有 `cleanddd-requirements-analysis` 的结构化结果(干系人表、需求条目表、业务实体视图、触发/后续动作表、业务规则与依赖、假设与待确认清单);缺失时先运行需求分析技能并完成确认。
- 需求条目/业务实体归类已与用户确认或标注了假设。

## 使用时机
- 当需要将结构化需求映射为 CleanDDD 的聚合/命令/查询/事件/Endpoint 与定时任务设计时。

## 输入映射关系

- 业务实体视图 → 聚合候选与职责/不变式
- 需求条目表 → 命令/查询及输入输出、幂等性
- 触发/后续动作表 → 领域事件(DomainEvent)与事件处理器
- 干系人表 → API 端点(Endpoints)的认证/鉴权范围与交互场景
- 业务规则与依赖 → 一致性/副作用说明与外部依赖标注
- 假设与待确认清单 → 建模中的“未决问题/假设”与追问清单

## 工作流
1) 输入校验:确认需求条目表、业务实体视图、触发/后续动作表齐备;缺口先追问或注明假设。
2) 聚合定义:依据职责和不变式,定义聚合根、实体/值对象、行为、触发的领域事件;保持聚合间无直接引用。
3) 命令与查询:为每个需求条目映射命令/查询,命名用 PascalCase;写明输入/输出、幂等性、涉及的聚合行为。
4) 领域事件与处理器:根据触发/后续动作表列出领域事件(DomainEvent)、订阅方、处理动作;避免跨聚合直接操作,使用领域事件驱动。
5) API 端点(Endpoints):为外部交互补全 HTTP Method、鉴权、幂等性、绑定的命令/查询;标明默认排序/分页。
6) 定时任务:若有周期性需求,定义任务名称、频率、触发的命令/查询。
7) 命名与约束检查:聚合/命令/事件/查询用 PascalCase;确认无共享实体、仅共享值对象;事件命名用过去式。

## 输出格式(结构化 Markdown,便于代码生成)
- 聚合
  - 名称 | 职责摘要 | 关键不变式
  - 实体/值对象 | 属性(含默认值/可选值) | 行为 | 触发领域事件(DomainEvent)
- 命令(Commands)
  - 名称 | 作用聚合 | 输入 | 触发行为/事件 | 幂等性
- 查询(Queries)
  - 名称 | 作用聚合 | 过滤/排序/分页 | 输出 DTO 或 Response
- 事件处理器(DomainEventHandlers)
  - 领域事件(DomainEvent) | 订阅方 | 处理动作 | 副作用/外部依赖
- API 端点(Endpoints)
  - 路径/方法 | 命令/查询 | 认证/鉴权 | 幂等/一致性说明
- 定时任务(如有)
  - 名称 | 频率 | 触发的命令/查询 | 幂等/补偿

## 统一命名与放置约定
- 命名风格:聚合/命令/事件/查询/端点使用 PascalCase;事件名称采用过去式。
- 文档输出:采用上述“输出格式”章节的结构化 Markdown,以便后续自动代码生成与审阅。
- 术语统一:统一使用“API 端点(Endpoints)”“领域事件(DomainEvent)”“领域事件处理器(DomainEventHandlers)”等术语。
Read the full skill on GitHub

Details

Skill name
cleanddd-modeling
Path
.cursor/skills/cleanddd-modeling/SKILL.md
Repo updated
23 June 2026

FAQ

What does the Cleanddd Modeling skill do?

基于 cleanddd-requirements-analysis 结果,输出符合 CleanDDD 的聚合、命令、事件、查询、API 端点(Endpoints)、定时任务模型;用于从已拆解的需求快速得到建模蓝图

How do I install the Cleanddd Modeling skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add zhouda1fu/Ncp.Admin --skill cleanddd-modeling. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Cleanddd Modeling popular?

It lives in zhouda1fu/Ncp.Admin, which has 49 GitHub stars and 12 forks.

Related skills

Cleanddd Coach

49

zhouda1fu/Ncp.Admin

交互式 CleanDDD 教练技能,循序讲解并与用户互动练习 CleanDDD 核心原则与方法;包含微课、测验与检查清单,可承接到需求分析/建模/代码实现技能

Other12

Cleanddd Dotnet Coding

49

zhouda1fu/Ncp.Admin

在 CleanDDD 项目中落地已建模的需求(聚合/命令/查询/API 端点(Endpoints)/事件/仓储/配置/测试)的编码指南;用于编写或修改业务功能、端点与数据访问时

Software Development12

Cleanddd Dotnet Init

49

zhouda1fu/Ncp.Admin

初始化 CleanDDD dotnet 项目(netcorepal-web 模板);在创建新项目或为客户演示快速拉起解决方案时使用,可直接调用 dotnet new 或包装脚本

Other12

Fat Agent

40

spruikco/fat-agent-skill

FAT Agent with Superpowers (Fix, Audit, Test) — a post-launch quality assurance agent that systematically audits deployed websites and web applications using modular, auto-detected check categories. Triggers whenever a user mentions "FAT agent", "post-launch audit", "site audit", "audit my site", "check my deployment", "post-deploy check", "QA my site", "launch checklist", or any request to review a live or recently deployed website for issues. Also triggers after a successful deploy (on any platform — Netlify, Vercel, Cloudflare Pages, AWS, shared hosting, whatever) when the user asks "what s

AI, LLMs & Agents

Aftereffects Motion

43

LobzyJay/motion-design-with-claude-and-codex

Use this skill whenever Adobe After Effects is the working tool. Triggers on "After Effects", "AE", ".aep", "ExtendScript", "JSX", "composition", "comp", "keyframe in AE", "AE expression", "render queue", "wiggle", "loopOut", "Trim Paths", or any AE-driven motion graphics task. Also triggers when the user is mid-session with the AE MCP bridge active (mcp-bridge-auto.jsx), or mentions "Higgsfield", "remove background", "reframe", "upscale", "Draw to Edit", or "generate footage" in an AE context. Pair with motion-design (foundation skill) for principles, timing, and taste. AE MCP server: TheLlam

AI, LLMs & Agents

Install Dsh Origin

49

Fantasality/dsh-origin-plugin

帮用户把 dsh-origin-plugin(AI 驱动 OriginLab Origin 画图的 MCP 插件)装好并验证可用。当用户说"帮我装 Origin 插件""配置 MCP""让 AI 能画 Origin 图"或遇到装到旧版本/连不上 Origin 时使用。

AI, LLMs & Agents

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.