一键导入
kb
知识库管理技能;知识库操作时读取;包含初始化、更新、同步策略
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
知识库管理技能;知识库操作时读取;包含初始化、更新、同步策略
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze phase entry. Aggregates scoring, follow-up, and scope-check rules; loads references/assets/scripts on demand.
Design phase entry. Aggregates plan-level selection, task breakdown, and package output rules; loads references/assets/scripts on demand.
Develop phase entry; routes task execution, state updates, KB sync, and plan close-out through references/assets/scripts.
Knowledge base management skill; read during KB operations; includes init, update, sync strategies
Document template collection; read when creating docs; includes all KB templates and plan file templates
需求分析阶段入口;聚合评分、追问与范围判定规则,按需加载 references/assets/scripts。
| name | kb |
| description | 知识库管理技能;知识库操作时读取;包含初始化、更新、同步策略 |
目标: 管理 .sopify/ 的 V2 分层知识,保持长期知识、活动方案与归档层职责清晰。
.sopify/
├── blueprint/
│ ├── README.md # 纯索引页,只保留索引必需区块
│ ├── background.md # 长期目标、范围、非目标
│ ├── design.md # 模块/宿主/目录/消费契约
│ └── tasks.md # 未完成长期项与明确延后项
├── project.md # 项目技术约定
├── user/
│ ├── preferences.md # 用户长期偏好
│ └── feedback.jsonl # 原始反馈事件
├── plan/
│ └── YYYYMMDD_feature/ # 当前活动方案
├── history/
│ ├── index.md # 归档索引
│ └── YYYY-MM/
└── state/ # protocol state
kb_init: full)首次 bootstrap 直接创建:
创建文件:
- .sopify/project.md
- .sopify/user/preferences.md
- .sopify/user/feedback.jsonl
- .sopify/blueprint/README.md
- .sopify/blueprint/background.md
- .sopify/blueprint/design.md
- .sopify/blueprint/tasks.md
注意:
plan/ 正文。history/index.md 或任何 archive。kb_init: progressive) [默认]按生命周期创建:
首次真实项目触发:
- .sopify/project.md
- .sopify/user/preferences.md
- .sopify/blueprint/README.md
首次进入 plan 生命周期:
- .sopify/blueprint/background.md
- .sopify/blueprint/design.md
- .sopify/blueprint/tasks.md
- .sopify/plan/YYYYMMDD_feature/
首次显式 ~go finalize:
- .sopify/history/index.md
- .sopify/history/YYYY-MM/YYYYMMDD_feature/
首次出现明确长期偏好:
- .sopify/user/feedback.jsonl
project.mduser/preferences.mdblueprint/README.mdblueprint/background.mdblueprint/design.mdblueprint/tasks.mdactive_plan = current_plan.path + current_plan.files读取规则:
L0/L1,不强制要求 deep blueprint。L2 active plan。history/ 不是默认长期上下文,只在 finalize 后查询或人工追溯时读取。blueprint/README.md 只保留 状态 / 维护方式 / 当前目标 / 当前焦点 / 深入阅读入口。blueprint/README.md。blueprint/ 根层存在额外长期专题文档,必须在 blueprint/README.md 显式列出入口。blueprint/tasks.md 边界[x] 已完成项不应继续保留在 blueprint/tasks.md。project.md:跨任务可复用的技术约定变化。blueprint/background.md:长期目标、范围、非目标变化。blueprint/design.md:模块/宿主/目录/消费契约变化。blueprint/tasks.md:长期未完成项或明确延后项变化。user/preferences.md:用户明确声明长期偏好。blueprint/tasks.md。knowledge_sync 同步契约knowledge_sync:
project: skip|review|required
background: skip|review|required
design: skip|review|required
tasks: skip|review|required
执行要求:
skip:本轮不要求同步。review:finalize 前至少复核。required:未更新则 finalize 阻断。user/preferences.md > 默认规则。初始化完成:
[{BRAND_NAME}] 知识库初始化 ✓
创建: {N} 文件
策略: {full/progressive}
---
Changes: {N} files
- .sopify/project.md
- .sopify/blueprint/README.md
- ...
Next: 知识库已就绪
同步完成:
[{BRAND_NAME}] 知识库同步 ✓
更新: {N} 文件
---
Changes: {N} files
- .sopify/project.md
- .sopify/blueprint/design.md
- ...
Next: 文档已更新