Flow2Spec: Skill for Claude Code

.claude/skills/f2s-kb-upgrade/SKILL.md

f2s-kb-upgrade is a skill for Claude Code from double-coding-lab/Flow2Spec. It costs 220 tokens per session (10,176 once invoked), scanned A, original, MIT.

A skill for upgrading an existing Flow2Spec knowledge base to match the package's current templates and routing layout. Flow2Spec is a tool whose knowledge base stores project guidance and routes requests to the right instructions.

In plain words
What is it for?
Use it to run the full knowledge-base upgrade process, including the required initialization and revision checks. It does not add or update business knowledge or migrate the older V1 layout.
Why use it?
It handles the directory, template, and routing updates needed when the package version changes, while separating those updates from changes to the knowledge content itself.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; reads ~/.codex paths.

This is double-coding-lab/Flow2Spec's own configuration. It tells Claude Code how to work on Flow2Spec itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Flow2Spec configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/double-coding-lab/Flow2Spec/main/.claude/skills/f2s-kb-upgrade/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/double-coding-lab/Flow2Spec

Made for: Claude Code.

Wrote 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.

agentmods badge for f2s-kb-upgrade

README.md
[![agentmods](https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/f2s-kb-upgrade/github.svg)](https://agentmods.dev/skills/double-coding-lab/flow2spec/f2s-kb-upgrade)
Your own site
<a href="https://agentmods.dev/skills/double-coding-lab/flow2spec/f2s-kb-upgrade"><img src="https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/f2s-kb-upgrade/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.

agentmods 80×15 button for f2s-kb-upgrade

Your own site · 80×15
<a href="https://agentmods.dev/skills/double-coding-lab/flow2spec/f2s-kb-upgrade"><img src="https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/f2s-kb-upgrade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 220 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,176 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 86
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 90
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 91
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 174
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00220 $0.10176
Opus 5.5 $0.00088 $0.04070
Sonnet 5.5 $0.00044 $0.02035
Haiku 4.5 $0.00022 $0.01018

Measured 1mo ago against content hash 77c9db08d557, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

f2s-kb-upgrade 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.

.claude/skills/f2s-kb-upgrade/SKILL.md · 364 lines

How it starts

The opening of the file, as written. The whole thing — 364 lines — stays where its author put it; the contents beside it link to each section on GitHub.

执行口径:本技能用于「代替用户跑 shell」完成 按本 SKILL 定义的 Flow2Spec 模板与配置根对齐;其中一步会代跑 flow2spec init,但 init 不是「升级命令」,升级命令 / 知识库升级 仅指 f2s-kb-upgrade 本技能全流程。

f2s-kb-upgrade(知识库模板升级技能)

术语(必须):「升级」「升级命令」「知识库升级」 仅指按本文件 f2s-kb-upgrade 执行的完整技能流程。flow2spec init 是 CLI 初始化/落盘命令;本技能 步骤 2 会代跑它,禁止把用户单独执行的 init 或 CLI 帮助里的 init 表述为「升级命令」。

边界(避免误区)

  • flow2spec init 不写业务知识:不替代 f2s-kb-add、f2s-kb-fix、f2s-kb-feat、f2s-kb-sync、f2s-kb-build 等对 stock-docs / req-docs / topics 正文与业务向路由词条的维护。
  • 本技能跑通的是 Template Version 下的目录、模板占位、路由结构对齐;Core 代码版本与 Template Version 独立。用户若说「把新能力写进知识库」,应引导 f2s-kb-sync / f2s-kb-add 等,而非仅 f2s-kb-upgrade。
  • 本技能负责存量 topicMetadata 审计:primary / tags 仅用于治理、审计、盘点和阅读预期,不参与路由命中或执行强制性;执行强制性仍以 AGENTS.md、rules、skills 与 topic 正文为准。

包侧发版纪律(projectRev 必须正确 bump)

字段位置:Core 包模板 knowledge/manifest-routing.json 的根级整数字段 projectRev(起始 1)。

字段写入语义(必读):

  • 包侧:维护者按下文规则手动 bump(包模板自身的 projectRev 永远是最新值)。
  • 项目侧(落盘到 .Knowledge/manifest-routing.json):
    • 首次 init:项目 .Knowledge/manifest-routing.json 不存在 → init 把模板原值落盘,等同首次落地即基线对齐。
    • 后续 init:项目 .Knowledge/manifest-routing.json 已存在 → init 不再覆盖该字段(保留项目原值);该字段只由本技能完整流程末尾 3b 写入(见步骤 3b「回写 projectRev」)。
    • 这使「项目侧 projectRev」语义清晰:「本项目已基线对齐到的包模板修订号」,而非"上次 init 时碰到的"。

必须 bump 的修改(每次发版至少 +1):

  • 包模板 knowledge/topics/<topic>.md 任一文件的正文修改、新增、删除或改名;
  • 包模板 knowledge/matchers/<id>.json 的 includeAny 词条、id 或新增 / 删除 matcher 文件;
  • 包模板 knowledge/manifest-routing.json 的 topicPaths / taskToTopicRules / topicDependencies / fallbackTopic / topicMetadata 任一段修改;
  • 包模板 knowledge/index.md 「主题一览」节或包级章节修改。

不需要 bump 的修改:

  • 包源码(lib/、cli.js、scripts/)、AGENTS.md、README* 文档;
  • flow2spec.config.json 默认值;
  • rules/* / skills/* 仅规则与技能正文修改(这些与主题层无关,无需触发完整流程,但仍须显式提升 Template Version 以便 Hook 分发新版内容)。

判定准则一句话:模板里 knowledge/ 目录下 topic / matcher / manifest / index 任一主题层产物变了 → 必 bump;否则不动。漏 bump 会让用户的 f2s-kb-upgrade 跑快速路径,错过包带来的主题变更。

Read the full file on GitHub · 364 lines

Changes

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.

  1. 1mo ago Changed 77c9db08d557
  2. 1mo ago Changed · -5 lines 2d793becb8a0
  3. 1mo ago First seen · 369 lines · 220 tokens per session scan A 254fe671286e

Subscribe to this mod's changes

f2s-kb-upgrade is a skill published in the GitHub repository double-coding-lab/Flow2Spec (52 stars, last pushed 6d ago), licensed MIT. It adds 220 tokens to every session and 10,176 once invoked, about $0.0009 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.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

component-fixtures

Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.

microsoft/vscode · 53 tokens