Flow2Spec: Skill for Claude Code

.claude/skills/f2s-doc-final/SKILL.md

f2s-doc-final is a skill for Claude Code from double-coding-lab/Flow2Spec. It costs 58 tokens per session (2,283 once invoked), scanned A, original, MIT.

A document-formatting skill that turns a PDF or Markdown file into a Chinese Markdown document following a specified final-draft template.

In plain words
What is it for?
Use it to prepare documents for the f2s knowledge-base build process, optionally using a template file and handling large PDFs with a sub-agent.
Why use it?
It removes the manual work of reading source documents and arranging their concepts, rules, and processes into a consistent structure.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; mentions Codex.

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-doc-final/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-doc-final

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/double-coding-lab/flow2spec/f2s-doc-final"><img src="https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/f2s-doc-final.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,283 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 pass 7 Sept 2026
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.00058 $0.02283
Opus 5.5 $0.00023 $0.00913
Sonnet 5.5 $0.00012 $0.00457
Haiku 4.5 $0.00006 $0.00228

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

Security

Grade A, and why

f2s-doc-final 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-doc-final/SKILL.md · 101 lines

How it starts

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

执行口径:初稿/终稿统一写入 .Knowledge/stock-docs/;模板优先读取 .Knowledge/template/终稿模版.md。

编排(主 / 子 agent)

  • subAgent / switchAgentVerification 两字段语义以统一入口为唯一事实源:Cursor/Claude 读配置根 rules/f2s-flow2spec-unified-entry.*;Codex 读 .codex/topics/f2s-flow2spec-unified-entry.md(与上同源,flow2spec init 镜像)。本节不复述。
  • 默认不拆子:MD / PDF → 终稿模版的连贯性最好,由主会话一气呵成完成理解、套模版与定稿。
  • 可选拆子(仅当 subAgent=true 且大体量 / 多文件,阈值:PDF > 50 页 或 > ~5MB 文本):子 agent 做「套模版、排版与结构搬运」草稿;主 agent 对照终稿模版、识别缺口并向用户追问、与用户对齐并定稿 / 验收;子 agent 不得单独宣称终稿已合规。
  • 不为「格式转换可独立」默认拆子:终稿合规依赖模版语义 + 业务表述,主侧验收成本通常仍在。
  • 校验:落盘侧 agent 自验,本 SKILL 不绑定交叉校验。

将 PDF 或 MD 转换为《终稿模版》规范格式(spec → context)

用户会在本技能后附带至少一个参数:第一个参数为本地 PDF 文件路径或 Markdown 文件路径(必填);第二个参数(可选)为输出文件路径,若提供则覆盖默认输出位置。请根据文件类型按下列流程执行,输出便于后续由 f2s-kb-build 技能消费的终稿风格 Markdown 文档。

终稿模版仅作提示:若存在 .Knowledge/template/终稿模版.md,可读取作为结构参考;不强制套用。

项目架构命名(优先于通用方案命名)

  • 输入为 f2s-doc-arch 产物,或内容明确为项目整体架构时,初稿文件名/一级标题固定为 项目架构初稿.md / 项目架构初稿,终稿固定为 项目架构终稿.md / 项目架构终稿;默认目录 .Knowledge/stock-docs/。
  • 此分支适用于 MD 与 PDF 两种流程;不从旧输入文件名、正文方案名、package.json.name 或仓库目录名拼接项目名前缀,也不生成 项目架构初稿_终稿.md。第二参数可改变目录,文件名按对应阶段归一化,并说明实际路径。
  • 项目名称只在正文描述;同名目标已存在时增量更新并保留有效内容。转换旧名称输入时不自动删除原文件或覆盖另一份不同范围文档,引用迁移需确认。
  • 完成后交接 f2s-kb-build <实际目录>/项目架构终稿.md;架构 topic id 为 project-architecture、标题为 项目架构,拆分主题按职责命名,均不加下游项目名前缀。
  • 其他能力/方案文档继续使用下述 <方案名>_初稿.md / <方案名>_终稿.md 约定。

内嵌模板结构(当项目内无 .Knowledge/template/终稿模版.md 时使用)

规范要求:

  • 一级标题:方案名(如 # xxx 技术方案设计)。
  • 二级标题至少包含:## 核心概念、## 业务规则、## 关键流程;其余可按需增删(如 状态与流转、接口、配置/表设计/错误码、实现位置与对接方式)。
  • 核心概念:用表格列出术语、实体、关键 ID(列:概念、说明)。
  • 状态与流转:若有状态机,用列表写状态及流转;若无可简述或省略。
  • 业务规则:列表写约束、校验、配置项。
  • 关键流程:按「用户侧或系统侧」主流程,列表写流程名、步骤简述、入口接口/方法、结果。
  • 可选章节:接口、配置/表设计/错误码、实现位置与对接方式,按需保留并填写。

流程一:用户传入的是 Markdown(.md)

  1. 读取用户传入的 .md 文件内容。
  2. 参考格式(不强制):若存在 .Knowledge/template/终稿模版.md,可读取作为结构提示;否则可参考下方内嵌模板结构。
  3. 分析与转换:
  • 理解原文主题与结构,提炼「方案名」「核心概念」「业务规则」「关键流程」及与原文相关的其他章节(如状态与流转、接口、配置/表设计/错误码、实现位置等)。
  • 将内容重组为结构清晰的终稿风格 Markdown:一级标题为方案名;建议至少包含 核心概念、业务规则、关键流程 三个二级标题,其余按原文有无与需要增删;表格/列表格式可参考模版,不必完全一致。
  • 若原文缺少某节,可标「(待补充)」或根据原文推断补全;若原文结构已清晰,可保留原文章节命名。
  1. 输出:
  • 默认写入 .Knowledge/stock-docs/<方案名>_终稿.md(最终产物带 _终稿 标识)。
  • 若用户希望指定输出路径,可在命令后附带第二个参数作为输出路径;否则用默认。
  1. 回复:告知用户已生成 .Knowledge/stock-docs/<方案名>_终稿.md,并提示可按 f2s-kb-build 继续同步 .Knowledge/topics、.Knowledge/index.md(必要时 manifest)。

Read the full file on GitHub · 101 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 · +8 lines 088e2821448b
  2. 1mo ago First seen · 93 lines · 58 tokens per session scan A 7b39a3ffb5d6

Subscribe to this mod's changes

f2s-doc-final is a skill published in the GitHub repository double-coding-lab/Flow2Spec (52 stars, last pushed 6d ago), licensed MIT. It adds 58 tokens to every session and 2,283 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.

Related

Other skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

apify-youtube-transcript-scraper

Get YouTube captions, timestamped quotations, SRT/VTT and translated transcripts for videos, channels and playlists through the harshmaur/youtube-transcript-scraper Apify Actor.

sickn33/agentic-awesome-skills · 48 tokens

legal-hold

Issue, refresh, release, or report on legal holds — drafts the hold notice as .docx, updates legalhold fields in log.yaml, and calendars the next refresh. Use when the user says "issue a hold", "refresh hold", "release hold", or asks for a portfolio-wide hold status report.

anthropics/claude-for-legal · 68 tokens

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens