@optima-chat/optima-agent 0.8.100 → 0.8.101
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.
|
@@ -21,17 +21,25 @@ description: "检查知识库健康度。当用户说'检查知识库'、'知识
|
|
|
21
21
|
|
|
22
22
|
## Lint 流程
|
|
23
23
|
|
|
24
|
-
1.
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
1. 先跑 CLI 自动扫描:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
kb-skills lint --dir ~/kb/<slug>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
CLI 会检测:断链、index.md 覆盖不足、index entry 格式错误、重复 index entry、孤立页面(无入链)、log.md heading 格式。输出为每行一条 issue,退出码 0 表示无问题。
|
|
31
|
+
|
|
32
|
+
2. 基于 CLI 报告 + 人工阅读,补充 CLI 无法检测的问题(见下方"要检查什么")
|
|
33
|
+
3. 按类型归类所有问题:链接、覆盖度、过时、矛盾、重复、页面规模或索引问题
|
|
27
34
|
4. 除非用户要求更大范围修复,否则只应用小而明确的修补
|
|
28
35
|
5. 清楚报告仍未解决的问题
|
|
29
36
|
6. 追加 `~/kb/PROGRESS.md`
|
|
30
37
|
7. `cd ~/kb && git add -A && git commit -m "[<slug>] lint: <发现N个问题,修复M个>"`
|
|
31
38
|
|
|
32
|
-
##
|
|
39
|
+
## 要检查什么(CLI 之外的人工检查)
|
|
40
|
+
|
|
41
|
+
CLI 已覆盖断链、孤立页面、index 覆盖和格式问题。以下需要人工判断:
|
|
33
42
|
|
|
34
|
-
- 没有入链或出链的页面
|
|
35
43
|
- 被反复提及但没有独立页面的实体或概念
|
|
36
44
|
- 本应并入 overview 的 analysis 页面,或反过来的情况
|
|
37
45
|
- 新来源进入后仍未更新的旧综述
|