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.
npx skills add hoangatg/ai-agent-toolkit --skill domain-driven-designgit clone --depth 1 https://github.com/hoangatg/ai-agent-toolkitWrote 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.
[](https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/domain-driven-design)<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/domain-driven-design"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/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.
<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/domain-driven-design"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/domain-driven-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00031 | $0.00674 |
| Opus 5 | $0.00015 | $0.00337 |
| Sonnet 5 | $0.00006 | $0.00135 |
| Haiku 4.5 | $0.00003 | $0.00067 |
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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Domain-Driven Design
Let the business domain drive your software design, not the other way around.
1. Strategic Design
Core Concepts
| Concept | Purpose |
|---|---|
| Ubiquitous Language | Shared vocabulary between dev and business |
| Bounded Context | Clear boundary where a model applies |
| Context Map | How contexts relate to each other |
| Subdomain | Business capability classification |
Subdomain Types
| Type | Characteristics | Investment |
|---|---|---|
| Core | Competitive advantage | Maximum |
| Supporting | Necessary but not differentiating | Moderate |
| Generic | Common across industries | Minimum (buy/outsource) |
2. Context Mapping
Relationship Patterns
| Pattern | Relationship |
|---|---|
| Shared Kernel | Two contexts share a subset |
| Customer-Supplier | Upstream serves downstream |
| Conformist | Downstream conforms to upstream |
| Anti-Corruption Layer | Translation between contexts |
| Open Host Service | Public API for consumers |
| Published Language | Standard data format |
3. Tactical Patterns
Building Blocks
| Pattern | Purpose | Rule |
|---|---|---|
| Entity | Identity matters | Has unique ID, mutable |
| Value Object | Value matters | Immutable, no ID |
| Aggregate | Consistency boundary | One root, transactional |
| Repository | Persistence abstraction | Per aggregate root |
| Domain Event | Something happened | Past tense, immutable |
| Domain Service | Stateless logic | Doesn't belong to entity |
| Factory | Complex creation | Encapsulate construction |
Aggregate Design Rules
| Rule | Why |
|---|---|
| One aggregate root | Single entry point |
| Small aggregates | Performance, concurrency |
| Reference by ID | Not by object reference |
| Eventual consistency | Between aggregates |
| Transactional within | Strong consistency inside |
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.
- 7d ago First seen · 106 lines · 31 tokens per session scan A 37378af680b8
domain-driven-design is a skill published in the GitHub repository hoangatg/ai-agent-toolkit (1 stars, last pushed 5mo ago), licensed MIT. It adds 31 tokens to every session and 674 once invoked, about $0.0002 per session on Opus 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-03.
Other skills, from other repositories
codex
Delegate coding tasks to the OpenAI Codex CLI for features, refactoring, PR reviews, and batch fixes. Requires the codex CLI and typically a git repository.
opencode
Delegate coding tasks to the OpenCode CLI for feature work, refactoring, PR review, and autonomous-style runs. Requires opencode installed where the agent can execute shell commands.
deepnote
DeepNote knowledge base: persistent interlinked markdown wiki with ingest, query, lint, link graph and history.
golang-patterns
Idiomatic Go patterns, best practices, and conventions for building robust, efficient, and maintainable Go applications.
clickhouse-io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
springboot-patterns
Spring Boot architecture patterns, REST API design, layered services, data access, caching, async processing, and logging. Use for Java Spring Boot backend work.