/ddd-flow:8-codefrom ddd-flow
Event-model each use case into slices, then author one aggregate design canvas per aggregate the slices touch — deciding what stays consistent inside one transaction and what is repaired afterwards. Use whenever a context has a defined canvas and a first-pass model.yaml and needs its aggregates designed, invariants and corrective policies pinned, or throughput/size re-checked against a boundary — invoked by ddd-flow:design or directly. The last modelling step before the model becomes code; not for writing the implementation.
Ships in ddd-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You already know event modelling, the aggregate design canvas, and the invariant-versus-corrective- policy trade-off. This skill does not re-teach that — it gives only what a strong model gets wrong by default here, plus the exact output contract the gate parses.
Read ../../references/RULES.md (the shared ddd-flow rules). The Aggregates, Right-size,
and Boundaries sections govern this step (with the [8]-tagged Grounding and Honesty
rules). They are the rules, not the method — do not proceed without them.
docs/domain/<context>/README.md (the context canvas — purpose, business decisions,
quality attributes), docs/domain/<context>/model.yaml (first-pass aggregates/entities/VOs/events),
and docs/domain/message-flows/ (which commands cross in, and the throughput/client inputs).docs/domain/<context>/aggregates/<Name>.md canvas per aggregate the slices touch
(the gate's evidence); optionally the phase-1 event-model/README.md and the code-structure.md
structural contract.Author every canvas to the aggregate-canvas shape in ../../references/artifact-shapes.md. Obey
the budgets (aggregate canvas ≤150, event-model/README.md ≤200, code-structure.md ≤120) and the
one marker the gate parses: any relax / eventual / not enforced wording MUST be met by a
## Corrective policies section (check 10 relaxed-without-policy, HIGH).
Never invent an invariant. Take invariants only from stated business rules — inferring "an invoice must have at least one line" because it sounds right manufactures a constraint the business never asked for, and unlike a missing rule a fabricated one is enforced by the code and discovered by a customer.
Run ddd_check (grounding + structure gate); resolve blocking gaps; keep open_questions populated
honestly. Where a canvas contradicts model.yaml, propose the delta — 3-decompose owns that
file, never hand-edit it here. Design stops at the structural contract — no skeleton classes.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/1-understandCapture what the business sells, to whom, and what differentiates it — a Business Model Canvas, story map, and strategic-classification inputs — as the grounding step of the ddd-flow modelling loop. Use whenever a domain needs grounding before any boundary is drawn, or when the business model changed and downstream classification must be revisited — invoked by ddd-flow:design or directly. Writes docs/domain/business-model.md and supplies the inputs 3-decompose and 5-strategize need; it does NOT classify contexts itself./2-discoverSurface a domain's EventStorming timeline, ubiquitous language, and hotspots from what the people who do the work actually say — the discovery step of the ddd-flow modelling loop. Use whenever a domain needs its behaviour discovered before any boundary is drawn: mining PRDs/specs/schemas for candidate events, interviewing for the gaps, or merging a discovery delta — invoked by ddd-flow:design or directly. This is initial event discovery; drawing bounded-context boundaries is 3-decompose.
Other plugins' skills for the same job
/3-decomposeDraw or move bounded-context boundaries and author each context's model.yaml in the ddd-flow modelling loop. Use whenever a domain has confirmed discovery (events/rules) and needs cutting into bounded contexts, deciding what each context owns, or revising an existing context-map — invoked by ddd-flow:design or directly when decomposing a modelled domain. This is the ONLY step that draws a boundary; not for initial event discovery (that is 2-discover).npx claudepluginhub baodq97/govkit --plugin ddd-flow