Skip to content
Skills Library
Management & product · Writing

domain-modeling

/domain-modeling

Active discipline for building and sharpening a project's domain model. Maintains CONTEXT.md (glossary only, no implementation details) and ADRs (hard-to-reverse, surprising-without-context, genuine-tradeoff decisions). Challenges term conflicts, sharpens fuzzy language, stress-tests with concrete scenarios, cross-references code. Use when discussing codebase terminology, writing/editing CONTEXT.md, or recording/editing an ADR.

Repository
agents ↗
Licence
MIT
Last repository change
28.08.2026

Assessment and security

98/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene13 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 28.08.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Active discipline for building and sharpening a project's domain model. Maintains CONTEXT.md (glossary only, no implementation details) and ADRs (hard-to-reverse, surprising-without-context, genuine-tradeoff decisions). Challenges term conflicts, sharpens fuzzy language, stress-tests with concrete scenarios, cross-references code. Use when discussing codebase terminology, writing/editing CONTEXT.md, or recording/editing an ADR.

Original author description

Active discipline for building and sharpening a project's domain model. Maintains CONTEXT.md (glossary only, no implementation details) and ADRs (hard-to-reverse, surprising-without-context, genuine-tradeoff decisions). Challenges term conflicts, sharpens fuzzy language, stress-tests with concrete scenarios, cross-references code. Use when discussing codebase terminology, writing/editing CONTEXT.md, or recording/editing an ADR.

How it works

  1. R — Reference (≤100 words)
  2. I — Methodology (in own words)
  3. A1 — Upstream Typical Applications
  4. A2 — Trigger Scenarios (3 contexts + language signals + sibling distinction)
  5. E — Execution Steps (each with "完成标准:")
  6. B — Boundaries & Limits
  7. Related Skills
  8. Audit
Original SKILL.md headings · 78 lines, 737 words
SKILL.md preview
---
name: domain-modeling
description: Active discipline for building and sharpening a project's domain model. Maintains CONTEXT.md (glossary only, no implementation details) and ADRs (hard-to-reverse, surprising-without-context, genuine-tradeoff decisions). Challenges term conflicts, sharpens fuzzy language, stress-tests with concrete scenarios, cross-references code. Use when discussing codebase terminology, writing/editing CONTEXT.md, or recording/editing an ADR.
source_project: mattpocock/skills
tags: [domain, modeling, glossary, adr, context, ubiquitous-language, engineering]
---

## R — Reference (≤100 words)

Upstream: `skills/engineering/domain-modeling/SKILL.md` (74 lines). File structure: single context → `/CONTEXT.md` + `/docs/adr/`; multi-context → `/CONTEXT-MAP.md` pointing to per-context `CONTEXT.md` + `docs/adr/` under each (e.g., `src/ordering/`, `src/billing/`). Create lazily. **During session**: (1) Challenge against glossary—call out conflicts immediately. (2) Sharpen fuzzy language—propose canonical terms for overloaded words. (3) Discuss concrete scenarios—invent edge cases probing boundaries. (4) Cross-reference with code—surface contradictions. (5) Update CONTEXT.md inline—capture as they happen, format per CONTEXT-FORMAT.md. (6) Offer ADRs sparingly—only when all 3 true: hard to reverse, surprising without context, result of real trade-off. ADR format per ADR-FORMAT.md. CONTEXT.md is glossary only—never spec, scratchpad, or implementation decisions.

## I — Methodology (in own words)

**Core principle**: Domain model is a *living glossary*, not a spec. It evolves by active challenge, not passive documentation.

**Two artifacts, distinct purposes**:
- **CONTEXT.md** = ubiquitous language glossary (terms → canonical definitions). Zero implementation detail. Updated *inline* during conversation.
- **ADR** = architectural decision record for *hard-to-reverse, surprising, trade-off* decisions. Format: context, decision, consequences. Created sparingly.

**Active discipline loop** (runs continuously during any design/discussion):
1. **Listen** for term usage
2. **Challenge** against current CONTEXT.md (conflict? fuzzy? overloaded?)
3. **Stress-test** with concrete edge-case scenarios
4. **Verify** against actual code (code is truth)
5. **Resolve** → update CONTEXT.md immediately
6. **Evaluate** ADR criteria → create if all 3 met

**Multi-context support**: CONTEXT-MAP.md at root maps bounded contexts. Each context owns its glossary + ADRs. System-wide ADRs at root `/docs/adr/`.

**Cross-reference as truth check**: "Your code cancels entire Orders, but you said partial cancellation is possible. Which is right?" — code wins, glossary updates.

## A1 — Upstream Typical Applications

- New project: first term resolved → create CONTEXT.md
- Team onboarding: "what does 'cancellation' mean?" → CONTEXT.md answers
- Design discussion: "account means Customer or User?" → sharpen to canonical term
- Boundary dispute: "Order vs OrderLine responsibility" → invent scenario (partial cancel, split shipment) → force precision
- Decision recording: "why event-sourced orders?" → ADR 0001 (hard to reverse, surprising, trade-off vs CRUD)

