agentleFS
popsiclelmlmpopsiclelmlm/skills-cn/skills/deprecated/ubiquitous-language/SKILL.md

ubiquitous-language

Skill0 starsChanged 6 months agoMITView on GitHub

从当前 conversation 中提取 DDD-style ubiquitous language glossary,标记 ambiguities 并提出 canonical terms。保存到 UBIQUITOUS_LANGUAGE.md。当用户想定义 domain terms、构建 glossary、强化 terminology、创建 ubiquitous language,或提到 "domain model" 或 "DDD" 时使用。

63 other projects use a version of this, 48 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use prd-to-plan and batch-grill-me.

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.
  • 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

  • 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

The file

Files
SKILL.md

Ubiquitous Language

从当前 conversation 中提取并 formalize domain terminology,形成一致 glossary,并保存到本地文件。

Process

  1. Scan the conversation,寻找 domain-relevant nouns、verbs 和 concepts
  2. Identify problems:
    • 同一个 word 用于不同 concepts(ambiguity)
    • 不同 words 用于同一个 concept(synonyms)
    • 模糊或 overloaded terms
  3. Propose a canonical glossary,给出有主见的 term choices
  4. Write to UBIQUITOUS_LANGUAGE.md,在 working directory 中使用下面格式写入
  5. Output a summary,在对话中 inline 输出

Output Format

写一个 UBIQUITOUS_LANGUAGE.md file,结构如下:

# 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. 当同一 concept 有多个词时,选择最佳词,并把其他词列为要避免的 aliases。
  • Flag conflicts explicitly. 如果某个 term 在 conversation 中被模糊使用,在 "Flagged ambiguities" section 中指出,并给出清晰 recommendation。
  • Only include terms relevant for domain experts. 跳过 module 或 class 名称,除非它们在 domain language 中有意义。
  • Keep definitions tight. 最多一句话。定义它是什么,而不是它做什么。
  • Show relationships. 使用加粗 term names,并在明显时表达 cardinality。
  • Only include domain terms. 跳过 generic programming concepts(array、function、endpoint),除非它们有 domain-specific meaning。
  • Group terms into multiple tables,当自然 clusters 出现时(例如按 subdomain、lifecycle 或 actor)。每组都有自己的 heading 和 table。如果所有 terms 属于单一 cohesive domain,一个 table 就可以,不要强行分组。
  • Write an example dialogue. 写一段 dev 和 domain expert 之间的短对话(3-5 exchanges),展示 terms 如何自然交互。Dialogue 应澄清 related concepts 之间的 boundaries,并展示 terms 被精确使用。
<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

在同一 conversation 中再次调用时:

  1. 读取现有 UBIQUITOUS_LANGUAGE.md
  2. 合并 subsequent discussion 中的任何 new terms
  3. 如果理解已演变,更新 definitions
  4. 重新标记任何 new ambiguities
  5. 重写 example dialogue,以包含 new terms

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.