/ddd-ts-kit:discover-domain [the needs, or the process to explore]from ddd-ts-kit
Guides domain discovery via lightweight event storming: identifies actors, commands, domain events, policies, read models, and external systems from business needs. Use before writing any code.
Ships in ddd-ts-kit. 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.
None: SKILL.md is the whole skill.
Subject: $ARGUMENTS (otherwise the ## Needs section of docs/architecture/plan.md)
Read the needs, and nothing of the code. The output is one file,
docs/architecture/discovery.md, that the owner can correct in five minutes.
Write the first version yourself from what was stated, then put to the owner only what the needs do not say. Ask in batches of at most five questions, each one about a fact of the business (what happens when a payment fails?), never about technique.
Order placed, Invoice issued, Payment refused). Put them on a timeline. Hunt for the
unhappy ones: refused, expired, cancelled, late.Place order).
An event without a command is caused by time or by another event: say which.# Domain discovery
## Timeline
| # | Actor | Command | Domain event | Then (policy) | Needs to see (read model) |
|---|---|---|---|---|---|
| 1 | Customer | Place order | Order placed | whenever Order placed, Reserve stock | Catalogue, prices |
## External systems
| System | Used for | Direction | What happens when it is down |
## Rules heard
- An order cannot be paid twice.
## Words with several meanings
| Word | Meaning for whom |
## Hot spots
- <question>, who can answer
Keep the words of the business exactly, even when two people use two words for one thing: that difference is what the next step needs. No class, no table, no technical noun.
Put this to the owner: does every need appear as a command and a domain event, in your
words, and is every disagreement listed as a hot spot? On a yes, the next step is
ddd-ts-kit:bounded-contexts.
What SKILL.md sets; muted values are Claude Code's defaults
26 skills in this plugin
/access-controlUse when adding a permission, a role or an ownership rule, when code needs the connected user or the tenant, when filtering a list by rights, or on an authz/* rule. Authentication, authorization, access scopes, policies, RBAC, ABAC, ReBAC./bootstrapChooses the stack and creates the project with the ddd-ts-kit CLI: config, platform, database, pipeline, contexts, in an empty directory or an existing backend. Run by the user with /ddd-ts-kit:bootstrap./bounded-contextsUse when cutting a system into bounded contexts, when a concept has no home, a context grows two vocabularies or too large, two contexts need each other, or on boundaries, subdomains, sub-contexts, modules, splitting or merging contexts. Core, supporting or generic./clean-codeUse when a clean/*, purity/* or language/* rule is reported, or when asked to clean, simplify, rename or make code more readable: business names, small functions, stepdown order, comments only for what code cannot say, no escape hatches, Clock, IdGenerator./commit-disciplineUse when about to commit, when asked to commit, to write a commit message or to split a change, or when the guard reports too many uncommitted changes. One use case or concept per commit, messages scoped by context./context-mapUse when two contexts depend on each other, a context needs data or a reaction from another, when choosing upstream, downstream and pattern (customer-supplier, conformist, anti-corruption layer, open-host service, shared kernel, published language), or on context/* rules.npx claudepluginhub ddd-ts-kit/ddd-ts-kit --plugin ddd-ts-kitOther plugins' skills for the same job