with one click
f2s-kb-fix
根据用户指出的实现或规则错误修正代码,并默认同步知识库;触发:f2s-kb-fix、修正实现规则
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
根据用户指出的实现或规则错误修正代码,并默认同步知识库;触发:f2s-kb-fix、修正实现规则
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
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-fix |
| description | 根据用户指出的实现或规则错误修正代码,并默认同步知识库;触发:f2s-kb-fix、修正实现规则 |
执行口径:
f2s-kb-fix默认"修代码 + 同步.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.fix: true)
执行前读取 flow2spec.config.json,若 changeTracking.fix: 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),再落盘。## 修正结果:<约定简述>
### 代码
- <文件路径>:<改动说明>
### 知识库
- .Knowledge/stock-docs/<文件>.md:<新增/修订说明>
- .Knowledge/topics/<topic>.md:<新增/修订说明>
- .Knowledge/index.md:<更新说明>
- .Knowledge/manifest-routing.json:<是否更新与原因>
- .Knowledge/matchers/<id>.json:<是否更新与原因>
用户指出「某回调接口幂等实现错误」,但未给明确文件范围。
topics 中幂等规则段落,避免后续再次生成错误实现。manifest。rules/skills。manifest-routing.json / .Knowledge/index.md 恒主落盘(写权硬约束)。写 stock-docs / topics / index 时遵守:
stock-docs 与 topics 不就同一修复各写长篇;一处写清「错因 / 正确约定 / 注意点」,另一处简短引用或链到该段。index.md:仅更新受影响的索引行或摘要列,禁止无关整表重写。index 是否指向正确主题。manifest,路由字段是否仍可解析。topicMetadata:key 是否存在于 topicPaths;primary / tags / confidence 是否合法;是否未因分类创建、重命名或拆分 topic。changeTracking.fix: true:task.md「步骤」已全部 [x](或备注已记录取消项)后,才归档至 completed/ 并从 todo.json 删除对应条目;禁止在仍有 [ ] 时移动目录(与 f2s-task 归档门禁一致)。changeTracking.fix: true:user-todos.md 已存在;有用户代办时内容已与会话结论一致。