/ddd-flow:2-discoverfrom ddd-flow
Surface 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.
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; scripts run unread.
You already know EventStorming, ubiquitous-language elicitation, and hotspot capture. 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 Grounding, Honesty,
and Right-size sections govern this step. They are the rules, not the method — do not proceed
without them.
business-model.md, PRDs, ADRs, specs,
schemas, the domain layer — plus any prior docs/domain/discovery/ (UPDATE mode: merge a delta,
never overwrite). With no artifacts, INTERVIEW mode elicits from people.docs/domain/discovery/ — the event timeline, ubiquitous language, hotspots (stable
H1.. ids), and the session/attendance record; drive the live surface via model.json.Author discovery/*.md and discovery/model.json to the shapes in
../../references/artifact-shapes.md. model.json is canonical: checks 13 and 16 read it
first, and the markdown fallback cannot tell a confirmed event from a confirmed rule, so the
grounding floor silently degrades to a whole-timeline ratio without it. Keep status (evidence)
and state (time) as two independent columns. No model.yaml here — boundaries and their schema
are 3-decompose.
When RULES sends you to measure (structured and large: ≥20 files of one shape, or ≥200
definitions), write throwaway miners into .ddd-flow/mine/ in the consumer repo and commit
them — they are the provenance. Every stage emits out/manifest.yaml (or .json) carrying
source, invocation, total, parsed, skipped[], failed[] — each skip with a reason, each
failure with an error, and parsed + skipped + failed == total. Validate before quoting any number:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/2-discover/scripts/mine_coverage.py \
--manifest .ddd-flow/mine/out/manifest.yaml --corpus '<root>/**/*.<ext>' --strict
An unvalidated count is a guess with a number on it, and "not found" from a partial scan is an
unmeasured absence. Mined signals enter discovery/ as candidate, never confirmed.
Documented is not discovered. Every event, term, and rule carries whether a human confirmed it
or an artifact only implied it: mark everything mined from documents candidate, and only a person
flips it to confirmed. A run that merely re-read the schemas must not look identical to one that
talked to the business — a timeline that paraphrases a DDL has discovered nothing, however complete
it looks.
Run ddd_check (budget + grounding gate); resolve blocking gaps; keep hotspots (H1.., never
renumbered) and open_questions populated honestly. Don't resolve a hotspot to keep the wall tidy,
and don't draw boundaries — hand the clustered events to 3-decompose, which will be only as good
as this discovery was.
references/eventstorming.md (opens in a new tab)references/interview-guide.md (opens in a new tab)references/measure-playbook.md (opens in a new tab)references/other-techniques.md (opens in a new tab)references/output-template.md (opens in a new tab)references/worked-example.md (opens in a new tab)scripts/mine_coverage.py (opens in a new tab)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./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).Other plugins' skills for the same job
/4-connectTrace real business use cases as message flows across the bounded contexts to surface hidden coupling, in the ddd-flow modelling loop. Use whenever a domain has an initial cut (contexts + events) and you need to test whether concrete scenarios cross those boundaries cleanly, or to re-check flows after a boundary moved — invoked by ddd-flow:design or directly. Also use when one rule or invariant appears to span two contexts and the flow must be traced before anyone decides where it belongs — a distributed invariant is this step's finding to produce. Needs a cut to refute; not a discovery technique (that is 2-discover), and it never redraws a boundary itself (it hands 3-decompose the evidence).
npx claudepluginhub baodq97/govkit --plugin ddd-flow