ddd
Skill44 starsChanged 7 months agoMITView on GitHub
Strategic DDD guide for this project. Use to split the domain into bounded contexts, define ubiquitous language, create new business modules, or analyze context boundaries. Tactical patterns follow Clean Architecture (see architecture skill).
8 other projects use a version of this.
Adopted by
Most recently taken up by
- assawalhy/awesome-agenttheir own version, first seen Oct 2, 2026
- fabiandistler/agentstheir own version, first seen Sep 30, 2026
- svngoku/coding-agents-skillstheir own version, first seen Aug 13, 2026
- codewithmukesh/dotnet-claude-kittheir own version, first seen Jul 22, 2026
- anurag-azure/skillstheir own version, first seen Jun 27, 2026
- jackjin1997/ClawForgetheir own version, first seen May 25, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- codewithmukesh/dotnet-claude-kit★ 750same name
- jackjin1997/ClawForge★ 13same name
- svngoku/coding-agents-skills★ 11same name
- assawalhy/awesome-agent★ 3same name
- fabiandistler/agents★ 2same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- anurag-azure/skills★ 0same name
- bensimpson-ch/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-creatorSkill
- anti-overengineeringSkill
- audit-docsSkill
- auto-reviewSkill
- architectureSkill
- clean-codeSkill
- commitSkill
- create-docSkill
- discoverySkill
- docs-indexSkill
- e2eSkill
- event-stormingSkill
- implement-featureSkill
- product-managerSkill
- refactor-featureSkill
- refactoring-mikado-stranglerSkill
- review-backSkill
- review-docSkill
- review-followupSkill
- review-frontSkill
- review-fullstackSkill
- securitySkill
- shipSkill
- skill-creatorSkill
- solidSkill
- dashboard-stylingSkill
- tddSkill
- update-docsSkill
- worktreeSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read .claude/roles/architect.md — adopt this profile and follow all its rules.
- Distinctive: line 210
After validation -> Switch to the Architecture skill for tactical details.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Domain-Driven Design - Strategic Guide
Persona
Read .claude/roles/architect.md — adopt this profile and follow all its rules.
Activation
This skill activates for high-level domain decisions:
- Splitting into Bounded Contexts
- Defining the Ubiquitous Language
- Creating a new business module
- Analyzing relationships between contexts
Important clarification
Clean Architecture definitions take precedence over DDD tactical definitions.
We use DDD only at the strategic level (domain splitting, language). Tactical patterns (Entities, Use Cases, Gateways, Presenters) follow Clean Architecture.
| What we take from DDD | What we do NOT take |
| Bounded Contexts | Aggregates |
| Ubiquitous Language | Repositories (we have Gateways) |
| Context Mapping | Domain Events |
| Module splitting | Complex Value Objects |
Bounded Context
"A Bounded Context delimits the applicability of a particular model." — Eric Evans
A Bounded Context = a module in modules/<context-name>/
Each BC is an autonomous package with its own public API.
Identifying a Bounded Context
Signs that a new BC is needed:
- The same term has different meanings depending on context
- A different team could manage this part
- The model is becoming too complex
- Business rules are diverging
ReviewFlow example:
| Bounded Context | Responsibility |
review | Code review orchestration and result handling |
tracking | MR/PR assignment tracking and follow-up |
webhook | Inbound webhook processing (GitLab/GitHub) |
mcp | Model Context Protocol server and tools |
dashboard | Review statistics and visualization |
security | Secret detection and access control |
Communication between Bounded Contexts
BCs communicate via their public APIs, like two independent packages.
// modules/tracking/index.ts (public API)
export { TrackAssignmentUseCase } from "./application/usecases/trackAssignment.usecase"
export { createTrackedMr } from "./domain/factories/trackedMrFactory"
export type { TrackingGateway } from "./application/ports/gateways/trackingGateway"
// modules/review/ imports from the public API
import { TrackAssignmentUseCase } from "@/modules/tracking"Communication rules
| Allowed | Forbidden |
Import from another BC's index.ts | Directly import an internal file |
| Pass data (DTO, primitives) | Share mutable entities |
| Call an exposed Use Case | Access internal state |
Concrete example
// modules/review/application/usecases/triggerReview.usecase.ts
import { TrackAssignmentUseCase } from "@/modules/tracking" // Public API
export const triggerReview = async (data) => {
const trackAssignment = new TrackAssignmentUseCase(trackingGateway);
// ...
}// FORBIDDEN - internal import
import { parseTrackingData } from "@/modules/tracking/domain/validators/trackingValidator"Ubiquitous Language
"Use the model as the backbone of a language." — Eric Evans
Business vocabulary must be:
- Consistent: same term = same concept within a given context
- Explicit: no ambiguity
- Shared: understood by devs AND business stakeholders
In code
// Ubiquitous Language respected
class ReviewContext { ... }
class TrackedMr { ... }
function triggerReview() { ... }
function trackAssignment() { ... }
// Technical or ambiguous vocabulary
class Data { ... } // "Data" is not a business term
class ReviewRequest { } // "Request" vs "ReviewContext"?
function doReview() { } // "do" vs "trigger"?Language documentation
Each BC maintains its glossary in /docs/business/glossary/<context>.md
# Glossary - Review
| Term | Definition |
|------|------------|
| ReviewContext | The full context for a code review (diff, MR metadata, threads) |
| TrackedMr | A merge request being tracked for review assignments |
| ReviewAction | An action to perform on the platform (comment, resolve, reply) |
| DiffMetadata | Parsed metadata from a merge request diff |Workflow: Creating a new Bounded Context
Step 1: Identify the domain
DDD - Identification
New domain identified: [name]
Questions to validate:
1. What business problem does it solve?
2. What are the specific terms?
3. What are the main entities?
4. Which existing BCs will use it?
Shall we explore these questions?Step 2: Define the language
DDD - Ubiquitous Language
Proposed glossary for [context]:
| Term | Definition |
|------|------------|
| ... | ... |
Are these terms aligned with the business vocabulary?Step 3: Define the public API
DDD - Public API
Planned exports for [context]:
Entities: [list]
Use Cases: [list]
Types: [list]
Which other BCs will consume this API?Step 4: Create the structure
DDD - Structure
I will create:
modules/[context]/
├── index.ts # Public API
├── entities/
├── use-cases/
├── interface-adapters/
└── testing/
+ Glossary: docs/business/glossary/[context].md
Shall we create this structure?After validation -> Switch to the Architecture skill for tactical details.
Anti-patterns to avoid
- A single catch-all "domain" module
- Mixing vocabulary from multiple contexts
- Circular dependencies between contexts
- Importing internal files from another BC
- Naming modules by technical aspect ("services", "models")
References
- Domain-Driven Design (Eric Evans, 2003) - Chapters 1-4 (strategic)
- For tactical patterns -> see architecture skill (Clean Architecture)
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.

