Files
company-kb/.claude/commands/kb-new.md
yangqianqian 84f7950589 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>
2026-07-16 18:24:39 +08:00

15 lines
759 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: 建新项目骨架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 或字段。