ubiquitous-language by mattpocock/skills
npx skills add https://github.com/mattpocock/skills --skill ubiquitous-language从当前对话中提取并规范化领域术语,形成一致的术语表,保存到本地文件。
UBIQUITOUS_LANGUAGE.md 文件,使用以下格式编写一个 UBIQUITOUS_LANGUAGE.md 文件,结构如下:
# 统一语言
## 订单生命周期
| 术语 | 定义 | 应避免的别名 |
|------|-----------|-----------------|
| **订单** | 客户购买一个或多个商品的请求 | 购买、交易 |
| **发票** | 交付后发送给客户的付款请求 | 账单、付款请求 |
## 人员
| 术语 | 定义 | 应避免的别名 |
|------|-----------|-----------------|
| **客户** | 下订单的个人或组织 | 委托人、买家、账户 |
| **用户** | 系统中的认证身份 | 登录、账户 |
## 关系
- 一张**发票**只属于一个**客户**
- 一个**订单**产生一张或多张**发票**
## 示例对话
> **开发人员:** "当**客户**下**订单**时,我们是否立即创建**发票**?"
> **领域专家:** "不 — **发票**只有在**履约**确认后才生成。如果一个**订单**中的商品分多个**批次**发货,则可能产生多张**发票**。"
> **开发人员:** "那么,如果一个**批次**在发货前被取消,就不会有对应的**发票**存在?"
> **领域专家:** "完全正确。**发票**的生命周期与**履约**绑定,而不是与**订单**绑定。"
## 标记的歧义
- "账户" 被用来同时指代**客户**和**用户** — 这是两个不同的概念:**客户**下订单,而**用户**是一个认证身份,可能代表也可能不代表一个**客户**。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在同一对话中再次调用时:
UBIQUITOUS_LANGUAGE.md写入文件后,声明:
我已写入/更新
UBIQUITOUS_LANGUAGE.md。从现在开始,我将一致地使用这些术语。如果我偏离了这种语言,或者您注意到应该添加某个术语,请告诉我。
每周安装量
1.1K
仓库
GitHub 星标数
10.2K
首次出现
10 天前
安全审计
安装于
codex1.1K
cursor1.1K
opencode1.1K
github-copilot1.1K
gemini-cli1.1K
amp1.1K
Extract and formalize domain terminology from the current conversation into a consistent glossary, saved to a local file.
UBIQUITOUS_LANGUAGE.md in the working directory using the format belowWrite 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**.
When invoked again in the same conversation:
UBIQUITOUS_LANGUAGE.mdAfter writing the file, state:
I've written/updated
UBIQUITOUS_LANGUAGE.md. From this point forward I will use these terms consistently. If I drift from this language or you notice a term that should be added, let me know.
Weekly Installs
1.1K
Repository
GitHub Stars
10.2K
First Seen
10 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex1.1K
cursor1.1K
opencode1.1K
github-copilot1.1K
gemini-cli1.1K
amp1.1K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装