Borrowing it
Nothing to install: this file belongs to double-coding-lab/Flow2Spec. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/double-coding-lab/Flow2Spec/main/.claude/skills/f2s-kb-merge/SKILL.mdgit clone --depth 1 https://github.com/double-coding-lab/Flow2SpecWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/double-coding-lab/flow2spec/f2s-kb-merge)<a href="https://agentmods.dev/skills/double-coding-lab/flow2spec/f2s-kb-merge"><img src="https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/f2s-kb-merge/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/double-coding-lab/flow2spec/f2s-kb-merge"><img src="https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/f2s-kb-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.01720 |
| Opus 5.5 | $0.00022 | $0.00688 |
| Sonnet 5.5 | $0.00011 | $0.00344 |
| Haiku 4.5 | $0.00006 | $0.00172 |
Grade A, and why
f2s-kb-merge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
编排(主 / 子 agent)
- 两字段(
subAgent/switchAgentVerification)语义以统一入口为唯一事实源:Cursor/Claude 读配置根rules/f2s-flow2spec-unified-entry.*;Codex 读.codex/topics/f2s-flow2spec-unified-entry.md(与上同源,flow2spec init镜像)。本技能不复述。 - 子 agent 职责(仅当
subAgent=true):只做冲突扫描 + 按类别对照表,每条包含五字段 ——file/category(文档索引 / 总览规则 / 模块规则 / 技能 / 说明文档 / 实现类 / 依赖元数据)/ours_summary/theirs_summary/recommendation(并集 / 保留某侧 / 并入必须项 / 待用户选)。 - 子 agent 不出成品合并稿,避免主 agent 二次重写。
- 主 agent 职责:按策略落盘 + 实现类决策 + 验收。
- 默认落盘侧自验,本技能不绑定交叉校验。
/合并上下文冲突(f2s-kb-merge)
在 rebase / merge 后出现 <<<<<<< / ======= / >>>>>>> 时,优先自动合并「AI 与开发者上下文」相关文件,保证索引、规则、技能与说明文档互相对齐;涉及可执行实现、部署或依赖声明的冲突不擅自合并,需向用户展示双方差异并等待确认后再改。
传参(可选)
- 不传参:在工作区内自行检索仍存在冲突标记的文件,再按本技能分类与策略处理(含全量扫描后的摘要)。
- 传参:用户可指定一个或多个仍含冲突的文件(随消息 @ 文件或列出路径均可)。助手优先只处理这些文件中的冲突;若其中含「禁止自动合并」类别,仍只罗列差异与建议,不擅自写入。指定文件处理完毕后,可询问用户是否需要对工作区做补充扫描。
适用范围(可自动合并)
以下类别内的冲突,按本技能合并策略处理,无需逐行征求确认(除非两侧表述互斥且无法判断应以何为准):
| 类别 | 说明 |
|---|---|
| 文档索引 | 承载「文档 ↔ 规则 / 技能」映射的索引表文件 |
| 项目总览规则 | 规则目录中的总入口文件 |
| 模块规则 | 同套规则目录下的其余规则片段 |
| 技能 | 技能目录下的 SKILL 说明文件 |
| 上下文说明文档 | 与规则、技能配套的说明类 Markdown |
| 索引联动的纯说明文档 | 由项目约定存放、仅被索引或规则引用、不含可执行实现语义的说明文档 |
禁止自动合并(须用户确认)
以下冲突不得在未获用户明确选择前合并:
- 应用或服务实现源码(业务逻辑、接口实现、数据访问等)
- 会改变对外暴露行为的配置(路由、函数注册、中间件链、运行入口等)
- 依赖与构建元数据(依赖声明、锁文件、构建与部署脚本等)
- 集中维护外部资源清单的实现模块:若两侧条目集合或注册内容不同,属运行行为差异,须用户确认保留范围(助手可建议「并集 + 去重」,待用户同意后再写入)
处理方式:列出冲突文件、简述两侧意图,给出推荐方案,请用户选定后再改上述范围中的文件。
合并策略(上下文类)
- 删除所有 Git 冲突标记(
<<<<<<</=======/>>>>>>>),不得残留。 - 索引表
- 同一索引行的 Rules / Skills / 链接列:做并集,路径去重、空格分隔。
- 仅在一侧出现的独立索引行:合并后保留,避免丢失条目。
- 总览规则
- 同一主题下多条 bullet:合并为信息完整的单条或并列多条,不丢弃任一侧独有的约束或引用。
- 长文档中的表格
- 描述不同维度能力的行:并集保留。
- 描述同一主题的重复行:合并为一条连贯表述,涵盖两侧要点。
- rules / skills
- 优先保留更具体、约束更清晰的表述;另一侧独有的必须 / 禁止条款并入,避免规则回退。
- 链接与路径
- 统一为仓库内可解析的相对路径,并与总览规则中的索引入口一致。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 81 lines · 56 tokens per session scan A 1bfa96edafb0
f2s-kb-merge is a skill published in the GitHub repository double-coding-lab/Flow2Spec (52 stars, last pushed 6d ago), licensed MIT. It adds 56 tokens to every session and 1,720 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
merge-batch
Prepare and merge an owner-selected PR batch with contributor credit and exact-candidate admission. Use for a pasted PR list; combined focused validation is diagnostic, and every actual landing still requires its applicable checks and authorization.
prowler-commit
Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.
gh-auth-isolation
Safely manage multiple GitHub identities (EMU + personal) in agent workflows.
comet-github
A routing guide for Comet-related GitHub work. It directs requests about pull requests, issues, CI failures, ideas, and fixes to the appropriate review or implementation process.
github-skill
Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.
release-helper
Ensures configuration and code changes are released correctly. Use PROACTIVELY whenever you edit config.json, change any setting, or fix a configuration bug in this project, so the change reaches production.