Writes and maintains DOMAIN.md by interviewing the user as the domain expert, capturing ubiquitous language, entities, value objects, aggregates, domain events, and invariants. Use when modeling a domain, when new terms appear, or when code and model disagree.
Ships in usetemi. 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.
Agents already know domain-driven design. What they lack is the domain: the
terms, rules, and boundaries of this business. DOMAIN.md supplies that. It
records the ubiquitous language, the model, and the rules and invariants, so
every later task starts from the same model instead of re-deriving one from
code.
This skill writes and maintains DOMAIN.md at the repository root. Treat the
user as the domain expert: extract rules through concrete scenarios and write
down only what they confirm. The skill does not change code. Bringing the
implementation in line with the model is separate work that reads DOMAIN.md.
references/domain-driven-design.md is
this skill's definition of domain-driven design. Read it:
The reference says to keep the model and the implementation aligned. That alignment is the goal; a lag is the expected state. This skill keeps the model explicit and current, and closing the gap is code work outside it.
DOMAIN.md.DOMAIN.md describes the goal state: how the software is supposed to work.
The implementation may lag it. Never rewrite the document to match the code
without asking. When code and document disagree, ask whether the model was
incomplete or the code drifted.DOMAIN.md only. Do not edit implementation files, tests, or schemas.Read DOMAIN.md first when it exists. For an existing system, also inspect the
relevant code, tests, schemas, interfaces, documentation, and recent changes
before interviewing the user. This step is read-only. Identify:
DOMAIN.md, and the reverseEvidence produces questions, not rules. Code shows what is implemented, not what is intended.
For a new system, begin with the user's stated problem, actors, desired outcomes, and representative scenarios. Do not design from nouns or storage structures alone.
Do not stop after announcing that inspection or an interview is needed. Inspect available artifacts in the current turn. If no relevant artifacts are available, start the domain interview immediately.
Use the available interactive question tool. If none is available, ask concise questions in prose. Ask no more than three or four questions per round and run additional rounds until material ambiguity is resolved.
Ground questions in concrete cases:
Do not ask the user to choose technical patterns. Ask domain questions, then map the answers to modeling tools. When an answer exposes a contradiction or a term with multiple meanings, continue the interview instead of resolving it silently.
The file is the proposal. Draft or edit DOMAIN.md, then have the user review
the change and correct it. Iterate until they confirm. Revise an existing file
in place: change the affected terms and rules where they live instead of
appending a new section or a changelog.
Open the document with a short statement of what it is: the source of truth for the ubiquitous language, domain rules, and how the software is supposed to work; a living goal-state document that implementation may lag.
A useful outline, to adapt rather than fill in:
Include only what the domain needs. Omit a section or pattern that has no concrete domain responsibility instead of adding placeholders.
Writing rules:
DOMAIN.md only guides agents that read it. If the repository's agent
instructions (AGENTS.md, CLAUDE.md, or equivalent) do not already load it,
suggest that the user add:
DOMAIN.md for every taskDOMAIN.md first before introducing a concept, workflow, or policy absent
from itSuggest the change; do not edit agent instructions unasked.
An actively revised DOMAIN.md accumulates redundancy and contradiction. On
request, or when the evidence step finds them, remove self-contained
inconsistencies and redundancies. The two are handled differently:
Read the whole document before editing. Finish by reporting what was merged and which conflicts the user decided.
Treat the confirmed model as current, not final. Revisit DOMAIN.md when
business behavior changes, when a task needs a concept the document lacks, or
when recurring confusion shows the language is not working:
Model evolution is expected. Do not protect an obsolete model merely because it matches the current implementation, and do not retreat from a confirmed model merely because the implementation has not caught up.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/ask-clarifying-questionsConduct a clarification interview before writing code, investigating ambiguous bugs, or changing design or architecture, then use the resulting model of how the user decides to make implementation-time decisions on their behalf. Uses AskUserQuestion in Claude Code, request_user_input in Codex when exposed, or plain prose when no interactive question tool is available. Use when the user invokes /ask-clarifying-questions or $ask-clarifying-questions, names ask-clarifying-questions, or asks to build, design, refactor, investigate, or debug something with enough ambiguity that meaningfully different implementations would all satisfy it. The output is shared understanding in the current session; no file artifact./fly-ioDeploy, configure, review, troubleshoot, and design Fly.io apps, Machines, networking, and storage, or operate and integrate Sprites persistent execution environments. Use for Fly infrastructure, flyctl/fly.toml, and Sprites CLI/API tasks./observabilityOpinionated judgment for instrumentation, logging, tracing, alerting, and production feedback. Use when deciding what telemetry to capture, designing a log record or event vocabulary, choosing operation boundaries, evaluating sampling and aggregation, designing alerts or service objectives, choosing or adding a telemetry tool, investigating a production outcome, or when a change adds or alters an operation whose outcome matters in production, even if nobody asked for telemetry./software-designDesign judgment for modules, interfaces, and where information lives. Use when designing or restructuring a module or interface, deciding where an abstraction goes, evaluating a decomposition, placing rationale in comments or scoped docs, or comparing alternative designs for a larger change./sprite-appsUmbrella workflow for building and shipping web apps with Elixir, Ash, and Phoenix on Fly Sprites. Use when creating, restructuring, reviewing, or deploying a Phoenix/Ash app that runs on a Sprite, or when a web app build should compose software-design, observability, web-design, and fly-io judgment in one pass instead of treating them as separate reviews./tailscaleDeploy, configure, review, troubleshoot, and automate Tailscale tailnets and the tailscale/tailscaled CLI, including grants and ACLs, Tailscale SSH, device posture, Tailnet Lock, Tailscale PAM, Serve, Funnel, Tailscale Services, tsidp, subnet routers, exit nodes, app connectors, peer relays, MagicDNS, the Kubernetes Operator, containers and tsnet, auth keys, OAuth clients, workload identity federation, the API, Terraform and GitOps, Aperture, and connectivity and production diagnostics./usetemi:dddfrom usetemi
npx claudepluginhub usetemi/skills --plugin usetemi