Domain Modeling

VerifiedSafe

Active discipline to build and refine a project's domain model, updating CONTEXT.md and ADRs as decisions are made.

Sby Skills Guide Bot
DevelopmentIntermediate
8/21/2026
Claude CodeCursorCodex
#domain-modeling#ddd#glossary#adr#architecture

Recommended for

Automated summary

Actively builds and refines a project's domain model by challenging terminology, testing edge-case scenarios, maintaining CONTEXT.md glossaries, and recording selective ADRs.

Strengths

  • Forces precise, canonical terminology by challenging conflicting or fuzzy language against the existing glossary.
  • Cross-checks stated domain behavior against the code and surfaces contradictions.
  • Captures resolved terms immediately in CONTEXT.md and keeps the glossary free of implementation details.
  • Applies a clear three-part test before proposing ADRs, avoiding decision-record clutter.

Limitations

  • Depends on active user participation; it works through dialogue and cannot resolve ambiguous domain language alone.
  • Only offers ADRs when a decision is hard to reverse, surprising without context, and the result of a real trade-off, so some decisions will intentionally go unrecorded.
  • Assumes a file-based repository with CONTEXT.md/ADR conventions; it does not define tooling for other documentation systems.
When to use it

Use when you are changing or clarifying domain terminology, writing or editing CONTEXT.md, or deciding whether a design decision merits an ADR.

When not to use it

Do not use when you only need to look up existing vocabulary in CONTEXT.md or when the task is purely implementation-focused with no domain-model change.

Security analysis

Safe
Quality score85/100

The skill is pure prose guidance for an AI agent: it tells the model to challenge terminology, cross-reference code, and write markdown files (CONTEXT.md, ADRs) inside the repository. It declares no tools, issues no shell commands, makes no network calls, and contains no obfuscated payloads, credential handling, or instructions to disable safety. File creation is scoped and lazy (create only when there is something to write), so the only side effect is ordinary documentation edits authorized by the user's session.

No concerns found

How this analysis is made

Examples

Sharpen ambiguous account terminology
We keep saying 'account' for both the Customer and the User. Can you challenge the terminology, help me settle on precise canonical terms, and update CONTEXT.md with the distinction?
Resolve cancellation conflict
Our CONTEXT.md defines 'cancellation' as cancelling a whole order, but I think we need partial cancellation. Stress-test this with edge cases and, if we change the model, record it in the glossary.
Decide whether to write an ADR
We chose event sourcing for the order write model. Does this meet your criteria for an ADR, and if so, draft one using the ADR format?

name: domain-modeling description: Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a CONTEXT.md, or recording or editing an ADR.

Domain Modeling

Actively build and sharpen the project's domain model as you design. This is the active discipline: challenging terms, inventing edge-case scenarios, and writing the glossary and decisions down the moment they crystallise. (Merely reading CONTEXT.md for vocabulary is not this skill: that's a one-line habit any skill can do. This skill is for when you're changing the model, not just consuming it.)

File structure

Most repos have a single context:

/
├── CONTEXT.md
├── docs/
│   └── adr/
│       ├── 0001-event-sourced-orders.md
│       └── 0002-postgres-for-write-model.md
└── src/

If a CONTEXT-MAP.md exists at the root, the repo has multiple contexts. The map points to where each one lives:

/
├── CONTEXT-MAP.md
├── docs/
│   └── adr/                          ← system-wide decisions
├── src/
│   ├── ordering/
│   │   ├── CONTEXT.md
│   │   └── docs/adr/                 ← context-specific decisions
│   └── billing/
│       ├── CONTEXT.md
│       └── docs/adr/

Create files lazily: only when you have something to write. If no CONTEXT.md exists, create one when the first term is resolved. If no docs/adr/ exists, create it when the first ADR is needed.

During the session

Challenge against the glossary

When the user uses a term that conflicts with the existing language in CONTEXT.md, call it out immediately. "Your glossary defines 'cancellation' as X, but you seem to mean Y. Which is it?"

Sharpen fuzzy language

When the user uses vague or overloaded terms, propose a precise canonical term. "You're saying 'account': do you mean the Customer or the User? Those are different things."

Discuss concrete scenarios

When domain relationships are being discussed, stress-test them with specific scenarios. Invent scenarios that probe edge cases and force the user to be precise about the boundaries between concepts.

Cross-reference with code

When the user states how something works, check whether the code agrees. If you find a contradiction, surface it: "Your code cancels entire Orders, but you just said partial cancellation is possible. Which is right?"

Update CONTEXT.md inline

When a term is resolved, update CONTEXT.md right there. Don't batch these up: capture them as they happen. Use the format in CONTEXT-FORMAT.md.

CONTEXT.md should be totally devoid of implementation details. Do not treat CONTEXT.md as a spec, a scratch pad, or a repository for implementation decisions. It is a glossary and nothing else.

Offer ADRs sparingly

Only offer to create an ADR when all three are true:

  1. Hard to reverse: the cost of changing your mind later is meaningful
  2. Surprising without context: a future reader will wonder "why did they do it this way?"
  3. The result of a real trade-off: there were genuine alternatives and you picked one for specific reasons

If any of the three is missing, skip the ADR. Use the format in ADR-FORMAT.md.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/domain-modeling-mt2h8kvr/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/domain-modeling-mt2h8kvr' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/domain-modeling-mt2h8kvr/download' --output '.skill-downloads/domain-modeling-mt2h8kvr/SKILL.md.part' && mv '.skill-downloads/domain-modeling-mt2h8kvr/SKILL.md.part' '.skill-downloads/domain-modeling-mt2h8kvr/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/domain-modeling-mt2h8kvr/SKILL.md' && test -s '.skill-downloads/domain-modeling-mt2h8kvr/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/domain-modeling' && cp -R '.skill-downloads/domain-modeling-mt2h8kvr' '.claude/skills/domain-modeling'

Cursor
test -f '.skill-downloads/domain-modeling-mt2h8kvr/SKILL.md' && test -s '.skill-downloads/domain-modeling-mt2h8kvr/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/domain-modeling' && cp -R '.skill-downloads/domain-modeling-mt2h8kvr' '.cursor/skills/domain-modeling'

Codex
test -f '.skill-downloads/domain-modeling-mt2h8kvr/SKILL.md' && test -s '.skill-downloads/domain-modeling-mt2h8kvr/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/domain-modeling' && cp -R '.skill-downloads/domain-modeling-mt2h8kvr' '.agents/skills/domain-modeling'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/domain-modeling-mt2h8kvr'

openskills read 'domain-modeling-mt2h8kvr'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/domain-modeling-mt2h8kvr/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills