Files
company-kb/.claude/commands/kb-status.md
2026-07-17 10:29:27 +08:00

17 lines
847 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: 知识库健康仪表盘——源计数 / type 分布 / 红线观察
---
生成知识库现状概览。
1. **源计数**P5 向量库红线观察点红线≈100 源/几百页):
- 统计 `projects/` 下知识页总数:`find projects -name '*.md' -not -name '_index.md' | wc -l`
- 项目数:`ls -d projects/*/ | grep -v _example | wc -l`
2. **type 分布**:按 frontmatter `type` 分组计数grep 各页 type 字段)。
3. **健康**:跑 `python3 tools/kb-lint-fm.py` 取错误/警告数。
4. **status 分布**seed / developing / mature 各多少。
5.`meta/stats.md` 附上人工记录的观察。
6. 输出一张简表;若知识页数逼近 ~几百页,提示"接近规模红线,考虑启用 P5 向量库导航层(见 docs/05-路线图.md"。
只读操作,不改任何文件。