domain-driven-design

domain-driven-design is a skill for Claude Code, Codex from Plazmodium/odin-workflow. It costs 18 tokens per session (981 once invoked), scanned A, original, MIT.

A software design approach that models a complex business area using shared terms, separate responsibility boundaries, and rules for related objects.

In plain words
What is it for?
Defining bounded contexts, aggregates, domain events, context maps, shared models, and boundaries between areas such as identity, ordering, and shipping.
Why use it?
It helps teams avoid mixing different meanings of the same business term across parts of a system.

Skill for Claude CodeCodex

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

Good fit Defining bounded contexts, aggregates, domain events, context maps, shared models, and boundaries between areas such as identity, ordering, and shipping.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plazmodium/odin-workflow/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 Plazmodium/odin-workflow --skill domain-driven-design
Clone the repo
git clone --depth 1 https://github.com/Plazmodium/odin-workflow

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 domain-driven-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/plazmodium/odin-workflow/domain-driven-design/github.svg)](https://agentmods.dev/skills/plazmodium/odin-workflow/domain-driven-design)
Your own site
<a href="https://agentmods.dev/skills/plazmodium/odin-workflow/domain-driven-design"><img src="https://agentmods.dev/badge/skills/plazmodium/odin-workflow/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 domain-driven-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/plazmodium/odin-workflow/domain-driven-design"><img src="https://agentmods.dev/badge/skills/plazmodium/odin-workflow/domain-driven-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 981 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.
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.00018 $0.00981
Opus 5.5 $0.00007 $0.00392
Sonnet 5.5 $0.00004 $0.00196
Haiku 4.5 $0.00002 $0.00098

Measured 3mo ago against content hash 4c0b9de42559, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 3mo ago.

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.

agents/skills/architecture/domain-driven-design/SKILL.md · 130 lines

How it starts

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

Domain-Driven Design (DDD)

Overview

DDD is a software design approach that models complex business domains through a shared ubiquitous language, bounded contexts, and tactical patterns like aggregates and domain events.

Strategic Design

Bounded Contexts

┌─────────────────┐    ┌──────────────────┐    ┌───────────────┐
│   Identity &    │    │    Ordering       │    │   Shipping    │
│   Access        │    │                   │    │               │
│                 │    │  Order            │    │  Shipment     │
│  User           │◄──►│  LineItem         │◄──►│  Tracking     │
│  Role           │    │  Cart             │    │  Address      │
│  Permission     │    │  Payment          │    │  Carrier      │
└─────────────────┘    └──────────────────┘    └───────────────┘
     Context Map: Published Language / Anti-Corruption Layer

Each bounded context has its own:

  • Ubiquitous language — "User" in Identity vs "Customer" in Ordering
  • Models — same real-world concept, different representations
  • Data store — ideally its own database/schema

Context Mapping

Pattern When to Use
Shared Kernel Two teams co-own a small shared model
Customer-Supplier Upstream provides what downstream needs
Anti-Corruption Layer Translate between contexts to prevent leaking
Published Language Well-defined API/events for integration

Tactical Patterns

Aggregate

// Aggregate Root — consistency boundary
class Order {
  private items: OrderItem[] = [];
  private status: OrderStatus = 'draft';

  addItem(product: ProductRef, quantity: number, price: Money): void {
    if (this.status !== 'draft') throw new DomainError('Cannot modify submitted order');
    const existing = this.items.find(i => i.productId === product.id);
    if (existing) {
      existing.increaseQuantity(quantity);
    } else {
      this.items.push(new OrderItem(product.id, quantity, price));
    }
  }

  submit(): DomainEvent[] {
    if (this.items.length === 0) throw new DomainError('Cannot submit empty order');
    this.status = 'submitted';
    return [new OrderSubmitted(this.id, this.total(), this.items.length)];
  }

  get total(): Money {
    return this.items.reduce((sum, item) => sum.add(item.subtotal()), Money.zero());
  }
}

Read the full file on GitHub · 130 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. 3mo ago First seen · 130 lines · 18 tokens per session scan A 4c0b9de42559

Subscribe to this mod's changes

domain-driven-design is a skill published in the GitHub repository Plazmodium/odin-workflow (0 stars, last pushed 6mo ago), licensed MIT. It adds 18 tokens to every session and 981 once invoked, about $0.0001 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-09-01.

Related

domain-driven-design compared with skills from other repositories

domain-driven-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
domain-driven-designPlazmodium/odin-workflowSkill06mo agoMITA18Claude Code, Codex
product-image-processorAlpacaLabsLLC/skills-for-architectsSkill4495d agoMITA45Claude Code
site-historyAlpacaLabsLLC/skills-for-architectsSkill4495d agoMITA53Claude Code
b123d-modelingpzfreo/build123d-mcpSkill1719d agoApache-2.0A0Claude Code, Codex
receiveAlpacaLabsLLC/skills-for-architectsSkill4495d agoMITA44Claude Code
csv-to-sifAlpacaLabsLLC/skills-for-architectsSkill4495d agoMITA38Claude Code
agreementAlpacaLabsLLC/skills-for-architectsSkill4495d agoMITA27Claude Code