feat(knowledge): 统一维护项目文档落盘配置

This commit is contained in:
zhiye.sun
2026-09-03 13:30:14 +08:00
parent a6bd0fddcf
commit aa87b8cf0b
11 changed files with 73 additions and 7 deletions
@@ -16,6 +16,7 @@
- Agent 补充说明:`.craftkit/agents/index.md`
- 项目规范:`.craftkit/standards/index.md`
- 可复用知识:`.craftkit/knowledge/index.md`
- 共享设计文档:`.craftkit/designs/`;开发中过程文档使用 `.craftkit/project.json` 配置的 `documents.workRoot`。
## 工作约束
@@ -7,8 +7,9 @@
- `standards/`:项目自身的开发、测试、文档与 Git 规范。
- `standards/frontend/components.md`:经确认的前端组件来源、版本和契约证据索引。
- `knowledge/`:经过验证的技术决策和可复用经验。
- `designs/`:用户明确要求共享或正式交付的设计文档。
- `handoff/`:用户明确选择共享的任务交接。
- `local/`:当前工作副本的本地上下文,不进入 Git。
- `local/`:当前工作副本的过程文档和本地上下文,不进入 Git。
- `cache/`:可重新生成的缓存,不进入 Git。
共享资料不得包含凭据、个人机器绝对路径或无必要的业务数据。
@@ -12,7 +12,12 @@
"documentation": []
},
"commands": { "build": [], "test": [], "check": [] },
"documents": { "archiveRoot": "docs/archive", "archiveRules": [] },
"documents": {
"workRoot": ".craftkit/local/tasks",
"designRoot": ".craftkit/designs",
"archiveRoot": "docs/archive",
"archiveRules": []
},
"guidance": {
"agentIndex": ".craftkit/agents/index.md",
"standardsIndex": ".craftkit/standards/index.md",