Command Palette

Search for a command to run...

Назад к скиллам
скилл № 04025

ubiquitous-language

Builds and maintains a ubiquitous language, the shared domain glossary from domain-driven design, out of what the team says and what the code names things…

БесплатноБез исполняемых скриптов
TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Установить ubiquitous-language в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Ubiquitous Language

Overview

A ubiquitous language is the vocabulary a team agrees to use everywhere for one part of the business: in conversation with domain experts, in tickets and documents, and in the names of classes, tables and endpoints. The term comes from Eric Evans's Domain-Driven Design. Its point is that nobody translates: when the practice manager says "appointment" and the code says Booking, every discussion carries a hidden conversion step, and bugs live in that step.

A language is valid inside a bounded context, the part of the system where one model applies. The same word may mean something else in another context, and that is allowed as long as the boundary is written down.

This skill produces one file, the glossary, and keeps it current. It collects the words in use, finds where they collide, proposes one name per concept, writes definitions a newcomer could apply, checks them by speaking scenarios, and lists what in the code no longer matches.

Instructions

1. Fix the context and find the sources

Look in the repository first: an existing glossary (docs/ubiquitous-language.md, GLOSSARY.md, docs/glossary.md, CONTEXT.md), domain documents, ticket exports, and the code itself. If a glossary exists, update it in place; do not start a second one.

Ask the user only what the files cannot tell you:

  1. Which part of the business is this for? (One bounded context per glossary section: "scheduling", not "the clinic".)
  2. Who has the final word on a term: which domain expert, and are they in this conversation?
  3. Are there words the team already argues about?

2. Harvest candidate terms

From speech and writing (the conversation, meeting notes, tickets, UI copy): collect nouns for things and roles, verbs for what people do, past-tense phrases for things that happened ("checked in", "written off"), and adjectives used as states ("overdue", "on hold"). Keep the speaker with each word; who says it matters later.

From code, count the words inside type names so the dominant vocabulary shows up:

grep -rhoE "\b(class|interface|type|enum)\s+[A-Z][A-Za-z0-9]+" src --include="*.ts" \
  | awk '{print $2}' | sed -E 's/([a-z0-9])([A-Z])/\1 \2/g' | tr ' ' '\n' \
  | sort | uniq -c | sort -rn | head -40

Adapt the pattern to the language (class and def for Python, type and struct for Go). Also read the database schema, API routes, enum values and status codes; states often exist only as numbers or one-letter codes there. Ignore framework words (Service, Controller, Job, Input).

3. Find the collisions

Sort every candidate into concepts and label what you find:

Finding How it shows up What to do
Synonyms several words, one concept: "booking", "reservation", "slot" choose one name (step 4)
Overloaded word one word, several concepts: "visit" as the plan and as what happened give each concept its own name
Different contexts the word is right in two parts of the business with different meanings keep both, one per context, and say how they relate
Container word "item", "record", "data", "info", "entry", "manager" ask "which kind?" until a domain noun appears
Technical leak "row", "payload", "DTO", "flag", "cron job" used in domain talk replace with the business name; if the business has no name for it, leave it out
Unnamed concept people describe it with a phrase every time propose a name and mark it as proposed
Speech and code disagree experts say one word, the code another record under code drift (step 7)
Coded state status = 3, 'P' name every state and what moves a thing between them

4. Choose the name

When several words compete, prefer them in this order:

  1. the word the domain experts use with each other
  2. the word in contracts, regulation, or the screens customers see
  3. the more specific word over the more general one
  4. the word already dominant in the code, as a tiebreaker only

The other words go in the "Do not say" column, so readers searching for them find the right term. The agent proposes and the expert decides: when the conversation does not settle a choice, write it under open questions with the options and a recommendation. Never record a guess as a definition.

5. Write the definitions

  • Shape: "A [broader kind] that [what sets it apart]." One or two sentences.
  • Use plain words and other glossary terms, capitalised. No implementation words: no "table", "id", "JSON".
  • State the edges: when the thing starts to exist, when it stops, and the nearest thing it is not.
  • Add one example with real-looking values.
  • Give each term a kind, using the standard DDD names where they fit: Entity (has identity over time), Value Object (defined by its values), Domain Event (something that happened), plus Role, Action and State.
  • Check: could a new colleague decide, for a real case in front of them, whether it is one or not?

6. Test the lang

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • _scores.json

FAQ

Что делает скилл ubiquitous-language?

Builds and maintains a ubiquitous language, the shared domain glossary from domain-driven design, out of what the team says and what the code names things. Use when someone says "define our domain terms", "build a glossary", "we use three words for the same thing", "what do we actually mean by booking", "create a ubiquitous language", or starts a DDD or domain-modelling effort. Harvests candidate terms from conversation, documents and code, resolves synonyms and overloaded words, writes short definitions with examples, tests them in spoken scenarios, and saves a glossary file with open questions and a code-rename list.

Как установить скилл ubiquitous-language?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ubiquitous-language запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ubiquitous-language с