domain-modeling
Actively build and refine a project's domain model as you design. Use when the user wants to nail down domain terminology or a ubiquitous language, capture an architectural decision as an ADR, or when another skill needs to keep the domain model current.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-06
- Stars
- ★ 7
- Forks
- 0
01 前言 Front Matter
- name
- domain-modeling
- description
- Actively build and refine a project's domain model as you design. Use when the user wants to nail down domain terminology or a ubiquitous language, capture an architectural decision as an ADR, or when another skill needs to keep the domain model current.
02 资源文件 2
- 参考文档ADR-FORMAT.md2.6 KB
- 参考文档CONTEXT-FORMAT.md2.2 KB
03 SKILL.md 正文
Domain Modeling
Shape the project's domain model while you design — this is the active craft, not passive reading. You challenge loose terms, invent scenarios that expose edge cases, and commit the glossary and decisions to disk the instant they firm up. (Simply consulting CONTEXT.md to reuse a word is not this skill; that's a habit any skill already has. Reach for this skill when you are changing the model, not merely reading it.)
File structure
Most repositories hold a single context:
/
├── CONTEXT.md
├── docs/
│ └── adr/
│ ├── 0001-event-sourced-orders.md
│ └── 0002-postgres-for-write-model.md
└── src/
A CONTEXT-MAP.md at the root signals multiple contexts. The map records where each one lives:
/
├── CONTEXT-MAP.md
├── docs/
│ └── adr/ ← system-wide decisions
├── src/
│ ├── ordering/
│ │ ├── CONTEXT.md
│ │ └── docs/adr/ ← context-specific decisions
│ └── billing/
│ ├── CONTEXT.md
│ └── docs/adr/
Create these files lazily, the moment you have something worth writing — not before. Write the first CONTEXT.md when you resolve the first term; create docs/adr/ when the first ADR earns its place.
During the session
Hold terms against the glossary
The moment the user reaches for a word that clashes with the language already in CONTEXT.md, stop and name the clash: "Your glossary pins 'cancellation' to X, but you're describing Y — which do you mean?"
Sharpen fuzzy language
When a word is vague or carries two meanings at once, offer a single precise term to replace it: "You said 'account' — is that the Customer or the User? They're not the same thing."
Pressure-test with concrete scenarios
As domain relationships come up, ground them in specific cases. Invent scenarios that push on the edges and force the user to state exactly where one concept ends and the next begins.
Reconcile claims against the code
When the user explains how something behaves, check whether the code tells the same story. Surface any mismatch: "The code cancels a whole Order, but you just said a partial cancellation is allowed — which one holds?"
Record terms in CONTEXT.md as you go
Resolve a term, write it down immediately. Never let these pile up for a later pass — capture each one in the moment. Follow the layout in CONTEXT-FORMAT.md.
Keep CONTEXT.md free of any implementation detail. It is not a spec, a scratch pad, or a home for design decisions — it is a glossary, and only that.
Reach for an ADR sparingly
Propose an ADR only when all three hold:
- Hard to reverse — undoing the choice later would cost real effort
- Surprising without context — a future reader will ask "why on earth did they do it this way?"
- Born of a genuine trade-off — real alternatives existed and you chose one for specific reasons
Miss any one of the three and there's no ADR to write. Follow the layout in ADR-FORMAT.md.
04 同仓库更多 Skills
writing-great-skills
Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.
technical-writing
House style for technical writing — the voice, sentence craft, formatting, and user-facing-copy rules that make docs and product text clear, direct, and consistent. Use when writing or editing a README, docs, a spec, release notes, a changelog, help text, or any error/CLI/UI copy a person reads; when reviewing a diff that touches prose or messages; or when a project needs a writing standard. Reference-heavy mechanics live in REFERENCE.md.
teach
Teach the user a new skill or concept, within this workspace.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
grilling
Interrogate the user's plan or design one decision at a time until you both share the same understanding. Use when the user wants to pressure-test an idea before building it, or reaches for any 'grill' trigger phrase.
grill-me
A relentless, one-decision-at-a-time interview that sharpens a plan or design.