Architecture ddd
Skill planifest/planifest-framework/planifest-framework/external-skills/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.From its SKILL.md
npx -y skills add planifest/planifest-framework --skill architecture-dddAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.3 KB, 359 tokens by cl100k_base, as published. Nobody here has run it
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
- Build ubiquitous language per domain area and identify conflicting terms.
- Partition bounded contexts by invariants, autonomy, and change cadence.
- Design aggregates with clear consistency and lifecycle rules.
- Define context map and integration contracts between contexts.
- Identify anti-corruption needs and translation responsibilities.
- 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.
What ships with it: 1 file
11.3 KB alongside SKILL.md
- attribution.txt11.3 KB