agentleFS
ForceInjectionForceInjection/domain-driven-design-skills/AGENTS.md

domain-driven-design-skills

AGENTS.md72 starsChanged 4 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 code style.

    Of the AGENTS.md files we read, the 35,337 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 repositoryOne other file it gives its agents.

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
  1. Distinctive:

    Every in-house skill follows a mandatory interface structure:

    line 62
  2. Very specific:

    All SKILL.md outputs must be structured as tables with explicit column requirements

    line 87
  3. Very specific:

    Every Chinese file includes a language switcher line linking to its English counterpart, and vice versa.

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.md and 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 --recursive

There 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)

StageSkillPurpose
I Discoveryddd-scopeConverge fuzzy requirements into modeling inputs
I Discoveryddd-discoverCollaborative domain discovery (event storming / domain storytelling)
II Strategicddd-subdomainsIdentify capabilities, classify subdomains (core/supporting/generic)
II Strategicddd-contextsDesign bounded contexts with their ubiquitous language
II Strategicddd-context-mapMap inter-context relationships and integration patterns
III Tacticalddd-aggregatesAggregate design from invariants: roots, entities, value objects
III Tacticalddd-domain-interactionsEvents, domain services, repository interfaces, factories
IV Validationddd-model-reviewHolistic model quality assessment with feedback loop triggers
V Specificationddd-openspec-bridgeBridge 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:

  1. YAML frontmatter — name, description, risk, source, tags, date_added (English SKILL files also include lang: en)
  2. 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 guides
  • docs/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 specifications
  • docs/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.md suffix (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, and date_added stay identical to the Chinese original; description is translated; an extra lang: en field is added.
  • Internal links within English files point to other .en.md files. Links to out-of-scope targets (e.g., submodule content) are annotated with (in Chinese).
  • Excluded from bilingual treatment: AGENTS.md (English-only) and LICENSE.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.