بنقرة واحدة
f2s-kb-feat
新增能力时补全实现与知识库;已实现则仅同步知识库;触发:f2s-kb-feat、新增能力
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
新增能力时补全实现与知识库;已实现则仅同步知识库;触发:f2s-kb-feat、新增能力
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Accept an explicit capability list or infer from zero input; first output a knowledge-base update outline, then write topics/index/manifest after confirmation; triggers: f2s-kb-sync、全局同步、知识库同步、已实现能力、global sync、sync knowledge base、implemented capability
可显式给出能力或零输入推断;先输出知识库更新大纲,确认后写入 topics/index/manifest;触发:f2s-kb-sync、全局同步、知识库同步、已实现能力
Clarify a PRD or requirement through follow-up questions until it is actionable, then use f2s-req-tech to produce a technical design; triggers: 需求澄清、PRD 澄清、requirement clarification、PRD clarification
Generate a technical design document from clarified requirements using the project knowledge base, Skills, and Rules; triggers: 生成技术方案、技术方案、f2s-req-tech、generate technical design、technical design
针对 PRD/需求反问直到清楚,再可用 f2s-req-tech 出技术方案;触发:需求澄清、PRD 澄清
根据澄清后的需求基于项目知识库/Skills/Rules 生成技术方案文档;触发:生成技术方案、技术方案、f2s-req-tech
| name | f2s-kb-feat |
| description | 新增能力时补全实现与知识库;已实现则仅同步知识库;触发:f2s-kb-feat、新增能力 |
执行口径:
f2s-kb-feat默认同步.Knowledge,无需用户额外提出"请同步知识库"。
subAgent 与 switchAgentVerification 的语义以统一入口为唯一事实源:Cursor/Claude 读配置根 rules/f2s-flow2spec-unified-entry.*;Codex 读 .codex/topics/f2s-flow2spec-unified-entry.md(与上同源,flow2spec init 镜像)。本处不复述。subAgent=true 时可外包给子 agent 执行。manifest-routing.json / .Knowledge/index.md 恒由主 agent 落盘,子 agent 不得触碰。步骤 0:变更追踪(仅当 changeTracking.feat: true)
执行前读取 flow2spec.config.json,若 changeTracking.feat: true:
.task/todo.json 是否存在活跃任务,将用户描述与 keywords 匹配。task.md,展示剩余清单,在已有任务中继续。f2s-task 规则),将步骤 1–4 写入 task.md 作为任务 checklist。task.md 中一步,同一会话内立即 Edit 将该步 [ ]→[x];禁止把打钩积压到「收尾/归档」一步、禁止口头完成代替写盘(见 f2s-task「中断与会话结束」「归档门禁」)。.task/active/<task-name>/user-todos.md(见 f2s-task);新建任务时若尚无代办,仍应创建该文件(可占位)。.Knowledge/stock-docs/:能力说明与使用方式.Knowledge/topics/:新增/修订主题规则与流程.Knowledge/index.md:主题索引topicMetadata 变化时最小更新topicMetadata 或 topicDependencies,须先 Read rules/f2s-topic-authoring.* 全文(Cursor/Claude:rules/f2s-topic-authoring.mdc;Codex:.codex/topics/f2s-topic-authoring.md),再落盘。## 新增能力:<能力名>
### 能力范围
- <能力点1>
- <能力点2>
### 实现
- <文件路径>:<改动说明>(若未改代码则写"已有实现")
### 知识库
- .Knowledge/stock-docs/<文件>.md:<新增/修订说明>
- .Knowledge/topics/<topic>.md:<新增/修订说明>
- .Knowledge/index.md:<更新说明>
- .Knowledge/manifest-routing.json:<是否更新与原因>
- .Knowledge/matchers/<id>.json:<是否更新 includeAny 与原因>
用户要求"新增失败重试队列能力",且代码中已有半成品实现。
topics/retry-queue.md,并更新 index 入口说明。manifest.taskToTopicRules。rules/skills。manifest-routing.json / .Knowledge/index.md 恒主落盘(写权硬约束)。写 stock-docs / topics / index 时遵守:
stock-docs 与 topics 不要各写一长篇;择一处写清可执行约定,另一处用短段落 + 链接指向,或仅列要点与引用路径。topics 以规则、边界、步骤、错误与配置要点为主;能用列表/表格表达的不用长段落。index.md:只改与本次主题相关的行/表项,禁止整表或整节复制粘贴式刷新。index 与 manifest 是否同步更新。topicMetadata:key 是否存在于 topicPaths;primary / tags / confidence 是否合法;是否未因分类创建、重命名或拆分 topic。changeTracking.feat: true:task.md「步骤」已全部 [x](或备注已记录取消项)后,才将 .task/active/<task-name>/ 归档至 completed/ 并从 todo.json 删除对应条目;禁止在仍有 [ ] 时移动目录(与 f2s-task 归档门禁一致)。changeTracking.feat: true:user-todos.md 已存在;有用户代办时内容已与会话结论一致。