Initial commit: company-kb framework
- 完整的知识库框架(P0-P5 路线图) - 12篇治理文档 - 工具脚本(kb-init.sh, kb-lint-fm.py, feishu-sync.py, kb-bot) - 7个 Claude 命令 - 示例项目和测试项目(wanniu-l1) - 契约文件(meta/kb-contract.yaml) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
16
.claude/commands/kb-status.md
Executable file
16
.claude/commands/kb-status.md
Executable file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
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)"。
|
||||
|
||||
只读操作,不改任何文件。
|
||||
Reference in New Issue
Block a user