Cleanddd Modeling logo

Cleanddd Modeling

Organization
netcorepal
cleanddd-modeling

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

Overview

Publishernetcorepal
Repositorycleanddd-skills
Skill namecleanddd-modeling
Stars
36
Forks
4
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by netcorepal on GitHub. Read the source before you install it.

Installation

Install the Cleanddd Modeling AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/netcorepal/cleanddd-skills/tree/main/skills/cleanddd-modeling
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/netcorepal/cleanddd-skills.git /tmp/cleanddd-skills
mkdir -p .claude/skills
cp -r /tmp/cleanddd-skills/skills/cleanddd-modeling .claude/skills/cleanddd-modeling
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cleanddd Modeling in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cleanddd Modeling on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cleanddd Modeling is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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)”等术语。
  • 交付承接:本技能输出文件应作为 cleanddd-dotnet-coding 的输入依据;涉及文件命名与目录放置,参见该技能的“统一命名与放置约定”。

核心原则

  • 边界明确:聚合之间不直接或间接相互引用。
  • 实体共享限制:聚合不共享实体,允许共享值对象。
  • 领域事件原则:领域事件由聚合行为产生;跨聚合影响通过领域事件实现最终一致性。
  • 关键不变式:在聚合行为前置校验,任何状态变更不得破坏。
  • 命名规范:聚合/命令/事件/查询使用 PascalCase,事件用过去式。
  • API 端点鉴权(Endpoints):依据干系人表与需求条目表明确认证范围与幂等性。

交付与确认

  • 末尾附“参数汇总 + 是否执行”提示,确保用户确认后再进入 cleanddd-dotnet-coding。
  • 列出未决问题或假设,避免后续编码阶段遗漏。

Frequently asked questions

What does the Cleanddd Modeling AI skill do?

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

Why use Cleanddd Modeling on TypingMind?

Because you install it once and use it with any model. Cleanddd Modeling is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cleanddd Modeling in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/netcorepal/cleanddd-skills/tree/main/skills/cleanddd-modeling. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cleanddd Modeling?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cleanddd Modeling?

As many as you like. As long as a model supports skills, you can use Cleanddd Modeling with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cleanddd Modeling AI skill free?

It is published on GitHub by netcorepal. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