agentleFS
lstmemerylstmemery/skills/skills/domain-modeling/SKILL.md

domain-modeling

Skill1 starsChanged 8 days agoMITView on GitHub

Resolve domain terms, scenarios, ownership, boundaries, context maps, and ADRs; routine vocabulary lookup stays in project docs.

195 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-ts-deep-modules, decision-mapping and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • liufeng1976Skill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 43 projects that use this

  • FabienDehopreSkill

    decision-mapping

    Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.

    Also in 8 projects that use this

  • LesaniSkill

    writing-beats

    Shape an article as a journey of beats, choose-your-own-adventure style. The user picks a starting beat from the raw material, you write only that beat, then offer options for where to pivot next, beat by beat, until the article reaches a natural end. Use when the user has raw material and wants to assemble it as a narrative rather than an argument.

    Also in 62 projects that use this

  • RoentekSkill

    loop-me

    Grill me about specs for the workflows I want to build, within this workspace.

    Also in 56 projects that use this

  • LesaniSkill

    writing-shape

    Take a markdown file of raw material and shape it into an article through a conversational session — drafting candidate openings, growing the piece paragraph by paragraph, arguing about format (lists, tables, callouts, quotes) at each step. Use when the user has a pile of notes, fragments, or a rough draft and wants help turning it into something publishable.

    Also in 60 projects that use this

  • AWSSkill

    to-questionnaire

    Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

    Also in 89 projects that use this

  • +1 more from Lesani

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 183 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Locate: Read root CONTEXT-MAP.md when present, then the relevant CONTEXT.md, ADRs, requirements, and code/tests.

    line 18
  2. Very specific:

    Validate: Search symbols, tests, examples, and docs.

    line 20
  3. Distinctive:

    Record: Update the glossary immediately when a term resolves.

    line 21
  4. Distinctive:

    Check: Run terminology, link, build, or test checks available in the repository.

    line 22
  5. Very specific:

    Keep CONTEXT.md implementation-free: define what a concept is, its _Avoid_ aliases, and its context.

    line 28
  6. Distinctive:

    Treat past domain events as immutable observations.

    line 30
  7. Distinctive:

    Create only the file and directory needed by the first resolved term or qualifying decision.

    line 44

“Common” is measured: kept by at least 6 in 10 of the 183 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Domain Modeling

Contract

Job: turn ambiguous domain language into a shared, context-scoped model aligned with behavior and code.

Evidence order: domain-expert or maintainer decisions, requirements and scenarios, code and tests, then inference. Preserve uncertainty when evidence is missing.

Success: the context and owner are identified (or ambiguity is recorded and asked); changed terms/events have definitions, scope, useful confidence/lifecycle, a normal scenario, and an edge case; invariants and lifecycle rules have verifiable records; relevant glossary/map/ADR files are updated as decisions crystallise; code, tests, scenarios, and docs were searched and every mismatch has a disposition; proposed aggregates, invariants, ownership, and architectural mappings have human confirmation before acceptance.

Loop

  1. Locate. Read root CONTEXT-MAP.md when present, then the relevant CONTEXT.md, ADRs, requirements, and code/tests. Close with the relevant context and owner identified, or a recorded ambiguity to resolve before assigning ownership. Create files lazily.
  2. Discover. Extract terms, past events, commands, policies, and hypotheses. Close with normal and edge scenarios for changed terms/events and their relationships, plus relevant invariants, lifecycle rules, or consistency reasons. Use EventStorming or another collaborative workshop for complex cross-team flows only when its cost is justified.
  3. Validate. Search symbols, tests, examples, and docs. Check behavior rather than shared fields. Mark items proposed or accepted, with confidence when useful. On disagreement, stop acceptance, record the contradiction and resolution (or ask), and preserve alternatives that explain it.
  4. Record. Update the glossary immediately when a term resolves; read CONTEXT-FORMAT.md when creating or editing a glossary/map. For multiple contexts, update the map with source, target, purpose, translation owner, and synchronous or eventual consistency. Apply ADR eligibility; when a decision qualifies, use ADR-FORMAT.md.
  5. Check. Run terminology, link, build, or test checks available in the repository. Otherwise leave a dated manual check naming searched paths and evidence. Confirm affected code can discover its glossary or ADR.

A step closes only with evidence or an explicit blocker/ask. If expert confirmation is unavailable, leave the artifact proposed and name the reviewer.

Rules

  • Keep CONTEXT.md implementation-free: define what a concept is, its _Avoid_ aliases, and its context. Classes, columns, topics, protocols, behavior, invariants, scenarios, and integration contracts belong in dedicated records or ADRs linked from the glossary.
  • Be opinionated and concise. Add _Context_, _Owner_, _Confidence_, and _Lifecycle_/_Replaced by_ metadata when multiple contexts or a rename make them useful; omit empty ceremony. Shared fields do not establish shared meaning.
  • Treat past domain events as immutable observations. Label commands, policies, and hypotheses so discovery is not mistaken for an implementation contract.
  • CONTEXT-MAP.md is required for multi-context relationships and must be revisited when language, invariants, ownership, or non-functional needs change. Keep technology choices in ADRs.
  • AI may propose terms, events, and boundaries. Humans confirm accepted aggregates, invariants, ownership, and architectural mappings; never invent confidence.

ADR eligibility

Offer an ADR only when all three apply: changing the choice has meaningful cost, its rationale would surprise a future reader, and real alternatives were weighed. Boundary ownership/integration, aggregate consistency boundaries, durable technology, deliberate deviations, and invisible constraints can qualify. Routine naming and obvious choices remain ordinary documentation. Accepted ADRs are immutable; supersede them with a linked record. This section owns the gate for other skills and the format companion.

Create only the file and directory needed by the first resolved term or qualifying decision.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.