ddd-domain-interactions SKILL.md skillA
ddd-domain-interactions from ninjasln-labs/agent-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add ninjasln-labs/agent-skills/ddd-domain-interactions@v1.1.0Pins v1.1.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- ninjasln-labs/agent-skills
- Path
ddd-domain-interactions/SKILL.md- Versions recorded
- 5
- Latest version
- v1.1.0, committed Sep 29, 2026
- First version recorded
- Aug 2, 2026
- Size
- 5,560 bytes
- Repository stars
- 3
- License
- none declared
Design collaboration mechanisms between building blocks: domain events, domain services, repository interfaces, and factories. Use when designing domain services, repositories, domain events, or factories.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# DDD Domain Interactions > English version: [English](SKILL.en.md) ## 使用时机 - 聚合边界已设计完毕,需要定义聚合之间、聚合与外部之间的协作机制。 - 需要回答"聚合如何通信、谁编排跨聚合流程、持久化契约是什么"。 - 作为战术建模的最后一步,补全所有"连接组织"。 ## 输入要求 - **必需**:聚合目录与不变量表(来自 `ddd-aggregates`)、事件候选清单(来自 `ddd-discover`)。 - **可选**:上下文映射与契约信息(来自 `ddd-context-map`)、上下文目录与词汇表(来自 `ddd-contexts`,用于区分领域事件与集成事件的边界)。 ## 流程 1. **事件规范化**:统一事件命名规则(过去时、业务可读、无技术词);为每个事件定义触发条件、源聚合、关键字段、排序要求。 2. **区分范围**:区分领域事件(上下文内)与集成事件(跨上下文/对外发布)。 3. **可靠性策略**:为每个事件定义幂等键、重放策略、去重窗口、死信处理。 4. **领域服务**:识别不属于任何单一聚合但承载领域逻辑的操作,定义为领域服务——明确输入、输出、使用的聚合与事件。 5. **仓储接口**:为每个聚合定义仓储的语义接口(加载、持久化、查询)——仅定义契约,不涉及实现。 6. **工厂**:识别复杂的聚合创建逻辑,定义工厂方法——明确创建条件、验证规则与初始状态。 7. **订阅者与副作用**:明确每个事件的消费者、触发的动作、补偿策略、监控指标。 ## 输出 | 工件 | 结构要求 | | :------------- | :------------------------------------------------------------------- | | 领域事件目录 | 表格:事件名、源聚合、触发条件、关键字段、范围(Domain/Integration) | | 集成事件契约 | 表格:事件名、发布者、消费者、契约 Owner、版本策略、兼容窗口 | | 幂等与重放策略 | 表格:事件、幂等键、去重窗口、重放规则、异常处理 | | 领域服务定义 | 表格:服务名、职责、输入、输出、依赖的聚合/事件、不应包含的逻辑 | | 仓储接口清单 | 表格:聚合、方法签名(语义)、语义说明、查询边界 | …
Read the whole file at its exact version.
How to install
mdr add ninjasln-labs/agent-skills/ddd-domain-interactions@sha256:ad23705a5044948fThe line at the top of this page pins the label v1.1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_n3nqg7wk6u3cfmcx)
1 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Aug 2, 2026 and Sep 29, 2026, about one every 14 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.1.0 latest | 2026-09-29 | 0febb7a | 5,560 B | A | view · diff |
| v1.0.1 | 2026-09-22 | 75c75c0 | 4,140 B | A | view · diff |
| v1.0.0 | 2026-09-07 | 571fb57 | 4,145 B | A | view · diff |
| git:20260803.db14631 | 2026-08-03 | db14631 | 4,063 B | A | view · diff |
| git:20260802.59867c0 | 2026-08-02 | 59867c0 | 4,021 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5560 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
ninjasln-labs/agent-skills · 3 stars · license none declared · pushed 2026-10-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_n3nqg7wk6u3cfmcx GET https://markdownregistry.com/api/v1/resolve?ref=ninjasln-labs/agent-skills/ddd-domain-interactions GET https://markdownregistry.com/api/v1/blob/ad23705a5044948f75be8ba80d31686bf21b1f583bfac4765d76f29511363c11
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.