architecture-domain-driven-design

architecture-domain-driven-design is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 137 tokens per session (1,979 once invoked), scanned A, original, MIT.

A guide to Domain-Driven Design, a way of structuring software around the real business area it serves. It explains shared business language, separate model boundaries, and groups of related objects.

In plain words
What is it for?
Naming code after business concepts, dividing large systems into bounded contexts, defining aggregate boundaries, and keeping business rules organized.
Why use it?
It reduces misunderstandings between developers and business specialists and prevents one part of a large system from using another part's concepts incorrectly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Naming code after business concepts, dividing large systems into bounded contexts, defining aggregate boundaries, and keeping business rules organized.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j4flmao/agent-skills/domain-driven-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add j4flmao/agent-skills --skill domain-driven-design
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for architecture-domain-driven-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/domain-driven-design/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/domain-driven-design)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/domain-driven-design"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/domain-driven-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for architecture-domain-driven-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/domain-driven-design"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/domain-driven-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,979 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.01979
Opus 5.5 $0.00055 $0.00792
Sonnet 5.5 $0.00027 $0.00396
Haiku 4.5 $0.00014 $0.00198

Measured today against content hash 6e2c45cef5a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

architecture-domain-driven-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/architecture/system-design/domain-driven-design/SKILL.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Domain-Driven Design

Purpose

DDD aligns software structure with the business: a shared language inside explicit boundaries, models that enforce business invariants, and deliberate translation where contexts meet. Use it where domain complexity is the main risk (pricing, underwriting, logistics, billing). For simple CRUD, plain layered code is cheaper.

Agent Protocol

Trigger

"DDD", "bounded context", "aggregate", "aggregate root", "entity vs value object", "domain event", "context map", "anti-corruption layer", "ubiquitous language", "event storming".

Input Context

  • Business capabilities and processes; domain experts' vocabulary.
  • Current pain: tangled models, inconsistent rules, overloaded terms.
  • Team structure (contexts usually map to team ownership).
  • Persistence and integration constraints.

Output Artifact

Strategic map (subdomains, contexts, relationships) and/or tactical model (aggregates with invariants, value objects, events, repository interfaces).

Response Format

Subdomains: {core|supporting|generic}: {name}
Contexts: {name} owns {terms}; team {x}
Context map: {upstream} -> {downstream} [{pattern}]
Aggregate: {Root} invariants: {list}; references others by id
Events: {PastTenseName}(fields)

Completion Criteria

  • Each term defined per context (no global "User"/"Product" model).
  • Every aggregate lists the invariants it protects.
  • One aggregate modified per transaction; others updated via events.
  • Context relationships named with a context-map pattern.

Strategic Design

Subdomains: core (competitive advantage: invest, custom build), supporting (needed, specific: build simply), generic (commodity: buy/SaaS, e.g. auth, payments).

Bounded context: a boundary within which a model and its language are consistent. "Product" in Catalog (description, images), Inventory (SKU, quantity, location), and Pricing (price lists, discounts) are different models that share an identifier.

Context map patterns

Pattern Relationship
Partnership Two teams coordinate releases jointly
Shared Kernel Small shared model owned by both (keep tiny)
Customer/Supplier Downstream needs influence upstream's roadmap
Conformist Downstream adopts upstream model as-is
Anti-Corruption Layer (ACL) Downstream translates upstream model into its own terms
Open Host Service + Published Language Upstream offers a stable, documented API/schema for many consumers
Separate Ways No integration; duplicate where cheaper

Read the full file on GitHub · 176 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +132 lines · +137 tokens per session 6e2c45cef5a4
  2. 1mo ago First seen · 44 lines · 0 tokens per session scan A e3625938b60d

Subscribe to this mod's changes

architecture-domain-driven-design is a skill published in the GitHub repository j4flmao/agent-skills (34 stars, last pushed today), licensed MIT. It adds 137 tokens to every session and 1,979 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.