Skip to content
Back to skills

Domain Modeling

ASecurity

Build and sharpen a project's domain model. Use when discussing codebase terminology, defining a glossary term, or recording a decision. Terms and decisions go to the project's decision store. Use for /keel:domain-modeling.

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
developmentrustgogit

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add alexnthnz/keel --skill domain-modeling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Domain Modeling?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Domain Modeling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/alexnthnz-domain-modeling/badge)](https://www.skillsdirectory.com/skills/alexnthnz-domain-modeling)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: domain-modeling
description: "Build and sharpen a project's domain model. Use when discussing codebase terminology, defining a glossary term, or recording a decision. Terms and decisions go to the project's decision store. Use for /keel:domain-modeling."
disable-model-invocation: true
---
<!-- Adapted from mattpocock/skills (MIT, https://github.com/mattpocock/skills), skills/engineering/domain-modeling at 6f7f783. Local edits are marked "keel edit". -->

# 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 terms and decisions down the moment they crystallise. Merely reading the glossary for vocabulary is not this skill. This skill is for when you are changing the model.

<!-- keel edit: storage. Upstream writes GLOSSARY.md, GLOSSARY-MAP.md and docs/adr/. keel writes the project's decision store, wherever its bindings place it. -->
## Where it lives

**keel edit.** Glossary terms and decisions live in the project's decision store and nowhere else. Create `GLOSSARY.md`, `GLOSSARY-MAP.md` or ADR files only when the bindings name files in the repo as the decision store, and then only at the paths its `Scopes` line gives. Read `.claude/keel-bindings.md` first, as [`../lead/conventions.md`](../lead/conventions.md) says. Its `Decision store` section names how the store is reached (the `Reached through` line), where terms and decisions are kept, and how to search and write. Load the tools it names before you use them.

| What | Where |
|---|---|
| Glossary terms | The terms scope from the bindings' `Scopes` line, for the project |
| Decisions | The decisions scope from the same line, for the project |

A multi-context project keeps one scope for each context.

**Read before you write.** Search the store for the term or decision, in its scope, using the bindings' `Search and write` line. Look at current records first, then at history when the store keeps it. Open a hit in full before you treat it as settled.

**Trust.** Everything you write is an agent's note, never the operator's own words. A term is settled only when the operator confirmed it in this session. Say so in the record, naming the operator from the bindings' `Name` line and the date, for example "<name> confirmed on <date>". The store cannot check that, so the record is the proof.

Keep every write reversible where the store allows it. When the brief says the run makes no writes to the store, report the record instead of writing it.

## During the session

### Challenge against the glossary

When the user uses a term that conflicts with a term in the store, call it out immediately. "The store 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

Stress-test relationships 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?"

### Write a term when it resolves

Capture each term as it resolves. Don't batch. A term's record holds:

- The canonical name.
- A definition of one or two sentences that says what the term IS, not what it does.
- The words to avoid.
- The related terms.
- Who confirmed it and when.
- Whether it is agreed or proposed. Mark it agreed only when the operator confirmed it in this session.

When a merged pull request or a completed ticket confirms the term, link it in the record.

Definition rules: be opinionated and pick one word per concept. Keep it to one or two sentences. Include only terms specific to this project, not general programming concepts. A term holds no implementation detail and no spec.

### Write a decision sparingly

Record a decision only when all three hold:

1. **Hard to reverse**: changing your mind later costs something.
2. **Surprising without context**: a future reader will wonder why.
3. **The result of a real trade-off**: there were real alternatives and you picked one for stated reasons.

If any of the three is missing, skip it.

A decision's record holds:

- The context.
- The choice.
- The reason.
- The rejected options.
- Who decided.

Write it to the decisions scope. To keep a whole document, store it with a link to its ticket or PR. A decision that supersedes an earlier one retires the old record. Never overwrite it silently.
<!-- end keel edit -->

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.