/ddd-ts-kit:scaffold <kind> <context> <Name> [options]from ddd-ts-kit
Generates DDD building blocks (aggregates, entities, value objects, services, repositories, etc.) via ddd-ts-kit CLI. Use when a new domain file is needed or the guard rejects a hand-written file.
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.
Read when SKILL.md points to them.
Requested: $ARGUMENTS
Boilerplate is generated, never typed: the generator and the checker share one definition of
the tree, so a generated file conforms by construction and costs no tokens. A whole feature is
skill ddd-ts-kit:use-case; events between contexts, skill ddd-ts-kit:integration-event.
CONTEXT.md. A missing term is added in the
same command with --term "<Term>=<meaning>". Technical words (Manager, Helper,
Data, Info, Impl, Model, ...) are refused (language/no-technical-name):
find the business word; --allow-name only when the word really is the business term.
A generator that derives its name from another argument (event-handler,
integration-handler) takes --name <Name> when the design names it otherwise.
A new aggregate names the fact it is born with: generate aggregate <ctx> <Name> --birth "<Fact>".
In a context that declares modules of the model (## Modules of its CONTEXT.md), add
--module <module> to a kind whose usage shows [--module <module>], the module whose
glossary terms the name uses; the generator refuses without it and lists the modules. The
other kinds (test-world, route-group, guard, schema, e2e, ...) write
what no module holds, in shared/, and refuse --module; builder takes it. A new module: generate module <ctx> <module> --purpose "...", after the owner agreed (docs/concepts/modules.md).--json (--dry-run first when unsure):
npx ddd-ts-kit generate <kind> ... --json
Exact arguments of every kind: kinds.md, or npx ddd-ts-kit generate <kind> --help for one. A
worker confined to one context adds --local-only: the command refuses, and writes
nothing, when it would write a shared file.todos places, each a file:line holding a TODO(domain) that states
the decision expected. Decide, write, delete the marker. A marker you cannot resolve is a
question for the user, not a guess. notes says what the generator could not do.it.todo of the generated spec by a real test (skill
ddd-ts-kit:testing).npx ddd-ts-kit check --changed-since HEAD and the tests of the context.application/application.declarations.ts)
and <context>.declarations.ts, which re-exports them, are rewritten; never edit them.
In the explicit style the binding is added between the markers of <context>.module.ts.npx ddd-ts-kit docs (skill ddd-ts-kit:wiring).const invoice = Invoice.create(..), and a generated search names its lines after what it
searches (invoice, invoices). Keep the business word when you fill the TODO(domain):
never target, data or item (naming/business-name).command and query are refused without --permission <aggregate>.<action>
or --public; the permission joins <context>.permissions.ts. With roles, add
--grant <role>: the role that holds it, written in the roles of the platform
(authz/granted).port and repository write the fake and the contract suite with it.value-object writes a class extending ValueObject of the kernel, a
private constructor, a static factory that checks the rules (create, renamed after what it
builds when there are several: of, between, closed) and the type of its props. A value
is always this class, never a function answering a plain object nor an exported object
literal (domain/value-object-class, under "stack.values": "classes", which init
writes; npx ddd-ts-kit explain domain/value-object-class says what it reads): the class
compares by value (equals), checks its invariants once, keeps its operations next to its
data and is recognised with instanceof by a mapper.domain-service, a value-object, or an abstract service with
one domain-service per variant (docs/ARCHITECTURE.md, a concept with no role of its own).route writes a controller class in its own folder (or a defineRoute function under
"stack.routes": "functions"); controller always writes the class; route-group writes a
group with its prefix and guards, guard a guard of the project with its spec;
representation <context> <UseCase> xml,csv adds what a controller answers in besides JSON,
form <context> <UseCase> the hints of its form.schema writes one shape of the HTTP contract several routes use, declared once and shared,
in presentation/http/shared/ of the context (shared/presentation/http/shared/ with modules), or in presentation/ of the shared kernel with
schema shared-kernel <Name>; a command route answers an identifier with acceptedSchema.value-object shared-kernel <Name> --term "<Term>=<meaning>", then error shared-kernel <Refusal> <factory> (domain-error under classes). They land at its root, specs beside
them, and their terms in its own glossary, <sharedKernelDir>/CONTEXT.md. Any other kind
given shared-kernel is refused: it belongs to the context that owns it. A worker confined
to its context does not write there (--local-only refuses it): report the need.CONTEXT.md and the generated documentation are
refreshed.Never change the structure the generator produced (constructor visibility, factories,
suffixes, folders, decorators). If it does not fit, the model is probably wrong: go back to
ddd-ts-kit:glossary or 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