## A2 — Trigger Scenarios (3 contexts + language signals + sibling distinction)

| Context | User Language Signals (≥3) | vs Sibling Skills |
|---------|---------------------------|-------------------|
| **Term confusion in discussion** | "what do you mean by X", "we use X for two things", "ambiguous term", "glossary" | vs codebase-design: domain-modeling owns *domain terms*; codebase-design owns *module interfaces/seams* |
| **Decision needs recording** | "why did we choose", "document this decision", "ADR", "trade-off" | vs grill-with-docs: grill-with-docs *drives* domain-modeling; domain-modeling is the *discipline* it invokes |
| **Code/language mismatch** | "code does X but we say Y", "implementation contradicts", "sync terms" | vs code-review: code-review checks *diff vs standards/spec*; domain-modeling aligns *running code vs glossary* |

## E — Execution Steps (each with "完成标准:")

1. **Ensure CONTEXT.md exists** — Check root or context-specific path. Create lazily on first term resolution.  
   完成标准: CONTEXT.md file exists at correct location (root or context dir).

2. **Challenge term usage in real time** — When user uses a term, check CONTEXT.md. Conflict? Fuzzy? Overloaded? Call out immediately.  
   完成标准: Every term conflict/fuzziness surfaced in conversation before moving on.

3. **Propose canonical sharpening** — For each fuzzy/overloaded term, propose precise canonical definition with examples.  
   完成标准: Canonical term + definition written to CONTEXT.md (per CONTEXT-FORMAT.md).

4. **Stress-test with scenarios** — Invent 2-3 concrete edge-case scenarios probing the term's boundaries. User answers force precision.  
   完成标准: Scenarios documented in CONTEXT.md as "examples" or "edge cases" for the term.

5. **Cross-reference code** — Search codebase for the term's implementation. Surface any contradiction.  
   完成标准: Code vs glossary alignment verified; discrepancies resolved (code or glossary updated).

6. **Evaluate ADR need** — Check 3 criteria: hard to reverse? surprising without context? genuine trade-off? If all yes, create ADR.  
   完成标准: ADR created per ADR-FORMAT.md or explicit "criteria not met" note.

## B — Boundaries & Limits

**不适用**:
- Reading CONTEXT.md for vocabulary only (that's a one-line habit, not this skill)
- Pure implementation decisions (not domain terms)
- Bug diagnosis (use diagnosing-bugs)
- Code review (use code-review)

**局限**: CONTEXT.md drift if not actively maintained. ADR criteria subjective—teams may over/under-create. Multi-context adds CONTEXT-MAP.md overhead. Requires discipline to update inline, not batch.

## Related Skills

- **codebase-design** (module interfaces reference domain terms), **grill-with-docs** (invokes this skill during grilling), **improve-codebase-architecture** (may surface domain confusion), **tdd** (tests use domain terms), **implement** (code reflects domain model), **to-spec** (spec uses canonical terms)

## Audit

V1✓ V2✓ V3✓ | 2026-08-26 | Source: D:\outcome\self\upstream\mattpocock__skills\skills\engineering\domain-modeling\SKILL.md
Files in this package (3)
  • SKILL.md 6 KB
  • test-prompts.json 3 KB
  • test-results.md 1 KB

Versions

RepositoryScoreLicence
This page · natsummerance/agents98MIT
matteocodogno/wellforge100MIT
hootener/brain100MIT
zenobi-us/dotfiles100MIT
JamalLyons/Agent-Skills100MIT
FrancoStino/opencode-skills-collection100MIT
yuan88964/RelayStudio100MIT
Aysnc-Labs/skills100MIT
askgina/plugins100Apache-2.0

Database snapshot: 13.11.2026 · package version 9f40ae4b7c63 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100s-domain-modeling
    Build and sharpen a project's domain model. Use when domain terminology, relationships or rules change, when writing or editing a GLOSSARY.md, or when recording or editing an ADR.
  • 95workflow-domain-modeling
    Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
  • 100grill-with-docs
    A grilling session that stress-tests a plan against the project's documented domain model — sharpens fuzzy terminology, challenges it against the existing glossary, cross-references it with the code, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallize.…
  • 100matt-domain-modeling
    Build and sharpen a project's glossary and domain model, kept in the Language section of the nearest CLAUDE.md, with decisions recorded in docs/patterns/. Use when a term is fuzzy or contested, when adding to or editing the glossary, or when recording a design decision (an ADR).
  • 100ra-domain-modeling
    Actively build and sharpen a project's domain model, shared vocabulary (GLOSSARY.md), locked architectural invariants (research/INVARIANTS.md), and ADRs. Use when discussing codebase terminology, resolving overloaded words, or locking project rules.
  • 100grill-me
    Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.