/ddd-flow:7-definefrom ddd-flow
Deepen each bounded context into a canvas — purpose, inbound/outbound messages, business decisions, quality attributes, assumptions and open questions — in the ddd-flow modelling loop. Use whenever a domain has drawn contexts (3-decompose ran) and each needs its responsibility, interface, and assumptions made explicit, or an existing canvas needs revising — invoked by ddd-flow:design or directly. This deepens canvases; it does NOT draw or move a boundary (that is 3-decompose).
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 the Bounded Context Canvas, quality storming, and context-mapping relationships. This skill does not re-teach them — 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 Right-size, Honesty,
Boundaries, and Grounding sections carry this step's [7] rules. They are the rules, not
the method — do not proceed without them.
docs/domain/<context>/ (the first-pass canvas 3-decompose wrote + model.yaml for
subdomain_type), message-flows/ (the real inbound/outbound messages), discovery/ (ubiquitous
language + stated rules, with attribution), and core-domain-chart.md (classification — cite it,
never re-derive).docs/domain/<context>/README.md in place (delta-merge: preserve human
edits, keep the id, add the missing sections) — never a parallel document.Fill each canvas to the shape in ../../references/artifact-shapes.md. Check 8 skips a canvas as
a not-yet-deepened sketch below 2 of its three markers — assumption, verification metric, open question — so include all three to pass clean at define depth. The line budget is per
subdomain_type from model.yaml (core 180 · supporting 90 · generic/master-data 35).
The public interface has a large blast radius and is expensive to change, so on a core context challenge the filled canvas: are the message names coherent with each other and with the context's description · is each message the right type (should a command be an event?) · is the interface too big · is it exposing internals · does any message belong elsewhere. Keep technical detail out of the purpose — a framework, a database or an endpoint there means the context is being described by its implementation. Then the move that finds the most: relocate something to another context and see what breaks. Record the experiment and its outcome including the rejections — a design that has never been perturbed has never been tested.
Don't canvas every context to the same depth. Match canvas depth to subdomain_type — core
gets the full canvas, generic a bought-adapter stub; core-to-generic depth should be nearer 10:1
than 2:1. Nine identical canvases signal ceremony; two deep + five stubs signal judgement. Say which
you deepened and why the rest got less. A budget caps prose, never findings.
Run ddd_check (canvas-marker + budget gate); resolve blocking gaps; keep assumptions and
open_questions populated honestly — beside the decisions, not instead of them: a core canvas an
engineer cannot build from has failed even with all three markers present. A canvas whose purpose
needs an "and also", or that contradicts model.yaml, is a delta for 3-decompose — write the
finding, never redraw the line yourself.
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