Loading...
Loading...
Compare original and translation side by side
DOMAIN.mdDOMAIN.mddocs/domain/DOMAIN.mdassets/templates/DOMAIN.mddocs/domain/DOMAIN.mdassets/templates/DOMAIN.md[UNKNOWN: <term>][RELATIONSHIP UNCLEAR: <entity-a> → <entity-b>][RULE INFERRED: <description>][UNKNOWN: <term>][RELATIONSHIP UNCLEAR: <entity-a> → <entity-b>][RULE INFERRED: <description>]## 📋 Proposed Domain Updatesundefined## 📋 提议的领域更新undefinedReview these and copy any confirmed items into your DOMAIN.md
请审核这些内容,并将确认的条目复制到你的DOMAIN.md中
[term][term]
The human reviews this, edits as needed, and manually updates DOMAIN.md. This keeps the human as domain authority.
---
人工审核后,按需编辑并手动更新DOMAIN.md。这样可确保人工始终是领域的权威。
---| Tier | What It Contains | When It's Loaded | Typical Size |
|---|---|---|---|
| Tier 1 — Core | Project overview, terminology glossary, entity names (one-liners only), business rules table, user roles table | Always, at session start | 80–120 lines |
| Tier 2 — Working Context | Full entity descriptions (lifecycle, notes, edge cases), full flow step-by-steps, relationship map, integration points | On demand, when the session touches that entity or flow | 30–80 lines per file |
| Tier 3 — Archive | Changelog, resolved open questions, data migration notes, vendor-specific details | On explicit request, or when reviewing project history | Variable |
| Tier | 包含内容 | 加载时机 | 典型规模 |
|---|---|---|---|
| Tier 1 — 核心层 | 项目概述、术语表、实体名称(仅一行描述)、业务规则表、用户角色表 | 始终在会话开始时加载 | 80–120行 |
| Tier 2 — 工作上下文层 | 完整的实体描述(生命周期、备注、边缘情况)、完整的流程步骤说明、关系图、集成点 | 按需加载,当会话涉及该实体或流程时 | 每个文件30–80行 |
| Tier 3 — 归档层 | 变更日志、已解决的待解决问题、数据迁移说明、供应商特定细节 | 明确请求时加载,或在回顾项目历史时 | 规模可变 |
## Project Overview## Domain Boundaries## Terminology Glossary## Entity Registry## State Models## Business Rules## User Roles## Stakeholder Map## Open Questions## Detail Files## 项目概述## 领域边界## 术语表## 实体注册表## 状态模型## 业务规则## 用户角色## 利益相关者图谱## 待解决问题## 详情文件1. Read root DOMAIN.md (Tier 1 — always)
↓
2. Understand the current task
↓
3. Determine which entities/flows are relevant
↓
4. Load only those Tier 2 files
↓
5. Work — loading additional Tier 2 files if the task expands
↓
6. Propose updates — specifying which file each update belongs todocs/domain/flows/pm-renewal.mddocs/domain/entities/pm-renewal.mddocs/domain/flows/lead-distribution.mddocs/domain/entities/customer.md1. 读取根目录DOMAIN.md(Tier 1——始终加载)
↓
2. 理解当前任务
↓
3. 确定相关的实体/流程
↓
4. 仅加载这些Tier 2文件
↓
5. 开展工作——如果任务扩展,加载额外的Tier 2文件
↓
6. 提出更新建议——指定每个更新所属的文件docs/domain/flows/pm-renewal.mddocs/domain/entities/pm-renewal.mddocs/domain/flows/lead-distribution.mddocs/domain/entities/customer.mdundefinedundefinedDOMAIN.mdDOMAIN.mddocs/domain/entities/pm-renewal.mddocs/domain/entities/pm-renewal.mdpriceAdjustmentPercentpriceAdjustmentPercentdocs/domain/flows/engineering-review.mddocs/domain/flows/engineering-review.mddocs/domain/archive/changelog.mddocs/domain/archive/changelog.mdundefinedundefinedMAJOR.MINOR> **Version:** 1.5
> **Last updated:** 2026-04-06 (Session 30)
> **Changes:** +Commission Report entity, +BR-013–015, updated Quote-to-Close flowMAJOR.MINOR> **Version:** 1.5
> **Last updated:** 2026-04-06 (Session 30)
> **Changes:** +Commission Report entity, +BR-013–015, updated Quote-to-Close flowassets/templates/DOMAIN.mdassets/templates/DOMAIN.md| Section | Tier | Purpose |
|---|---|---|
| 1 | What the app does, who uses it, primary goals |
| 1 | What's in scope, what's supporting, what's excluded |
| 1 | Internal jargon mapped to plain definitions |
| 1 (names) / 2 (details) | Business objects with attributes and descriptions |
| 1 | Valid statuses, types, and state transitions for entities |
| 2 | How entities connect to each other |
| 2 | Named business processes with step-by-step info flow |
| 1 | Constraints, validations, edge cases |
| 2 | External systems, APIs, data sources |
| 1 | Who uses the system and what they can do |
| 1 | Named people, their relationship to the system, concerns, involvement timing |
| 1 | Unresolved ambiguities — reviewed and cleared over time |
| 3 | What was learned and when |
| 章节 | 层级 | 用途 |
|---|---|---|
| 1 | 应用功能、用户群体、主要目标 |
| 1 | 包含范围、支持范围、排除内容 |
| 1 | 内部术语与通俗定义的映射 |
| 1(名称)/ 2(详情) | 带有属性和描述的业务对象 |
| 1 | 实体的有效状态、类型和状态转换 |
| 2 | 实体间的关联方式 |
| 2 | 命名业务流程及分步信息流 |
| 1 | 约束、验证规则、边缘情况 |
| 2 | 外部系统、API、数据源 |
| 1 | 系统用户及其权限 |
| 1 | 命名人员、与系统的关系、关注点、介入时机 |
| 1 | 未解决的模糊点——随时间审核并清除 |
| 3 | 知识积累的时间线 |
your-project/
├── DOMAIN.md ← Tier 1: Core index (always loaded)
├── docs/
│ └── domain/
│ ├── entities/ ← Tier 2: One file per major entity
│ │ ├── quote.md
│ │ ├── customer.md
│ │ ├── product.md
│ │ └── ...
│ ├── flows/ ← Tier 2: One file per business process
│ │ ├── quote-to-close.md
│ │ ├── pm-renewal.md
│ │ └── ...
│ ├── relationships.md ← Tier 2: Full relationship map
│ ├── integrations.md ← Tier 2: External system details
│ └── archive/ ← Tier 3: Historical records
│ ├── changelog.md
│ └── resolved-questions.md
└── ... (rest of your project)## Detail Filesundefinedyour-project/
├── DOMAIN.md ← Tier 1: 核心索引(始终加载)
├── docs/
│ └── domain/
│ ├── entities/ ← Tier 2: 每个主要实体对应一个文件
│ │ ├── quote.md
│ │ ├── customer.md
│ │ ├── product.md
│ │ └── ...
│ ├── flows/ ← Tier 2: 每个业务流程对应一个文件
│ │ ├── quote-to-close.md
│ │ ├── pm-renewal.md
│ │ └── ...
│ ├── relationships.md ← Tier 2: 完整关系图
│ ├── integrations.md ← Tier 2: 外部系统详情
│ └── archive/ ← Tier 3: 历史记录
│ ├── changelog.md
│ └── resolved-questions.md
└── ... (项目其他内容)## 详情文件undefined| File | Contents |
|---|---|
| Quote entity — lifecycle, attributes, status workflow |
| Customer/Account entity — parent-child, territory assignment |
| Full quote lifecycle from opportunity to installation |
| PM contract renewal process |
| Complete entity relationship map |
| Salesforce, Watertight, Procore, vendor portals |
| Session-by-session learning history |
---| 文件 | 内容 |
|---|---|
| Quote实体——生命周期、属性、状态工作流 |
| Customer/Account实体——父子关系、区域分配 |
| 从商机到安装的完整Quote生命周期 |
| PM合同续费流程 |
| 完整的实体关系图 |
| Salesforce、Watertight、Procore、供应商门户 |
| 逐会话的知识积累历史 |
---references/seed-questions.mdreferences/seed-questions.mdREAD DOMAIN.md (+ relevant Tier 2 files if split)
↓
DO WORK (flag unknowns inline)
↓
PROPOSE UPDATES (specify target file if split)
↓
HUMAN REVIEWS & APPROVES
↓
HUMAN UPDATES DOMAIN.md (or detail files)
↓
(next session reads updated files)读取DOMAIN.md(如果是拆分模式,还读取相关Tier 2文件)
↓
开展工作(实时标记未知内容)
↓
提出更新建议(如果是拆分模式,指定目标文件)
↓
人工审核并批准
↓
人工更新DOMAIN.md(或详情文件)
↓
(下一次会话读取更新后的文件)Sessions 1–3: Single DOMAIN.md, ~60–80 lines (Tier 1 only)
Sessions 4–10: Single DOMAIN.md, ~100–200 lines (Tier 1 + 2 mixed)
Sessions 10+: Split into index + detail files (Tier 1 / 2 / 3 separated)
Mature project: Full three-tier structure with archive"The domain file is at [N] lines now — it covers [N] entities and [N] flows in detail. Want me to split it into a core index file with separate detail files? Each session would load just the parts relevant to what we're working on, and nothing is lost."
docs/domain/entities/[name].mddocs/domain/flows/[name].mddocs/domain/archive/changelog.md## Detail Files会话1–3: 单个DOMAIN.md,约60–80行 (仅Tier 1)
会话4–10: 单个DOMAIN.md,约100–200行 (Tier 1 + 2混合)
会话10+: 拆分为索引+详情文件 (Tier 1 / 2 / 3分离)
成熟项目: 包含归档层的完整三层结构“领域文件现在有[N]行——详细涵盖了[N]个实体和[N]个流程。需要我将其拆分为核心索引文件和多个详情文件吗?每次会话只会加载与当前工作相关的部分,不会丢失任何信息。”
docs/domain/entities/[name].mddocs/domain/flows/[name].mddocs/domain/archive/changelog.md## 详情文件assets/templates/DOMAIN.mdreferences/seed-questions.mdreferences/entity-template.mdreferences/anti-patterns.mdassets/templates/DOMAIN.mdreferences/seed-questions.mdreferences/entity-template.mdreferences/anti-patterns.md