Local files before sync with remote

This commit is contained in:
yangqianqian
2026-07-17 10:29:27 +08:00
commit 1dc354ef71
60 changed files with 4411 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 或字段。