agentleFS
chiruu12chiruu12/claude-skills-template/.claude/skills/ubiquitous-language/SKILL.md

ubiquitous-language

Skill0 starsChanged 7 months agoMITView on GitHub

Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".

68 other projects use a version of this, 54 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use obsidian-vault, batch-grill-me and 5 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.
  • simo97Skill

    obsidian-vault

    Also in 34 projects that use this

  • boyingliu01Skill

    batch-grill-me

    A relentless interview that asks every frontier question at once, round by round. Thin alias of `grilling` (#540) — upstream mattpocock/skills absorbed this protocol into grilling; XP-Gate keeps this name as the sprint-flow Phase 2 entry point so orchestration docs stay stable.

    Also in 5 projects that use this

  • HK-hubSkill

    prd-to-plan

    Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in ./plans/. Use when user wants to break down a PRD, create an implementation plan, plan phases from a PRD, or mentions "tracer bullets".

    Also in 9 projects that use this

  • simo97Skill

    migrate-to-shoehorn

    Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

    Also in 32 projects that use this

  • AnasX7Skill

    scaffold-exercises

    Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

    Also in 30 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 24 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 6 are common, 2 are distinctive, and 2 are very specific to this project.

  • 6

    Common

    Most of the 64 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Write a UBIQUITOUS_LANGUAGE.md file with this structure:

    line 24
  2. Common:

    Be opinionated: When multiple words exist for the same concept, pick the best one and list the others as aliases to avoid.

    line 62
  3. Common:

    Flag conflicts explicitly: If a term is used ambiguously in the conversation, call it out in the "Flagged ambiguities" section with a clear …

    line 63
  4. Common:

    Show relationships: Use bold term names and express cardinality where obvious.

    line 66
  5. Common:

    Group terms into multiple tables: when natural clusters emerge (e.g.

    line 68
  6. Common:

    When invoked again in the same conversation:

    line 87
  7. Very specific:

    Read the existing UBIQUITOUS_LANGUAGE.md

    line 89
  8. Common:

    Update definitions if understanding has evolved

    line 91
  9. Distinctive:

    DO NOT: write multi-sentence definitions — one sentence max, define what it IS

    line 123
  10. Distinctive:

    DO NOT: leave ambiguities unresolved — pick the canonical term, list the rest as aliases to avoid

    line 124

“Common” is measured: kept by at least 6 in 10 of the 64 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

Ubiquitous Language

Extract and formalize domain terminology from the current conversation into a consistent glossary, saved to a local file.

Process

  1. Scan the conversation for domain-relevant nouns, verbs, and concepts
  2. Identify problems:
    • Same word used for different concepts (ambiguity)
    • Different words used for the same concept (synonyms)
    • Vague or overloaded terms
  3. Propose a canonical glossary with opinionated term choices
  4. Write to UBIQUITOUS_LANGUAGE.md in the working directory using the format below
  5. Output a summary inline in the conversation

Output Format

Write a UBIQUITOUS_LANGUAGE.md file with this structure:

# Ubiquitous Language

## Order lifecycle

| Term        | Definition                                              | Aliases to avoid      |
| ----------- | ------------------------------------------------------- | --------------------- |
| **Order**   | A customer's request to purchase one or more items      | Purchase, transaction |
| **Invoice** | A request for payment sent to a customer after delivery | Bill, payment request |

## People

| Term         | Definition                                  | Aliases to avoid       |
| ------------ | ------------------------------------------- | ---------------------- |
| **Customer** | A person or organization that places orders | Client, buyer, account |
| **User**     | An authentication identity in the system    | Login, account         |

## Relationships

- An **Invoice** belongs to exactly one **Customer**
- An **Order** produces one or more **Invoices**

## Example dialogue

> **Dev:** "When a **Customer** places an **Order**, do we create the **Invoice** immediately?"
> **Domain expert:** "No — an **Invoice** is only generated once a **Fulfillment** is confirmed. A single **Order** can produce multiple **Invoices** if items ship in separate **Shipments**."
> **Dev:** "So if a **Shipment** is cancelled before dispatch, no **Invoice** exists for it?"
> **Domain expert:** "Exactly. The **Invoice** lifecycle is tied to the **Fulfillment**, not the **Order**."

## Flagged ambiguities

- "account" was used to mean both **Customer** and **User** — these are distinct concepts: a **Customer** places orders, while a **User** is an authentication identity that may or may not represent a **Customer**.

Rules

  • Be opinionated. When multiple words exist for the same concept, pick the best one and list the others as aliases to avoid.
  • Flag conflicts explicitly. If a term is used ambiguously in the conversation, call it out in the "Flagged ambiguities" section with a clear recommendation.
  • Only include terms relevant for domain experts. Skip the names of modules or classes unless they have meaning in the domain language.
  • Keep definitions tight. One sentence max. Define what it IS, not what it does.
  • Show relationships. Use bold term names and express cardinality where obvious.
  • Only include domain terms. Skip generic programming concepts (array, function, endpoint) unless they have domain-specific meaning.
  • Group terms into multiple tables when natural clusters emerge (e.g. by subdomain, lifecycle, or actor). Each group gets its own heading and table. If all terms belong to a single cohesive domain, one table is fine — don't force groupings.
  • Write an example dialogue. A short conversation (3-5 exchanges) between a dev and a domain expert that demonstrates how the terms interact naturally. The dialogue should clarify boundaries between related concepts and show terms being used precisely.
<example>

Example dialogue

Dev: "How do I test the sync service without Docker?"

Domain expert: "Provide the filesystem layer instead of the Docker layer. It implements the same Sandbox service interface but uses a local directory as the sandbox."

Dev: "So sync-in still creates a bundle and unpacks it?"

Domain expert: "Exactly. The sync service doesn't know which layer it's talking to. It calls exec and copyIn — the filesystem layer just runs those as local shell commands."

</example>

Re-running

When invoked again in the same conversation:

  1. Read the existing UBIQUITOUS_LANGUAGE.md
  2. Incorporate any new terms from subsequent discussion
  3. Update definitions if understanding has evolved
  4. Re-flag any new ambiguities
  5. Rewrite the example dialogue to incorporate new terms

Common Rationalizations

ShortcutWhy It Fails
"Everyone knows what we mean, we don't need a glossary"They don't. Ambiguous terms cause silent misalignment — the frontend team thinks "user" means the logged-in person, the backend thinks it means the API consumer. The glossary prevents this.
"Let's just use whatever terms are in the code"Code terms drift without a glossary anchoring them. Different modules may already use different words for the same concept. The glossary is the source of truth that code should conform to.
"We can figure out the aliases later"Aliases accumulate. The longer you wait, the more "transaction" vs "order" vs "purchase" spreads through code, docs, and conversations. Flagging aliases early is 10x cheaper than renaming later.
"The example dialogue is overkill"Definitions tell you what terms mean in isolation. Dialogues show how terms interact — cardinality, lifecycle relationships, edge cases. They catch ambiguities that definitions miss.

Red Flags

  • Same word appears in multiple definition rows with different meanings — ambiguity not resolved, just documented
  • Glossary includes programming terms (array, endpoint, handler) — these aren't domain terms
  • No "Aliases to avoid" column — synonyms will proliferate unchecked
  • Example dialogue is absent or doesn't probe edge cases — glossary is untested

Verification Checklist

  • Every domain-relevant term from the conversation is captured
  • Each term has a one-sentence definition (what it IS, not what it does)
  • Ambiguous terms flagged with clear recommendation
  • Aliases to avoid listed for each term
  • Example dialogue demonstrates term interactions and edge cases
  • UBIQUITOUS_LANGUAGE.md written to working directory

Anti-patterns

  • DO NOT include programming concepts unless they have domain-specific meaning — "endpoint" is not a domain term, "Order" is
  • DO NOT write multi-sentence definitions — one sentence max, define what it IS
  • DO NOT leave ambiguities unresolved — pick the canonical term, list the rest as aliases to avoid
  • DO NOT skip the example dialogue — it's the test case for your glossary

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.