domain-driven-design-skills
AGENTS.md82 starsChanged 7 months agoApache-2.0View on GitHub
This file provides guidance to Qoder (qoder.com) when working with code in this repository. This is a DDD Skill Aggregation Repository — a unified hub for Domain-Driven Design AI Agent Skills. It combines: Primary language: Chinese (documentation and skill definitions). English translations available with .en.md suffix. License: Apache 2.0. Status: WIP. Design boundary: This system covers domain modeling (strategic + tactical) and implementation specification (bridging to OpenSpec). No code implementation, testing, or architecture compliance. There is no build system, linter,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ddd-aggregatesSkill
- ddd-context-mapSkill
- ddd-contextsSkill
- ddd-discoverSkill
- ddd-domain-interactionsSkill
- ddd-model-reviewSkill
- ddd-openspec-bridgeSkill
- ddd-scopeSkill
- ddd-subdomainsSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 62
Every in-house skill follows a mandatory interface structure:
- Very specific: line 87
All SKILL.md outputs must be structured as tables with explicit column requirements
- Very specific: line 94
Every Chinese file includes a language switcher line linking to its English counterpart, and vice versa.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance to Qoder (qoder.com) when working with code in this repository.
Project Overview
This is a DDD Skill Aggregation Repository — a unified hub for Domain-Driven Design AI Agent Skills. It combines:
- In-house system backbone (
skills/) — 9 self-developed skills forming a 5-stage DDD modeling & specification pipeline - External open-source references — 20+ ecosystem DDD skills researched and documented in
docs/ddd-skills-report.mdand the README (no longer bundled as submodules)
Primary language: Chinese (documentation and skill definitions). English translations available with .en.md suffix. License: Apache 2.0. Status: WIP.
Design boundary: This system covers domain modeling (strategic + tactical) and implementation specification (bridging to OpenSpec). No code implementation, testing, or architecture compliance.
Commands
# Clone with all submodules (only validation-cases/cargo-shipping remains)
git clone --recurse-submodules <repo-url>
# Initialize the ground-truth submodule after clone
git submodule update --init --recursiveThere is no build system, linter, or test suite at root level. This is a documentation/specification repository — the primary artifacts are SKILL.md files.
Architecture
Directory Structure
skills/ → In-house system backbone (9 skills, 5 stages)
validation-cases/ → E2E validation methodology + completed cases
docs/ → Design documents (bilingual)5-Stage DDD Modeling & Specification Pipeline (In-House Backbone)
| Stage | Skill | Purpose |
| I Discovery | ddd-scope | Converge fuzzy requirements into modeling inputs |
| I Discovery | ddd-discover | Collaborative domain discovery (event storming / domain storytelling) |
| II Strategic | ddd-subdomains | Identify capabilities, classify subdomains (core/supporting/generic) |
| II Strategic | ddd-contexts | Design bounded contexts with their ubiquitous language |
| II Strategic | ddd-context-map | Map inter-context relationships and integration patterns |
| III Tactical | ddd-aggregates | Aggregate design from invariants: roots, entities, value objects |
| III Tactical | ddd-domain-interactions | Events, domain services, repository interfaces, factories |
| IV Validation | ddd-model-review | Holistic model quality assessment with feedback loop triggers |
| V Specification | ddd-openspec-bridge | Bridge tactical models to OpenSpec structured specifications |
Non-Linear Feedback Loops
Stages are NOT strictly sequential. Later skills can trigger returns to earlier skills via explicit "trigger-recycle conditions" (defined in Appendix B of docs/ddd-skill-system-design.md). For example:
- Invariant expression rate < 60% → return to
ddd-aggregates - Terminology conflict rate > 20% → return to
ddd-contexts - Cannot distinguish core from supporting → return to
ddd-scope
SKILL.md Interface Contract
Every in-house skill follows a mandatory interface structure:
- YAML frontmatter — name, description, risk, source, tags, date_added (English SKILL files also include
lang: en) - Sections — Usage Timing, Input Requirements, Process, Output (table), Validation Checklist, Backtrack Triggers, Example
Invocation Pattern
Skills are invoked via @skill-name syntax in AI agent contexts:
@ddd-scope <business problem description>
@ddd-model-review <existing model artifacts>Key Documents
README.md/README.en.md— Hub documentation with skill selection guidesdocs/ddd-skill-system-design.md/docs/ddd-skill-system-design.en.md— System design: 5-stage model, skill mapping, dependency graph, reference materials, trigger-recycle matrix (Appendix B), example (Appendix A)docs/ddd-openspec-mapping.md/docs/ddd-openspec-mapping.en.md— Mapping Guide: Standard definitions for converting DDD tactical artifacts to OpenSpec specificationsdocs/ddd-skills-report.md/docs/ddd-skills-report.en.md— Research report on 20+ DDD skills with evaluation
Conventions
- Skill directories use kebab-case:
ddd-<skill-name> - Domain entities/events: PascalCase, events in past tense (e.g.,
OrderCreated) - All SKILL.md outputs must be structured as tables with explicit column requirements
- Each skill must have validation checklists and backtrack triggers before advancing stages
- Documentation is Chinese-primary; code identifiers and DDD patterns use English terminology
Bilingual Convention
- Chinese originals live at default paths (
SKILL.md,README.md,docs/*.md). English translations use an.en.mdsuffix (e.g.,SKILL.en.md,README.en.md,docs/ddd-skill-system-design.en.md). - Every Chinese file includes a language switcher line linking to its English counterpart, and vice versa. Format:
> 🌐 English version: [English](SKILL.en.md)/> 🌐 中文版本: [Chinese](SKILL.md). - In SKILL.en.md YAML frontmatter,
name,tags,risk,source, anddate_addedstay identical to the Chinese original;descriptionis translated; an extralang: enfield is added. - Internal links within English files point to other
.en.mdfiles. Links to out-of-scope targets (e.g., submodule content) are annotated with(in Chinese). - Excluded from bilingual treatment:
AGENTS.md(English-only) andLICENSE.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

