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:
yangqianqian
2026-07-16 18:24:39 +08:00
commit 84f7950589
60 changed files with 4410 additions and 0 deletions

14
.claude/commands/kb-new.md Executable file
View File

@@ -0,0 +1,14 @@
---
description: 建新项目骨架OKF 合规目录 + _index.md
argument-hint: <项目代号>
---
为项目代号 `$ARGUMENTS` 建骨架。
1. 若给了代号,运行:`bash tools/kb-init.sh $ARGUMENTS`
- 未给代号则先问用户要一个英文短代号(如 `power-bid``clientA`)。
2. 脚本会建出 `projects/<代号>/{_index.md,docs/,decisions/,conversations/,assets/}``_index.md``type: project` + `status: seed` 的 OKF frontmatter。
3.`python3 tools/kb-lint-fm.py projects/$ARGUMENTS` 确认新骨架合规exit 0
4. 简报:建了哪些文件,提示用户下一步用 `/kb-ingest $ARGUMENTS <源>` 录入资料。
字段规范一律以 `meta/kb-contract.yaml` 为准,不要硬编码 type 或字段。