Initial commit: ai4se-harness-suite
Import harness suite (skills, installers, overnight-runner, docs) as a fresh history for InspireChina. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
42
harness-installer/templates/docs/designs/README.md
Normal file
42
harness-installer/templates/docs/designs/README.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# 设计文档(事实)
|
||||
|
||||
本目录描述系统 **当前的真实状态**,必须与代码保持一致。
|
||||
|
||||
## 子目录
|
||||
|
||||
| 路径 | 内容 |
|
||||
|---|---|
|
||||
| `api.yaml` | OpenAPI 格式的接口定义 |
|
||||
| `db-schema.md` | 数据库表结构与索引说明 |
|
||||
| `domain-model.md` | 领域模型:聚合、实体、值对象、关系 |
|
||||
| `topic/` | 单点技术专题(鉴权、状态机、业务规则、数据字典……) |
|
||||
|
||||
## 维护规则
|
||||
|
||||
- 改了接口 → 更新 `api.yaml`
|
||||
- 改了表结构 → 更新 `db-schema.md`
|
||||
- 改了业务规则 → 更新 `topic/businessrule.md`
|
||||
- 改了数据字典 → 更新 `topic/data-dict.md`
|
||||
- 新增专题 → 在 `topic/` 下新建文件,并在本表登记
|
||||
|
||||
## 模板
|
||||
|
||||
```markdown
|
||||
# {{专题名称}}
|
||||
|
||||
## 背景
|
||||
|
||||
{{为什么需要这个专题}}
|
||||
|
||||
## 方案
|
||||
|
||||
{{具体做法}}
|
||||
|
||||
## 取舍
|
||||
|
||||
{{考虑过但放弃的方案及原因}}
|
||||
|
||||
## 影响
|
||||
|
||||
{{对其他模块的影响}}
|
||||
```
|
||||
31
harness-installer/templates/docs/designs/topic/README.md
Normal file
31
harness-installer/templates/docs/designs/topic/README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# 技术专题(Topic)
|
||||
|
||||
每个文件解决 **一个** 技术问题:为什么这么做、怎么做、放弃了什么。
|
||||
|
||||
## 已有专题
|
||||
|
||||
| 文件 | 专题 |
|
||||
|---|---|
|
||||
| `businessrule.md` | 业务规则引擎:规则定义、配置、注册、查询 |
|
||||
| `data-dict.md` | 数据字典:枚举定义、注册方式、对外查询接口 |
|
||||
| `error-code.md` | 错误码规范:分段、命名、映射到 HTTP 状态码 |
|
||||
| `security.md` | 安全设计:认证、鉴权、密码、越权防护 |
|
||||
| `state-machine.md` | 状态机:状态、流转、守卫方法、非法流转处理 |
|
||||
|
||||
## 新增专题
|
||||
|
||||
1. 新建 `{topic}.md`
|
||||
2. 用下面的模板
|
||||
3. 在上面的表格中登记
|
||||
|
||||
```markdown
|
||||
# {{专题名称}}
|
||||
|
||||
## 背景
|
||||
|
||||
## 方案
|
||||
|
||||
## 取舍
|
||||
|
||||
## 影响
|
||||
```
|
||||
Reference in New Issue
Block a user