Skip to content
Back to skills

Domain Modeling

ASecurity

Sharpens the <app> domain model: challenges conflicting terms, resolves vocabulary into GLOSSARY.md, and records the decisions that deserve an ADR.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
development

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add Facta-Dev/ai-coding-playbook --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/facta-dev-domain-modeling-5c002ff7/badge)](https://www.skillsdirectory.com/skills/facta-dev-domain-modeling-5c002ff7)

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: "Sharpens the <app> domain model: challenges conflicting terms, resolves vocabulary into GLOSSARY.md, and records the decisions that deserve an ADR."
division: core
---

# <app> Domain Modeling skill

> Reusable workflow for changing the <app> domain model, not just reading it.
> An agent invokes this skill; the agent supplies the vocabulary, the skill
> supplies the discipline.

## When to Activate

Activate this skill when the <app> domain language is in question: a term is
ambiguous or overloaded, a requester describes behavior the code contradicts,
a `GLOSSARY.md` entry needs writing or correcting, or a decision has been
made that a future reader would puzzle over.

Do NOT activate this skill when:

- The request is only to read existing vocabulary (one grep of `GLOSSARY.md`
  is enough).
- The request is to add or change a test (use `tdd`).
- The request is to review a diff for correctness (use `review`).

## Core Principles

- Changing the model is active work: challenge the term, propose a precise
  canonical word, and record the resolution the moment it crystallises.
- One word per concept. Pick the best name and list the rejected ones under
  `_Avoid_`, so the vocabulary does not fork.
- `GLOSSARY.md` holds domain language and nothing else. No implementation
  detail, no spec, no scratch pad.
- Definitions say what a thing IS, not what it does. One or two sentences.
- Only context-specific terms belong. Generic programming vocabulary
  (timeouts, error types, util patterns) stays out even when the project uses
  it heavily.
- The code is evidence. When the requester describes behavior, check the
  code and surface the contradiction instead of silently picking a side.
- ADRs are offered sparingly. Most decisions are not worth a file.

## Rules

- Update `GLOSSARY.md` inline as terms resolve. Do not batch the writes to
  the end of the session.
- Call out a conflict with the existing glossary immediately: name the
  existing definition and the new meaning, then ask which is intended.
- For a fuzzy or overloaded term, propose one canonical term and its
  `_Avoid_` list rather than leaving both words alive.
- Stress-test relationships with concrete scenarios that probe edge cases
  and force boundaries between concepts to be stated.
- Create files lazily: `GLOSSARY.md` when the first term is resolved,
  `docs/adr/` when the first ADR is needed. Never create empty scaffolding.
- A single-context repo keeps `GLOSSARY.md` at the root. A multi-context
  repo keeps a root `GLOSSARY-MAP.md` pointing at each context's glossary
  and ADR folder, plus the relationships between contexts.
- Write an ADR only when all three hold: hard to reverse, surprising
  without context, and the result of a real trade-off. If one is missing,
  skip the ADR and say why.
- An ADR is one short paragraph: context, decision, reason. Optional
  sections (status, considered options, consequences) only when they earn
  their place. Number sequentially in `docs/adr/NNNN-slug.md`.
- Never invent a term the requester did not use or the code does not
  support.

## Research References

| Claim | Source | Year | Link |
|---|---|---|---|
| Glossary terms carry an `_Avoid_` list and define what a thing IS | mattpocock/skills, skills/engineering/domain-modeling/GLOSSARY-FORMAT.md | 2026 | skills/engineering/domain-modeling/GLOSSARY-FORMAT.md |
| An ADR is warranted only when hard to reverse, surprising, and a real trade-off | mattpocock/skills, skills/engineering/domain-modeling/ADR-FORMAT.md | 2026 | skills/engineering/domain-modeling/ADR-FORMAT.md |
| The active discipline (challenge terms, sharpen language, cross-reference code) | mattpocock/skills, skills/engineering/domain-modeling/SKILL.md | 2026 | skills/engineering/domain-modeling/SKILL.md |

## Output Format

Deliver, in order:

1. The resolved terms: canonical term, its definition, and the `_Avoid_`
   list.
2. The `GLOSSARY.md` (or `GLOSSARY-MAP.md`) update, written inline.
3. The ADR, or the reason none was written (which of the three conditions
   was missing).
4. Open questions: terms that are still ambiguous and need a decision from
   the requester.

Example:

```
domain-modeling: "cancellation" is now canonical for a full Order cancel;
"Avoid: refund, void". Partial cancellation is a different concept and has
no term yet. ADR skipped: the refund policy choice is easy to reverse.
```

Files in this skill

  • CREDITS.md1.4 KB
  • SKILL.md4.3 KB

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.