# Architecture Ddd

> Domain-driven design workflow for bounded context partitioning, aggregate design, and context mapping in complex domains. Use when domain complexity or organizational scaling requires explicit model boundaries; do not use for small CRUD domains without competing language models.

- **Type:** Skill
- **Install:** `agentstack add skill-kentoshimizu-sw-agent-skills-architecture-ddd`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [KentoShimizu](https://agentstack.voostack.com/s/kentoshimizu)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [KentoShimizu](https://github.com/KentoShimizu)
- **Source:** https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/architecture-ddd

## Install

```sh
agentstack add skill-kentoshimizu-sw-agent-skills-architecture-ddd
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Architecture DDD

## Overview
Use this skill to model complex domains so teams can evolve behavior without constant cross-team coupling.

## Scope Boundaries
- Domain language differs across teams or subsystems.
- Invariants are hard to maintain because boundaries are unclear.
- A single model is causing conflicting meanings and high coordination cost.

## Core Judgments
- Bounded context cuts: where language and invariants legitimately diverge.
- Aggregate boundaries: where consistency must be immediate versus eventual.
- Context integration style: ACL, conformist, published language, or shared kernel.
- Ownership model: which team can change which part without global coordination.

## Practitioner Heuristics
- Bound contexts by change patterns and invariants, not by database tables.
- Aggregates should protect invariants with minimal transactional scope.
- Cross-context communication should exchange explicit contracts, not internal models.
- In dynamic languages, model entities/value objects with explicit typed schemas instead of broad maps that require repetitive casting.

## Workflow
1. Build ubiquitous language per domain area and identify conflicting terms.
2. Partition bounded contexts by invariants, autonomy, and change cadence.
3. Design aggregates with clear consistency and lifecycle rules.
4. Define context map and integration contracts between contexts.
5. Identify anti-corruption needs and translation responsibilities.
6. Document residual ambiguity and model evolution triggers.

## Common Failure Modes
- "DDD" applied as folder naming without boundary behavior changes.
- Aggregates oversized, causing lock contention and slow writes.
- Shared database schema used as de facto integration API.

## Failure Conditions
- Stop when bounded contexts cannot be separated by language/invariant boundaries.
- Stop when aggregate consistency needs conflict with transaction feasibility.
- Escalate when cross-context contracts remain uncontrolled.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [KentoShimizu](https://github.com/KentoShimizu)
- **Source:** [KentoShimizu/sw-agent-skills](https://github.com/KentoShimizu/sw-agent-skills)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-kentoshimizu-sw-agent-skills-architecture-ddd
- Seller: https://agentstack.voostack.com/s/kentoshimizu
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
