@pigcloud/skills 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -71
- package/README.md +54 -76
- package/codex-commands/.codex-plugin/plugin.json +35 -0
- package/codex-commands/README.md +23 -0
- package/codex-commands/commands/analyze.md +22 -0
- package/codex-commands/commands/build.md +22 -0
- package/codex-commands/commands/design.md +22 -0
- package/codex-commands/commands/distill.md +21 -0
- package/codex-commands/commands/doc.md +22 -0
- package/codex-commands/commands/infra.md +21 -0
- package/codex-commands/commands/init.md +20 -0
- package/codex-commands/commands/kb.md +20 -0
- package/codex-commands/commands/perf.md +21 -0
- package/codex-commands/commands/prd.md +22 -0
- package/codex-commands/commands/review.md +22 -0
- package/codex-commands/commands/security.md +22 -0
- package/codex-commands/commands/test.md +21 -0
- package/codex-commands/commands/workflow.md +20 -0
- package/package.json +2 -2
- package/rules/coding/implementation.md +26 -31
- package/rules/product/project-context.md +28 -29
- package/skills/code-review/references/template-review.md +39 -214
- package/skills/domain-modeling/references/distillation-checklist.md +44 -152
- package/skills/feature-build/references/comment-specification.md +89 -102
|
@@ -1,31 +1,26 @@
|
|
|
1
|
-
# Coding Implementation Rules
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
- Implement only the confirmed scope.
|
|
6
|
-
- Keep the change small, reviewable, and verifiable.
|
|
7
|
-
- Preserve the agreed boundary while coding.
|
|
8
|
-
- Prefer one implementation path over speculative alternatives unless the task explicitly asks for options.
|
|
9
|
-
|
|
10
|
-
##
|
|
11
|
-
|
|
12
|
-
- Do not rewrite the spec-refinement while implementing.
|
|
13
|
-
- Do not widen the scope because implementation is difficult.
|
|
14
|
-
- Do not skip validation.
|
|
15
|
-
- Do not bundle unrelated cleanup into the same change unless it reduces risk.
|
|
16
|
-
|
|
17
|
-
##
|
|
18
|
-
|
|
19
|
-
- Does the code stay within scope?
|
|
20
|
-
- Can the result be validated locally?
|
|
21
|
-
- Is the implementation easy to review in one pass?
|
|
22
|
-
- Would the diff still make sense if the task title were removed?
|
|
23
|
-
|
|
24
|
-
##
|
|
25
|
-
|
|
26
|
-
- Trigger when the
|
|
27
|
-
|
|
28
|
-
## References
|
|
29
|
-
|
|
30
|
-
- `coding/index.md`
|
|
31
|
-
|
|
1
|
+
# Coding Implementation Rules
|
|
2
|
+
|
|
3
|
+
## 默认做法
|
|
4
|
+
|
|
5
|
+
- Implement only the confirmed scope.
|
|
6
|
+
- Keep the change small, reviewable, and verifiable.
|
|
7
|
+
- Preserve the agreed boundary while coding.
|
|
8
|
+
- Prefer one implementation path over speculative alternatives unless the task explicitly asks for options.
|
|
9
|
+
|
|
10
|
+
## 禁区
|
|
11
|
+
|
|
12
|
+
- Do not rewrite the spec-refinement while implementing.
|
|
13
|
+
- Do not widen the scope because implementation is difficult.
|
|
14
|
+
- Do not skip validation.
|
|
15
|
+
- Do not bundle unrelated cleanup into the same change unless it reduces risk.
|
|
16
|
+
|
|
17
|
+
## 检查
|
|
18
|
+
|
|
19
|
+
- Does the code stay within scope?
|
|
20
|
+
- Can the result be validated locally?
|
|
21
|
+
- Is the implementation easy to review in one pass?
|
|
22
|
+
- Would the diff still make sense if the task title were removed?
|
|
23
|
+
|
|
24
|
+
## 回放信号
|
|
25
|
+
|
|
26
|
+
- Trigger when the task is about implementing a confirmed change.
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
# Project Context Rules
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
- Capture what the current project already guarantees before rewriting the requirement.
|
|
6
|
-
- Separate product intent, existing project facts, and assumptions.
|
|
7
|
-
- Prefer current repo docs, release notes, and existing behavior over memory.
|
|
8
|
-
- Record conflicts when product demand does not match current project facts.
|
|
9
|
-
|
|
10
|
-
##
|
|
11
|
-
|
|
12
|
-
- Do not turn implementation details into product requirements.
|
|
13
|
-
- Do not ignore existing project facts when they are available.
|
|
14
|
-
- Do not hide conflicts behind vague wording.
|
|
15
|
-
|
|
16
|
-
##
|
|
17
|
-
|
|
18
|
-
- Are product intent and project facts separated?
|
|
19
|
-
- Are conflicts and open questions explicit?
|
|
1
|
+
# Project Context Rules
|
|
2
|
+
|
|
3
|
+
## 项目上下文规则
|
|
4
|
+
|
|
5
|
+
- Capture what the current project already guarantees before rewriting the requirement.
|
|
6
|
+
- Separate product intent, existing project facts, and assumptions.
|
|
7
|
+
- Prefer current repo docs, release notes, and existing behavior over memory.
|
|
8
|
+
- Record conflicts when product demand does not match current project facts.
|
|
9
|
+
|
|
10
|
+
## 禁区
|
|
11
|
+
|
|
12
|
+
- Do not turn implementation details into product requirements.
|
|
13
|
+
- Do not ignore existing project facts when they are available.
|
|
14
|
+
- Do not hide conflicts behind vague wording.
|
|
15
|
+
|
|
16
|
+
## 检查项
|
|
17
|
+
|
|
18
|
+
- Are product intent and project facts separated?
|
|
19
|
+
- Are conflicts and open questions explicit?
|
|
20
20
|
- Does the output still work for spec-refinement?
|
|
21
|
-
- Is the project context based on current evidence?
|
|
22
|
-
|
|
23
|
-
##
|
|
24
|
-
|
|
25
|
-
- Trigger when the task needs product understanding aligned with the current project state.
|
|
26
|
-
|
|
27
|
-
## References
|
|
28
|
-
|
|
29
|
-
- `product/index.md`
|
|
30
|
-
|
|
21
|
+
- Is the project context based on current evidence?
|
|
22
|
+
|
|
23
|
+
## 触发信号
|
|
24
|
+
|
|
25
|
+
- Trigger when the task needs product understanding aligned with the current project state.
|
|
26
|
+
|
|
27
|
+
## References
|
|
28
|
+
|
|
29
|
+
- `product/index.md`
|
|
@@ -1,214 +1,39 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
| 依据 | [规则定义](references/rules.md#{ruleId}) |
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
### P1 问题(严重 - 必须修复)
|
|
45
|
-
|
|
46
|
-
#### 问题 #2
|
|
47
|
-
|
|
48
|
-
| 字段 | 内容 |
|
|
49
|
-
|------|------|
|
|
50
|
-
| 文件 | `{filePath}` |
|
|
51
|
-
| 行号 | {lineNumber} |
|
|
52
|
-
| 规则 | {ruleId}: {ruleName} |
|
|
53
|
-
| 类型 | MUST / NEVER |
|
|
54
|
-
| 问题 | {问题描述} |
|
|
55
|
-
| 代码 | `{问题代码片段}` |
|
|
56
|
-
| 修复 | `{修复建议}` |
|
|
57
|
-
| 依据 | [规则定义](references/rules.md#{ruleId}) |
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
### P2 问题(最佳实践 - 建议修复)
|
|
62
|
-
|
|
63
|
-
#### 问题 #3
|
|
64
|
-
|
|
65
|
-
| 字段 | 内容 |
|
|
66
|
-
|------|------|
|
|
67
|
-
| 文件 | `{filePath}` |
|
|
68
|
-
| 行号 | {lineNumber} |
|
|
69
|
-
| 规则 | {ruleId}: {ruleName} |
|
|
70
|
-
| 问题 | {问题描述} |
|
|
71
|
-
| 修复 | `{修复建议}` |
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
### P3 问题(建议改进)
|
|
76
|
-
|
|
77
|
-
#### 问题 #4
|
|
78
|
-
|
|
79
|
-
| 字段 | 内容 |
|
|
80
|
-
|------|------|
|
|
81
|
-
| 文件 | `{filePath}` |
|
|
82
|
-
| 规则 | {ruleId}: {ruleName} |
|
|
83
|
-
| 问题 | {问题描述} |
|
|
84
|
-
| 建议 | `{改进建议}` |
|
|
85
|
-
|
|
86
|
-
---
|
|
87
|
-
|
|
88
|
-
## 跨模块影响分析
|
|
89
|
-
|
|
90
|
-
### 变更文件
|
|
91
|
-
|
|
92
|
-
| 文件 | 类型 | 模块 |
|
|
93
|
-
|------|------|------|
|
|
94
|
-
| `{filePath}` | 新增 / 修改 / 删除 | `{module}` |
|
|
95
|
-
|
|
96
|
-
### 影响模块
|
|
97
|
-
|
|
98
|
-
| 模块 | 影响类型 | 变更内容 | 建议 |
|
|
99
|
-
|------|----------|----------|------|
|
|
100
|
-
| `{module}` | API变更 / 依赖变更 / 数据变更 | `{content}` | `{suggestion}` |
|
|
101
|
-
|
|
102
|
-
### 依赖关系图
|
|
103
|
-
|
|
104
|
-
```
|
|
105
|
-
{moduleA} → {moduleB} → {moduleC}
|
|
106
|
-
↓
|
|
107
|
-
{moduleD}
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
## 安全检查结果
|
|
113
|
-
|
|
114
|
-
| 维度 | 结果 | 问题数 | 详情 |
|
|
115
|
-
|------|------|--------|------|
|
|
116
|
-
| 硬编码 | ✅ / ⚠️ | {count} | {details} |
|
|
117
|
-
| 日志 | ✅ / ⚠️ | {count} | {details} |
|
|
118
|
-
| SQL注入 | ✅ / ⚠️ | {count} | {details} |
|
|
119
|
-
| XSS | ✅ / ⚠️ | {count} | {details} |
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## 性能检查结果
|
|
124
|
-
|
|
125
|
-
| 维度 | 结果 | 问题数 | 详情 |
|
|
126
|
-
|------|------|--------|------|
|
|
127
|
-
| N+1查询 | ✅ / ⚠️ | {count} | {details} |
|
|
128
|
-
| Left-fuzzy LIKE | ✅ / ⚠️ | {count} | {details} |
|
|
129
|
-
| 批量操作 | ✅ / ⚠️ | {count} | {details} |
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## Rubric 自检结果
|
|
134
|
-
|
|
135
|
-
| 规则 | 结果 | 说明 |
|
|
136
|
-
|------|------|------|
|
|
137
|
-
| R1: 渐进式加载 | ✅ / ⚠️ | {message} |
|
|
138
|
-
| R2: 规则覆盖率 | ✅ / ⚠️ | {coverage}% |
|
|
139
|
-
| R3: 位置准确性 | ✅ / ⚠️ | 偏差 {diff} 行 |
|
|
140
|
-
| R4: 可解释性 | ✅ / ⚠️ | {coverage}% |
|
|
141
|
-
| R5: 问题分级 | ✅ / ⚠️ | {message} |
|
|
142
|
-
| R6: 跨模块影响 | ✅ / ⚠️ | {message} |
|
|
143
|
-
| R7: 输出格式 | ✅ / ⚠️ | {message} |
|
|
144
|
-
| R8: 确认节点 | ✅ / ⚠️ | {message} |
|
|
145
|
-
| R9: Pre-Delivery | ✅ / ⚠️ | {message} |
|
|
146
|
-
| R10: 反 Slop | ✅ / ⚠️ | {message} |
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## 评审结论
|
|
151
|
-
|
|
152
|
-
| 结论 | 条件 | 当前状态 |
|
|
153
|
-
|------|------|----------|
|
|
154
|
-
| ✅ 通过 | 0 个 P0/P1 问题 | {status} |
|
|
155
|
-
| ⚠️ 需修改后通过 | 有 P0/P1 问题,修复后重新评审 | {status} |
|
|
156
|
-
| ❌ 不通过 | >5 个 P0 问题 | {status} |
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
## 下一步建议
|
|
161
|
-
|
|
162
|
-
1. {修复建议1}
|
|
163
|
-
2. {修复建议2}
|
|
164
|
-
3. 执行 `mvn compile -q` 验证编译
|
|
165
|
-
4. 执行 `mvn test -q` 验证测试
|
|
166
|
-
5. 重新提交评审
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
## 评审人
|
|
171
|
-
|
|
172
|
-
| 字段 | 内容 |
|
|
173
|
-
|------|------|
|
|
174
|
-
| 评审工具 | pig-skills code-review v{version} |
|
|
175
|
-
| 评审模型 | {model} |
|
|
176
|
-
| Rubric 评分 | {score}/10 |
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
*报告生成时间: {timestamp}*
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
---
|
|
184
|
-
|
|
185
|
-
## 使用说明
|
|
186
|
-
|
|
187
|
-
### 填充变量
|
|
188
|
-
|
|
189
|
-
| 变量 | 来源 |
|
|
190
|
-
|------|------|
|
|
191
|
-
| `{datetime}` | 当前时间 |
|
|
192
|
-
| `{count}` | Git diff 文件数 |
|
|
193
|
-
| `{add}` / `{del}` | Git diff 行数统计 |
|
|
194
|
-
| `{duration}` | 评审耗时 |
|
|
195
|
-
| `{coverage}` | lint 脚本计算 |
|
|
196
|
-
| `{score}` | Rubric 自检结果 |
|
|
197
|
-
| `{filePath}` | 变更文件路径 |
|
|
198
|
-
| `{lineNumber}` | lint 脚本定位 |
|
|
199
|
-
| `{ruleId}` | 规则ID(MUST-001 等) |
|
|
200
|
-
| `{ruleName}` | 规则名称 |
|
|
201
|
-
| `{module}` | 模块名称(包路径) |
|
|
202
|
-
|
|
203
|
-
### 输出位置
|
|
204
|
-
|
|
205
|
-
```
|
|
206
|
-
.agents/specs/REVIEW-{timestamp}.md
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
### 命名规则
|
|
210
|
-
|
|
211
|
-
```
|
|
212
|
-
REVIEW-{YYYYMMDD}-{HHMMSS}.md
|
|
213
|
-
例如: REVIEW-20260616-143000.md
|
|
214
|
-
```
|
|
1
|
+
# 代码审查报告模板
|
|
2
|
+
|
|
3
|
+
> 代码审查结果的标准输出格式,用于保持结论清晰、可复核、可归档。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 基本信息
|
|
8
|
+
|
|
9
|
+
| 字段 | 说明 |
|
|
10
|
+
|------|------|
|
|
11
|
+
| 审查时间 | {datetime} |
|
|
12
|
+
| 审查对象 | {repo / branch / pr} |
|
|
13
|
+
| 审查人 | {reviewer} |
|
|
14
|
+
| 审查范围 | {diff / files / modules} |
|
|
15
|
+
|
|
16
|
+
## 结论摘要
|
|
17
|
+
|
|
18
|
+
- 总体结论:{pass / pass with comments / fail}
|
|
19
|
+
- 风险等级:{low / medium / high}
|
|
20
|
+
- 是否建议合并:{yes / no}
|
|
21
|
+
|
|
22
|
+
## 发现项
|
|
23
|
+
|
|
24
|
+
| 等级 | 文件 | 问题 | 建议 |
|
|
25
|
+
|------|------|------|------|
|
|
26
|
+
| P0 | {file} | {issue} | {fix} |
|
|
27
|
+
| P1 | {file} | {issue} | {fix} |
|
|
28
|
+
| P2 | {file} | {issue} | {fix} |
|
|
29
|
+
|
|
30
|
+
## 验证信息
|
|
31
|
+
|
|
32
|
+
- 已运行的检查:{lint / test / manual check}
|
|
33
|
+
- 未覆盖的风险:{gaps}
|
|
34
|
+
- 需要补充的证据:{evidence}
|
|
35
|
+
|
|
36
|
+
## 备注
|
|
37
|
+
|
|
38
|
+
- 如果没有发现问题,也要明确说明“未发现阻断项”。
|
|
39
|
+
- 如果有假设,要明确标注假设来源。
|
|
@@ -1,152 +1,44 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- [ ] `
|
|
12
|
-
- [ ] `
|
|
13
|
-
- [ ] `
|
|
14
|
-
- [ ] `
|
|
15
|
-
- [ ] `
|
|
16
|
-
- [ ] `
|
|
17
|
-
- [ ] `
|
|
18
|
-
- [ ] `
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- [ ]
|
|
23
|
-
- [ ]
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
- [ ]
|
|
31
|
-
- [ ]
|
|
32
|
-
- [ ]
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- [ ]
|
|
37
|
-
- [ ]
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- [ ] 每个接口有"输入"表(参数/类型/必填/说明/约束)
|
|
46
|
-
- [ ] 每个接口有"输出"表(字段/说明)
|
|
47
|
-
- [ ] 每个接口有"关键规则"段落
|
|
48
|
-
- [ ] 每条规则有执行方标注
|
|
49
|
-
- [ ] 每个接口有"涉及的数据对象"链接
|
|
50
|
-
- [ ] 每个接口有"可能的错误"表
|
|
51
|
-
- [ ] 每个接口有"调用示例"(真实可用)
|
|
52
|
-
- [ ] 每个接口有"写权限分级"
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
### 明细层检查
|
|
57
|
-
|
|
58
|
-
- [ ] Schema 表有"对应领域属性/API字段"列
|
|
59
|
-
- [ ] 枚举表有 ✅/⚠️ 标记
|
|
60
|
-
- [ ] 错误码表有"AI 应如何向用户解释"列
|
|
61
|
-
- [ ] 冲突清单有"本体/需求"、"代码"、"AI 影响"三列
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
### 交叉引用检查
|
|
66
|
-
|
|
67
|
-
- [ ] 所有链接使用 `[[slug]]` 格式
|
|
68
|
-
- [ ] 对象↔接口↔Schema 三者互相链接
|
|
69
|
-
- [ ] 无明显断链(链接目标不存在但未标记"待补")
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
### 命名规范检查
|
|
74
|
-
|
|
75
|
-
- [ ] 文件名使用小写 kebab-case
|
|
76
|
-
- [ ] API 字段沿用代码实际返回的命名
|
|
77
|
-
- [ ] 枚举值使用业务实际值(含中文)
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
## 动态验证清单
|
|
82
|
-
|
|
83
|
-
### 读/查询场景
|
|
84
|
-
|
|
85
|
-
| 测试 | 验证内容 | 结果 |
|
|
86
|
-
|------|----------|------|
|
|
87
|
-
| 名称→ID 解析 | AI 能正确调用主数据接口解析名称 | ✅/❌ |
|
|
88
|
-
| 查询参数 | AI 能正确构造查询参数 | ✅/❌ |
|
|
89
|
-
| 结果解读 | AI 能正确解读返回结果 | ✅/❌ |
|
|
90
|
-
|
|
91
|
-
### 写/录入场景
|
|
92
|
-
|
|
93
|
-
| 测试 | 验证内容 | 结果 |
|
|
94
|
-
|------|----------|------|
|
|
95
|
-
| 必填字段 | AI 能识别必填字段并提示用户 | ✅/❌ |
|
|
96
|
-
| 用例编排 | AI 能按正确顺序调用接口 | ✅/❌ |
|
|
97
|
-
| 服务端维护字段 | AI 不传入服务端维护字段 | ✅/❌ |
|
|
98
|
-
| 回显确认 | 写操作前回显给用户确认 | ✅/❌ |
|
|
99
|
-
|
|
100
|
-
### 统计场景
|
|
101
|
-
|
|
102
|
-
| 测试 | 验证内容 | 结果 |
|
|
103
|
-
|------|----------|------|
|
|
104
|
-
| 口径理解 | AI 能正确理解统计接口口径 | ✅/❌ |
|
|
105
|
-
| 参数构造 | AI 能正确构造统计参数 | ✅/❌ |
|
|
106
|
-
|
|
107
|
-
### 规则反例场景
|
|
108
|
-
|
|
109
|
-
| 测试 | 验证内容 | 结果 |
|
|
110
|
-
|------|----------|------|
|
|
111
|
-
| 规则预判 | AI 能预判违反规则的错误 | ✅/❌ |
|
|
112
|
-
| 错误解释 | AI 能根据 error-codes.md 解释错误 | ✅/❌ |
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
## 验证结论
|
|
117
|
-
|
|
118
|
-
| 检查项 | 通过数 | 总数 | 通过率 |
|
|
119
|
-
|--------|--------|------|--------|
|
|
120
|
-
| 目录结构 | | 13 | |
|
|
121
|
-
| 领域对象 | | 9 | |
|
|
122
|
-
| API 接口 | | 10 | |
|
|
123
|
-
| 明细层 | | 4 | |
|
|
124
|
-
| 交叉引用 | | 3 | |
|
|
125
|
-
| 命名规范 | | 3 | |
|
|
126
|
-
| 动态验证 | | 12 | |
|
|
127
|
-
|
|
128
|
-
**总通过率要求**: >= 90%
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
## 验证记录
|
|
133
|
-
|
|
134
|
-
| 日期 | 验证人 | 通过率 | 备注 |
|
|
135
|
-
|------|--------|--------|------|
|
|
136
|
-
| | | | |
|
|
137
|
-
|
|
138
|
-
---
|
|
139
|
-
|
|
140
|
-
## 发现的问题
|
|
141
|
-
|
|
142
|
-
1.
|
|
143
|
-
2.
|
|
144
|
-
3.
|
|
145
|
-
|
|
146
|
-
---
|
|
147
|
-
|
|
148
|
-
## 修复计划
|
|
149
|
-
|
|
150
|
-
| 问题 | 修复方案 | 状态 |
|
|
151
|
-
|------|----------|------|
|
|
152
|
-
| | | 待修复/已修复 |
|
|
1
|
+
# 领域提炼检查清单
|
|
2
|
+
|
|
3
|
+
> 用于检查领域建模提炼结果是否满足规范、是否可交接、是否可复用。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 目录结构
|
|
8
|
+
|
|
9
|
+
- [ ] `distilled/` 目录已创建
|
|
10
|
+
- [ ] `README.md` 已说明提炼目标
|
|
11
|
+
- [ ] `00-overview.md` 已说明 AI 的关键约束
|
|
12
|
+
- [ ] `01-glossary.md` 已收录术语
|
|
13
|
+
- [ ] `domain/_index.md` 已建立索引
|
|
14
|
+
- [ ] `domain/<name>.md` 每个核心域有独立文件
|
|
15
|
+
- [ ] `api/_index.md` 已建立接口索引
|
|
16
|
+
- [ ] `api/<group>/<name>.md` 每个接口组都有独立文件
|
|
17
|
+
- [ ] `reference/schema/*.md` 字段级 Schema 已整理
|
|
18
|
+
- [ ] `reference/enums.md` 枚举已整理
|
|
19
|
+
|
|
20
|
+
## 内容检查
|
|
21
|
+
|
|
22
|
+
- [ ] 领域边界已明确
|
|
23
|
+
- [ ] 核心概念已抽取
|
|
24
|
+
- [ ] 术语表与代码命名一致
|
|
25
|
+
- [ ] 当前事实与推断已区分
|
|
26
|
+
- [ ] 关键不变量已记录
|
|
27
|
+
|
|
28
|
+
## 证据检查
|
|
29
|
+
|
|
30
|
+
- [ ] 每个结论都有代码、文档或会议纪要支撑
|
|
31
|
+
- [ ] 关键例子可追溯到原始来源
|
|
32
|
+
- [ ] 没有把猜测写成事实
|
|
33
|
+
|
|
34
|
+
## 交接检查
|
|
35
|
+
|
|
36
|
+
- [ ] 输出可以交给 `spec-refinement`
|
|
37
|
+
- [ ] 输出可以交给 `technical-design`
|
|
38
|
+
- [ ] 输出可以交给 `knowledge-capture`
|
|
39
|
+
- [ ] 文件命名遵守 kebab-case
|
|
40
|
+
|
|
41
|
+
## 备注
|
|
42
|
+
|
|
43
|
+
- 如果某个目录暂时没有内容,也要在索引里明确说明。
|
|
44
|
+
- 如果有未确认项,单独列在“待确认”区域,不要隐藏。
|