feat: 引入 docs/architecture 高阶意图与 arch skills

项目准备阶段落地 C4/ADR 一句话表/术语与核心领域模型;glossary 与 ADR 迁入 architecture,domain-model 区分 Core 与 as-built;新增 tl-arch-plan、tl-arch-sync-back、ba-arch-sync-back,并同步 harness 与团队指南。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ning-inspire
2026-11-17 18:02:38 +08:00
parent fc7521d6f9
commit dc2f329258
75 changed files with 966 additions and 484 deletions

View File

@@ -0,0 +1,32 @@
# 高阶架构(Architecture)
项目级 **意图架构**:产品与领域怎么定、系统与容器怎么切、跨迭代决策记在哪。
| 相对目录 | 内容 | 主责 |
|---|---|---|
| [`tech/`](./tech/) | C4 上下文/容器、ADR | TL(`tl-arch-plan`) |
| [`business/`](./business/) | 术语表、产品定义、核心领域模型、迭代规划 | BA + TL |
## 与其它文档的关系
| 目录 | 性质 |
|---|---|
| **本目录** | 高阶意图(项目准备阶段产出) |
| `docs/features/` | 过程:迭代 HLD、feature spec/plan |
| `docs/facts/` | as-built 事实;领域模型 as-built 在 `facts/domain-model.md` |
| `docs/standards/` | 怎么写(含 ADR **写法**) |
## 索引
### 技术
- [C4 系统上下文 / 集成](./tech/c4-context.md)
- [C4 容器](./tech/c4-container.md)
- [ADR 一句话表](./tech/adr.md)
### 业务
- [统一语言术语表](./business/glossary.md)
- [产品定义与高阶概念](./business/product.md)
- [核心领域模型(Core)](./business/core-domain-model.md)
- [迭代规划](./business/iterations.md)

View File

@@ -0,0 +1,21 @@
# 核心领域模型(Core)
> **意图侧**:只维护 **核心聚合 + 关键字段**,不写全量字段/行为/端口。
> **as-built**(全量)见 `docs/facts/domain-model.md`;漂移时用 `ba-arch-sync-back` 对齐。
## 核心聚合
| 聚合 | 职责 | 关键字段 |
|---|---|---|
| TODO | TODO | TODO |
## 关系(示意)
```
TODO
```
## 不在本文写的内容
- 全量字段表、方法签名、校验细节 → `facts/domain-model.md` / feature `plan.md`
- 值对象枚举清单、基础设施端口 → as-built 或 ADR / tech-topic

View File

@@ -0,0 +1,8 @@
# 术语表
> 项目级统一语言(Ubiquitous Language),落在 `docs/architecture/business/`。
> 由 `ba-write-spec` 维护;漂移时用 `ba-arch-sync-back`。不按 feature 拆分。
| 中文 | 英文 | 说明(可选) |
|---|---|---|
| 备注 | remark | 示例行;无术语时可改为一行「无」 |

View File

@@ -0,0 +1,15 @@
# 迭代规划
> 项目级里程碑。各迭代详细规格与 HLD 在 `docs/features/iterationN/`。
## 里程碑
| 阶段 | 意图范围 |
|---|---|
| M1 | TODO |
## 迭代索引
| 迭代 | 目录 | 状态 |
|---|---|---|
| (尚无) | — | — |

View File

@@ -0,0 +1,19 @@
# 产品定义与高阶概念
> 项目级产品边界。迭代范围见 [`iterations.md`](./iterations.md);核心领域见 [`core-domain-model.md`](./core-domain-model.md)。
## 一句话
TODO:产品一句话定位。
## 用户 / 端
| 端 | 角色 | 核心能力 |
|---|---|---|
| TODO | TODO | TODO |
## 本期不做
- TODO
术语权威列表见 [`glossary.md`](./glossary.md)。

View File

@@ -0,0 +1,7 @@
# 架构决策(ADR)
跨迭代技术取舍,**每条一句话**。实现细节见 `docs/facts/tech-topic/`。写法见 [`../../standards/adr.md`](../../standards/adr.md)。
| 编号 | 决策(一句话) | 状态 |
|---|---|---|
| (尚无) | — | — |

View File

@@ -0,0 +1,30 @@
# C4 容器
> 层次:Container。维护:`tl-arch-plan`。迭代细化见各 `docs/features/iterationN/high-level-design.md`。
## 说明
TODO:列出可独立部署/运行的单元及其职责。
## 图
```plantuml
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml
LAYOUT_WITH_LEGEND()
Person(user, "用户")
System_Boundary(system, "本系统") {
Container(web, "Web", "TODO", "TODO")
Container(api, "API", "TODO", "TODO")
ContainerDb(db, "DB", "TODO", "TODO")
}
Rel(user, web, "使用", "HTTPS")
Rel(web, api, "API", "HTTPS")
Rel(api, db, "读写", "JDBC")
@enduml
```

View File

@@ -0,0 +1,25 @@
# C4 系统上下文(集成架构)
> 层次:Context。维护:`tl-arch-plan`。
## 说明
TODO:一句话描述本系统与外部用户/系统的边界。
## 图
```plantuml
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml
LAYOUT_WITH_LEGEND()
Person(user, "用户", "TODO")
System(system, "本系统", "TODO")
System_Ext(ext, "外部系统", "TODO")
Rel(user, system, "使用", "HTTPS")
Rel(system, ext, "集成", "HTTPS")
@enduml
```