agentleFS
zen-solutions-devzen-solutions-dev/zen-agent-skills/.agents/skills/domain-language/SKILL.md

domain-language

Skill2 starsChanged 8 days agoMITView on GitHub

Keeps a project's shared language: adds settled terms to its glossary and records a decision as an ADR only when it is hard to reverse, surprising, and a real trade-off. Use when a term is settled or contested, when writing or editing GLOSSARY.md or an ADR, or when grill settles a term mid-interview. Reports a glossary-versus-code mismatch and offers the rename; never renames code.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    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. Distinctive:

    Keep the target repository's ubiquitous language: one word per concept, written down the moment it is settled, so the next session starts …

    line 13
  2. Very specific:

    Look before creating anything.

    line 48
  3. Very specific:

    Ask the person when discovery finds several candidates.

    line 52
  4. Distinctive:

    Challenge it against the glossary: If the glossary already defines the word differently, ask which meaning holds.

    line 68
  5. Distinctive:

    Test it in sentences: Before settling a name, write three or four real sentences the project will say with it (from a spec, a task, a log …

    line 74
  6. Very specific:

    Write each settled term as it lands, not in a batch at the end.

    line 98
  7. Distinctive:

    When this run created the glossary, nothing points at it yet, and a glossary no session reads does not do its job.

    line 131

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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-language

Keep the target repository's ubiquitous language: one word per concept, written down the moment it is settled, so the next session starts from it instead of re-learning the jargon. Keep its decision records too, so a settled, expensive argument is not reopened by someone who never saw it.

This skill writes into the target repository, so the files it writes follow that repository's conventions (its AGENTS.md, or whatever it uses instead). This kit's house style governs only your own report.

When to use

  • grill settles a term mid-interview and hands it here (see One term from grill).
  • A grilling session closes with terms in its decisions record that no glossary took.
  • The person or the code uses one word for two things, or two words for one thing.
  • Someone asks to write or edit the glossary, or to record a decision.

Reading the glossary for vocabulary is not this skill: any skill can do that. This skill is for changing the language.

One term from grill

A term has settled only when the person chose it or confirmed it; with nobody present to do either, it is deferred, reported as deferred, and not written. When grill sends one term the moment it settles, run steps 1 to 3 for that term alone and go back to the interview: step 1 only once per interview, step 2's challenges only where the interview has not already put them to the person, and step 3 writes the entry now. An ADR candidate the term raises is noted for step 4 at the interview's close, not argued mid-round. Report the term written in one line inside the interview; the full step 5 report waits for the close.

Done when the term is in the glossary or deferred with a reason, and the interview has resumed.

Procedure

1. Find what exists

Look before creating anything. When the repository has docs/agents/zen.md, its glossary and adr_dir keys name both places (none means the repository has none yet); use each key it sets and say so. A key the file does not set, or sets to a value outside its allowed set, is discovered instead, and so is a path it names that does not exist, saying that the configured path was missing. Ask the person when discovery finds several candidates. When the block does not parse or names a newer config_version, use none of it and say that python .quests/validate.py (.tasks/validate.py where the tracker keeps its old name) shows why. The glossary may be GLOSSARY.md, docs/glossary.md, a "Terminology" section of a README or AGENTS.md, or a glossary per bounded context with a map file at the root. Decision records may be docs/adr/, docs/decisions/, adr/, a numbered series under another name, or no directory at all: many repositories record decisions in each quest file's Decisions section and keep the reasoning in a rationale directory (docs/rationale/). Use what you find, in its format; that convention is where step 4 writes.

Done when you can name the glossary file and where decisions are recorded, or state that each does not exist yet.

2. Settle each term

For each candidate term:

  • Challenge it against the glossary. If the glossary already defines the word differently, ask which meaning holds. If it defines the same concept under another word, ask which word wins.
  • Sharpen fuzzy words. An overloaded word ("account", "job", "event") gets a precise term per meaning, each with its boundary stated.
  • Probe with a concrete case. Invent the edge case that forces the boundary: "a refund on half an order: is that a Cancellation?"
  • Test it in sentences. Before settling a name, write three or four real sentences the project will say with it (from a spec, a task, a log line, a conversation with a user) and put them in a table beside each candidate name. The name that reads naturally in every sentence, and misleads in none, wins; show the table to the person with your recommendation. A glossary is the data model in words, so a name that fails a sentence fails in the code too.

    SentenceRefundReversal
    "A ___ on half an order leaves the rest shipped."readsmisleads: sounds like the whole order
    "The ___ failed at the bank."readsreads
  • Check the code and the plans. Grep for the term and its synonyms in the code, and in the task files and specs, where a term is used before any code exists. When either names the concept differently from the glossary, or uses the glossary's word for something else, record a finding: the term, the glossary's meaning, the other name, and where. Offer the rename as a recommended answer the person can accept: the code, or the plan, adopts the glossary's word, as its own quest written with new-quest. Never rename code or rewrite a plan in this run.

Done when every candidate is settled with the person, deferred with a reason, or dropped as a general programming word that does not belong (timeouts, retries, and error types are not domain terms).

3. Write the glossary

Write each settled term as it lands, not in a batch at the end. When no glossary exists, create one only now that the first term is settled, and ask the person where it should live first, as a question with a recommended answer: GLOSSARY.md at the root, unless step 1 found a convention that says otherwise. A new file at the root is the person's decision, not a default to take in silence. Format: references/glossary-format.md.

A glossary holds definitions only. Implementation detail, decisions, and to-do items go elsewhere.

Done when every settled term is in the glossary in the repository's format.

4. Earn an ADR, or do not write one

Offer a decision record only when the decision meets all three tests:

  1. Hard to reverse: changing course later costs real work.
  2. Surprising without context: a reader of the code would ask why it was done this way.
  3. A real trade-off: there were genuine alternatives, and one was chosen for stated reasons.

Missing any one, skip it: an easy reversal will simply be reversed, an unsurprising choice needs no defence, and a choice with no alternative has nothing to record. When one is earned and the person agrees, write it where step 1 found decisions recorded. When that is a record directory, create it only now if it does not exist, numbered after the highest existing record; when the repository records decisions in quest files, write it as a Decisions entry in the task that carries the work, and create no record directory. Format: references/adr-format.md.

Done when each candidate decision is recorded or explicitly judged not to earn a record.

5. Report

List the terms added or changed, the records written, the terms deferred, and every glossary-versus-code or glossary-versus-plan finding with its location and whether the person took the rename it offered. An empty findings list means you grepped and found none; say what you grepped for, and where.

When this run created the glossary, nothing points at it yet, and a glossary no session reads does not do its job. Offer one line for the repository's agent-instructions file (AGENTS.md, or what it uses instead) that tells an agent to read the glossary before naming things. Offer it; that file is the person's.

Done when every term touched in this run, every record written or declined, and every finding appears in the report, each finding with a file and line, and a newly created glossary has its pointer line offered.

Conventions

Your report follows the house style (house-style.md). What you may do with what you read follows core.md (full text: autonomy.md); a renamed symbol is outside every scope this skill has (A2).

Provenance

Adapted, in this kit's own words, from Matt Pocock's domain-modeling skill and its two format files: lazy creation, challenging terms against the glossary and the code, definitions-only glossaries, and the three-part test for an ADR are his. Finding an existing convention first, the finding-not-rename rule, and the report are this kit's.

source: https://raw.githubusercontent.com/mattpocock/skills/main/skills/engineering/domain-modeling/SKILL.md
author: Matt Pocock
license: MIT
retrieved: 2026-11-23
sha256: 7b925d7b1e341a2eeae33ad68a8a8c0ab889a38ddd22a7598e4c240e5a7556a3
note: fetched with urllib and digested with hashlib on the retrieved date, at 3,346 bytes. Adapted, not copied.

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.