Percerno Skillsbeta
← everything it can do · product

Domain Modeling TEXT

Actively refines the project's domain model by challenging terminology, resolving ambiguities, and updating GLOSSARY.md or creating ADRs to document significant architectural decisions.

11 uses this weeksource mattpococklicence MIT
Quality gate: FAIL · better answers · measured 2026-10-23
Blind-judged against the bare model on 2 requests: average lift -5.5 points (specificity, structure, method, fit).
won 0/2, lift -5.5, tokens ×23.53
Security scan: clean · 2026-10-24 · 4 files · ran in sandbox
no network calls, shell tricks, credential access or instruction tampering found in its files.

Try asking

Say it in your own words; the assistant finds this recipe by itself. Examples:

“Jeg er ikke sikker på, om 'kunde' og 'bruger' er det samme i vores system. Kan vi afklare forskellen og opdatere ordbogen?”
“Vi har besluttet at bruge event sourcing til ordremodulen. Skriv venligst et ADR, der forklarer, hvorfor vi valgte dette frem for et traditionelt relationelt model.”
“Begrebet 'betaling' bruges på tre forskellige måder i kodebasen. Lad os definere en kanonisk term for den finansielle transaktion i modsætning til fakturaoptegnelsen.”
“I'm not sure if 'Customer' and 'User' are the same thing in our system. Can we clarify the difference and update the glossary?”
“We decided to use event sourcing for the order module. Please draft an ADR explaining why we chose this over a traditional relational model.”
“The term 'payment' is being used in three different ways in the codebase. Let's define a canonical term for the financial transaction versus the billing record.”
Try this skill from Claude, ChatGPT or a chat on your own page. Free plan, no credit card.Get started free

Good for

domain-driven-designglossaryadrterminologyubiquitous-languagearchitecture-decisionsconceptual-modelingcodebase-clarification

Not for

Do not use this skill for simple code refactoring, bug fixing, or feature implementation that does not involve changing the domain model or terminology. It is not for reading the glossary to understand existing code without making changes, nor for general technical documentation that does not pertain to domain concepts or architectural decisions.

Details

When it is the right choice

Use this skill when defining or refining business terms, resolving conflicts between code behavior and domain language, or documenting significant architectural trade-offs. It is appropriate when the user is actively designing a system and needs to ensure the shared language is precise and consistent. It is also used when creating or editing GLOSSARY.md or ADR files to capture crystallized decisions.

The full recipe the assistant reads

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 GLOSSARY.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:

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

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

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

Create files lazily: only when you have something to write. If no GLOSSARY.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 GLOSSARY.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 GLOSSARY.md inline

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

GLOSSARY.md should be totally devoid of implementation details. Do not treat GLOSSARY.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.

Files in this skill (5)
  • ADR-FORMAT.md
  • GLOSSARY-FORMAT.md
  • LICENSE
  • SKILL.md
  • agents/openai.yaml
Where it comes from

Vendored from mattpocock/skills, commit 5beb35b040e3, path skills/engineering/domain-modeling, licence MIT. The upstream licence file ships inside the skill.