Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/double-coding-lab/flow2spec/agents-mdgit clone --depth 1 https://github.com/double-coding-lab/Flow2SpecWhat 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 | $0.03206 | $0.03206 |
| Opus 5 | $0.01603 | $0.01603 |
| Sonnet 5 | $0.00641 | $0.00641 |
| Haiku 4.5 | $0.00321 | $0.00321 |
Grade A, and why
Flow2Spec AGENTS.md 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 2d 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 — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Flow2Spec 项目入口
本文件由 flow2spec init 写入仓库根 ./AGENTS.md,作为 Codex 读取的项目入口。./.codex/AGENTS.md 仅为指针。知识库根目录为 ./.Knowledge/。
先做这两步
- 本轮首次处理当前仓库相关问题时,先读
./.Knowledge/manifest-routing.json。 - 执行任何
f2s-*技能前,先Read("flow2spec.config.json")。
必须执行:Read(".Knowledge/manifest-routing.json")
必须执行:Read("flow2spec.config.json") ← 仅在进入 f2s-* 技能前
禁止在未读 flow2spec.config.json 的情况下进入 f2s-* 技能正文。
配置开关(以磁盘为准)
下表只说明字段语义与 flow2spec init 写入的默认值;配置真值仍以本轮 Read("flow2spec.config.json") 结果为准(用户可能手工改过)。
| 配置项 | init 默认 | 说明 |
|---|---|---|
subAgent |
true |
技能正文写明某步可用子 agent 时,true 才允许拆子;false 一律主会话完成。用户「动态判断谁用子 agent」仅当本项为 true 时有效。 |
switchAgentVerification |
true |
切换 agent 校验。仅当本项为 true 且当前技能正文明确绑定该字段时启用交叉校验;否则仍是谁落盘谁自验。旧键 subAgentVerification 仍可被解析。 |
intentRecognition |
true |
true 时可按 f2s-intent-routing 对高置信操作意图自动进入对应 f2s-* 技能;false 或缺失时不自动分流。 |
changeTracking.feat |
true |
true 时 f2s-kb-feat 步骤 0 必须创建/续作 .task/active/ 变更追踪任务;false 时跳过。 |
changeTracking.fix |
false |
true 时 f2s-kb-fix 步骤 0 必须创建/续作 .task/active/ 变更追踪任务;false 时跳过。 |
changeTracking.implement |
true |
true 时 f2s-implement-tech-design 写入任务清单并在满足归档门禁后归档;false 时跳过变更追踪部分。 |
collaboration.enabled |
true |
true 时按 developerId 隔离任务根 .task/<id>/;false 时始终 legacy 单根 .task/。 |
collaboration.developerId |
"" |
非空则作为任务进度目录名;空则尝试 git user.email/name 规范化;仍无则 legacy .task/。解析顺序:config → git → legacy。 |
subAgent=true时,主 agent 必须在技能前段显式判断一次本次是否拆子,并说明原因;即使判断不拆,也必须输出不拆原因。subAgent=false时不得拆子 agent。intentRecognition=false或字段缺失时,禁止自动进入任何 skill;只能按用户显式触发或当前规则允许的高置信分流进入。
配置细表与补充规则见 ./.codex/topics/f2s-config-check.md。
KB 路由规则
- 机读事实源只认
./.Knowledge/manifest-routing.json与其matcherPath指向的./.Knowledge/matchers/*.json。 - 按
match -> expand -> verify -> act执行:主命中后先展开topicDependencies,再检查是否缺关键上下文。 - 仅在以下情况允许跨 matcher 全量补检索:无命中、主次候选过近、缺口检查失败、用户明确要求“全量检查/不要遗漏”。
fallbackTopic仅作低置信兜底,不能直接作为最终执行依据。
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.
- 2d ago First seen · 115 lines · 3,206 tokens per session scan A 6307d3bb6e67
Flow2Spec AGENTS.md is an instructions file published in the GitHub repository double-coding-lab/Flow2Spec (47 stars, last pushed 4d ago), licensed MIT. It adds 3,206 tokens to every session, about $0.0160 per session on Opus 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 instructions, from other repositories
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
buildNext
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
spec-kit AGENTS.md
Instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
langchain AGENTS.md
Instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.