Skip to content
Back to skills

Domain Modeling

ASecurity

Sharpens the <app> domain model in place: challenges fuzzy terminology, records exact terms in the glossary, and writes ADRs only for hard-to-reverse decisions.

  • 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-fcf30497/badge)](https://www.skillsdirectory.com/skills/facta-dev-domain-modeling-fcf30497)

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 in place: challenges fuzzy terminology, records exact terms in the glossary, and writes ADRs only for hard-to-reverse decisions."
division: core
---

# <app> Domain Modeling skill

> Reusable workflow for keeping the `<app>` domain vocabulary and the
> recorded decisions honest. An agent invokes this skill; the agent supplies
> the domain knowledge, the skill supplies the discipline.

## When to Activate

Activate this skill when the `<app>` domain model itself is changing:
a term is disputed or overloaded, a new concept is being introduced, or a
decision worth recording is being made. Typical triggers:

- The request discusses codebase terminology, or asks what something means
  in `<app>`.
- The request is to write or edit the glossary.
- The request is to record or edit an architecture decision record.
- A new slice, entity, or state is being named for the first time.

Do NOT activate this skill merely to read the glossary for vocabulary
before another task (that is a one-line habit any skill can do), and not for
pure implementation choices with no domain consequence.

## Core Principles

- **The glossary is the language, the code is the truth.** When the two
  disagree, surface the contradiction instead of silently picking one.
- **Precision beats fluency.** Vague, overloaded words ("account", "user",
  "order", "active") are the defect. Propose one canonical term per
  concept.
- **A resolved term is written down immediately.** Update the glossary in
  place as terms crystallise; do not batch the edits to the end of the
  session.
- **A glossary is not a spec.** The glossary holds terms and their meaning
  only: no implementation detail, no requirements, no design discussion.
- **ADRs are rare by design.** Offer one only when all three conditions
  hold (hard to reverse, surprising without context, the result of a real
  trade-off). Meeting two out of three is not enough.
- **Create files lazily.** If no glossary or ADR directory exists, create it
  when there is genuinely something to write, not as empty scaffolding.

## Rules

- No fabricated data: never invent a term, a definition, a decision or an
  ADR number that was not agreed in the session.
- Every term must map to something in the `<app>` codebase or be explicitly
  marked as a domain concept not yet implemented.
- Keep definitions free of implementation detail (no table names, no
  framework names, no file paths) unless the term genuinely names an
  implementation concept, in which case name it explicitly.
- When the user states how something works, check the code before
  accepting it; report the mismatch and ask which side is right.
- Challenge the user's own wording when it conflicts with the recorded
  term: "The glossary defines cancellation as X, but you seem to mean Y.
  Which is it?"
- Never renumber existing ADRs. A new ADR takes the next unused number.
- Files are created lazily and only where the repository already keeps such
  files: check for an existing glossary or ADR directory before creating
  anything.
- A repository with multiple contexts keeps a map at the root pointing at
  each context's glossary and ADR directory. Do not flatten a multi-context
  repository into one glossary.

## Research References

| Claim | Source | Year | Link |
|-------|--------|------|------|
| Glossary and ADR conventions: challenge, sharpen, update inline, the three ADR conditions | `skills/engineering/domain-modeling/SKILL.md` (upstream, MIT) | 2026 | `skills/engineering/domain-modeling/SKILL.md` |
| The `<app>` terms and their meanings | `docs/14-glossary.md` | - | `docs/14-glossary.md` |
| The decisions already recorded | `docs/adr/` | - | `docs/adr/` |

## Output Format

Raw structured prose, not a code fence:

```
### <app> domain model, <what changed>

Terminology challenges:
- <term as used> vs <term as defined> -> proposed canonical term: <term> | agreed: <yes/no/open>

Code cross-check:
- <statement>, code says: <finding> (file:line) | consistent/discrepant

Glossary updates:
- <term>: <one-line definition>
- <term>: <one-line definition>

ADR:
- docs/adr/<NNNN>-<slug>.md, <decision in one line> | no ADR needed: <why not>
```

Files in this skill

  • CREDITS.md1.4 KB
  • SKILL.md4.1 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.