ddd

ddd is a command for coding agents from studioKjm/ai-harness-template. It costs 0 tokens per session (710 once invoked), scanned A, original, MIT.

A command set for Domain-Driven Design, a way to organize software around business concepts. It records business boundaries, core objects, business events, and a shared glossary.

In plain words
What is it for?
Creating and listing bounded contexts, aggregates, domain events, and glossary terms, then displaying the overall context map.
Why use it?
It keeps important domain decisions in one place and makes relationships between business areas easier to inspect.

Command

Part of the harness plugin — 44 commands, 11 agents shipped together

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.

agentmods
npx agentmods add commands/studiokjm/ai-harness-template/ddd
Clone the repo
git clone --depth 1 https://github.com/studioKjm/ai-harness-template

Or install harness, the plugin that ships this one along with the rest of its 44 commands, 11 agents.

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 ddd

README.md
[![agentmods](https://agentmods.dev/badge/commands/studiokjm/ai-harness-template/ddd.svg)](https://agentmods.dev/commands/studiokjm/ai-harness-template/ddd)
Your own site
<a href="https://agentmods.dev/commands/studiokjm/ai-harness-template/ddd"><img src="https://agentmods.dev/badge/commands/studiokjm/ai-harness-template/ddd.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 710 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00710
Opus 5 $0.00000 $0.00355
Sonnet 5 $0.00000 $0.00142
Haiku 4.5 $0.00000 $0.00071

Measured 5d ago against content hash 9be54fadb59a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ddd 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 5d 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.

methodologies/ddd-lite/commands/ddd.md · 68 lines

What it actually says

/ddd — DDD Lite Command

Domain-Driven Design 핵심 산출물(Bounded Context, Aggregate, Domain Event, Glossary)을 관리합니다.

Usage

/ddd context new <name> [--description|-d <desc>] [--owner|-o <owner>]
/ddd context list
/ddd context show <BC-ID>

/ddd aggregate new <name> [--context|-c <BC-ID>] [--description|-d <desc>]
/ddd aggregate list

/ddd event new <name> [--context|-c <BC-ID>] [--aggregate|-a <AGG-ID>]

/ddd glossary add <term> [--context|-c <BC-ID>] [--definition|-d <def>]
/ddd glossary list [--context|-c <BC-ID>]

/ddd tree          # 컨텍스트 맵 출력

Workflow

1. /ddd context new OrderManagement --owner "주문팀"
2. /ddd aggregate new Order --context BC-20260501-001
3. /ddd event new OrderPlaced --aggregate AGG-20260501-001
4. /ddd glossary add "주문" --context BC-20260501-001 --definition "고객이 상품을 구매 요청한 단위"
5. /ddd tree   # 전체 컨텍스트 맵 확인

Bounded Context States

State 의미
draft 정의 중 — 경계가 아직 확정되지 않음
active 운영 중 — 게이트가 이 경계를 강제
deprecated 폐기 예정 — strangler-fig로 교체 중

DDD 핵심 개념

개념 설명
Bounded Context 도메인 모델이 통용되는 경계. 같은 단어도 컨텍스트마다 의미가 다를 수 있음
Aggregate 트랜잭션 일관성 경계. Root를 통해서만 외부 접근 허용
Domain Event 과거형 동사 — 비즈니스적으로 의미 있는 사건 (OrderPlaced, PaymentFailed)
Ubiquitous Language 개발자·도메인 전문가가 공유하는 용어집. 코드와 대화가 동일한 언어를 씀

Integration Patterns (컨텍스트 간 통합)

패턴 상황
shared-kernel 두 팀이 공유 코어 공동 소유
customer-supplier 하위 팀이 상위 팀 요구사항에 맞춤
conformist 외부 모델을 그대로 수용
anticorruption-layer 외부 모델에서 내부 모델로 변환 레이어
open-host 프로토콜/API 공개 (소비자가 직접 붙음)
published-language 공개된 교환 언어 (JSON Schema, Protobuf 등)

Composition

/methodology compose ddd-lite tdd-strict     # Aggregate 불변조건 → TDD 사이클
/methodology compose ddd-lite bdd            # Bounded Context → Feature/Scenario
/methodology compose ddd-lite strangler-fig  # 컨텍스트 분리 → 점진적 교체
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. 5d ago First seen · 68 lines · 0 tokens per session scan A 9be54fadb59a

Subscribe to this mod's changes

ddd is a command published in the GitHub repository studioKjm/ai-harness-template (43 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 710 tokens. 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.