Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ubiquitous-language

БесплатноБез исполняемых скриптовНе проверен

One ubiquitous language per bounded context, with a repository-declared glossary as the naming authority and explicit decisions for language changes. Covers…

citypaulот citypaul★ 764 звезды на GitHub

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

Ubiquitous Language: Evolution by Decision, Never Drift

A change in the language is a change to the model (Evans). One ubiquitous language per bounded context — apply a single language to a whole enterprise and you will fail (Vernon). This skill makes the repository's declared glossary the naming authority. The language is expected to evolve, but only through an explicit, recorded decision.

The documented agent failure mode this kills: terminology drift — processUserData vs processUserInfo near-duplicates, "booking" quietly becoming "reservation" mid-feature. Prompt-level glossaries steer; deterministic gates enforce.

Resource Load when...
resources/language-protocol.md A term is missing, awkward, or duplicated — running the five steps and recording model-changing decisions
resources/glossary-format.md Creating or editing a glossary — repository schema, optional Contextive example, context scoping, aliases, bootstrap paths

Where the Language Lives

  1. The declared glossary is the naming authority for its bounded context. Canonical spelling and capitalization matter whenever the concept is named. Use the repository's chosen file location and schema; do not impose a different glossary format.
  2. Domain code and executable examples consume and exercise that language. Identifiers, branded types, DSL verbs, and test titles should use the canonical terms.
  3. The rest of the maintained system propagates approved terms through schemas, APIs, documentation, diagrams, fixtures, and generated clients. Public wire vocabulary may need deliberate versioning even after an internal rename.
  4. Speech, plans, research, comments, historical documents, and existing code expose candidate vocabulary and possible drift. They are evidence for a proposal, not authority that can silently canonize a term.

Absence from the glossary means not yet agreed. It does not automatically approve or forbid a word.

Working names must be visibly provisional and name how they will be ratified or replaced. Do not let a placeholder spread as if it were approved language.

The Language Protocol (the centrepiece)

Silent evolution is forbidden. Every new, changed, or suspect domain term runs five steps — full guidance in resources/language-protocol.md:

  1. DETECT — you need a term the glossary lacks; you spot a synonym or near-duplicate (one word per concept; two phrases must mean two concepts); a term feels awkward in conversation; or a targeted identifier lint flags an unknown domain word. A missing term is not yet agreed.
  2. PROPOSE — never adopt. STOP and present to the human: the term, a proposed definition, the bounded context, an example sentence, and the alternatives considered. Use the host's structured question mechanism when available; otherwise ask one concise plain-text question with a recommendation. An agent never coins a domain term silently.
  3. DECIDE — the human approves, renames, or rejects. Cheap because it's one term at a time with a recommendation.
  4. RECORD — glossary entry added or updated in the same reviewable change; rejected or replaced aliases point to the owning bounded context and canonical term. Renames that change the model, not just a label, use the repository's decision-record mechanism; routine additions need only the glossary diff.
  5. RENAME — in that order: decision first, then refactor code, tests, and glossary together in one reviewable change. Boundary rule: rename freely inside the bounded context; the published language at context boundaries — APIs, events, schemas — is versioned deliberately, never casually renamed.

Mechanical Enforcement

Where a mechanical enforcement layer is installed (lint rules generated from the glossary), it runs inside the agent's loop, scoped to domain paths — and enforces:

  • Project-declared vocabulary smells — a repository may choose to flag vague suffixes such as Manager, Helper, or Impl in selected domain paths. Treat them as prompts for review, never universal bans: a canonical glossary term overrides a generic smell list.
  • Glossary-driven identifier check (the flagship, novel-in-TypeScript rule) — split identifiers into words; validate domain words against the context's glossary using token classes: glossary terms / deprecated aliases (flagged with their replacement) / path-scoped technical stopwords / exempt framework identifiers.
  • Test-title check — titles validated against the glossary; deprecated aliases rejected naming the canonical replacement.
  • DSL vocabulary check — a new acceptance-DSL verb either exists in the glossary or triggers the protocol.
  • Context-scoped aliases and forms — validate aliases within their owning context; enforce canonical case, plurals, identifier forms, and public wire names where the glossary declares them.
  • Language scope only — delegate architecture and dependency enforc
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

resources/glossary-format.mdresources/language-protocol.md

FAQ

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

One ubiquitous language per bounded context, with a repository-declared glossary as the naming authority and explicit decisions for language changes. Covers the five-step language protocol (detect, propose, decide, record, rename), optional glossary-driven lint ratchets, and safe context-wide renames. Use when naming domain concepts, when a term is missing from or fights the glossary, when spotting synonyms or near-duplicates, when bootstrapping a glossary, or when renaming across a bounded context. For DDD building blocks see domain-driven-design; for acceptance-DSL vocabulary use the project's relevant installed skill.

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

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

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

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

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

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