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-git-commit/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-git-commit)<a href="https://agentmods.dev/skills/double-coding-lab/flow2spec/f2s-git-commit"><img src="https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/f2s-git-commit/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-git-commit"><img src="https://agentmods.dev/badge/skills/double-coding-lab/flow2spec/f2s-git-commit.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.00149 | $0.04166 |
| Opus 5.5 | $0.00060 | $0.01666 |
| Sonnet 5.5 | $0.00030 | $0.00833 |
| Haiku 4.5 | $0.00015 | $0.00417 |
Grade A, and why
f2s-git-commit 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 — 252 lines — stays where its author put it; the contents beside it link to each section on GitHub.
执行口径:本技能代用户执行 git 操作;不使用
git add -A/git add .,不跳过 hooks(--no-verify),不自动 push。git pull/git fetch合并入本地前必须取得用户对「拉取」的明确确认;git commit不要求单独一轮「确认」交互(见步骤 3–4)。用户明确要求“快捷提交”时,仅跳过步骤 2 知识库覆盖检查,其余安全步骤照常执行。
编排(主 / 子 agent)
subAgent/switchAgentVerification语义以统一入口为唯一事实源:Cursor/Claude 读配置根rules/f2s-flow2spec-unified-entry.*;Codex 读.codex/topics/f2s-flow2spec-unified-entry.md。- 本技能全程在主 agent 完成(pull 的确认不可下放子 agent;
git commit不要求单独一轮用户确认,见步骤 3–4)。
f2s-git-commit(提交代码)
强制流程
快捷提交模式
当用户本轮明确说出 “快捷提交”、“快速提交” 或 “quick commit” 时,进入快捷提交模式:
- 跳过 步骤 2:知识库覆盖检查,不读取
.Knowledge/topics//.Knowledge/stock-docs/做覆盖判断。 - 不提示用户先运行
f2s-kb-sync/f2s-kb-feat。 - 不跳过步骤 1 的变更读取与冲突标记检查。
- 不跳过步骤 3 的提交信息生成与展示。
- 不跳过步骤 4 的精确
git add <文件列表>、正常git commit与 git hooks。 - 不得因快捷提交使用
git add -A/git add ./--no-verify/ 自动 push。
步骤 1:读取变更(只读)
git status --short
git diff HEAD
- 从
git status --short区分三类文件:- Staged:已
git add,前缀为M、A、D(首列非空) - Unstaged:已追踪但未 add,前缀为
M、D(次列非空) - Untracked:
??前缀,新文件尚未追踪
- Staged:已
- 若三类均为空(nothing to commit),直接告知用户并结束。
冲突检查(必须,先于一切):
扫描所有变更文件内容,若任意文件包含 <<<<<<<、=======、>>>>>>> 冲突标记,立即终止并提示:
❌ 检测到未解决的 merge conflict:
- <文件路径>
请先解决冲突后再提交。
步骤 2:知识库覆盖检查(默认必须;三种情况可跳过)
若处于快捷提交模式,本步骤直接跳过,并在步骤 5 收尾提示中说明“已按快捷提交跳过知识库覆盖检查”。
先判断 .Knowledge/ 是否存在:
- 若
.Knowledge/manifest-routing.json不存在:跳过本步骤,在步骤 5 收尾提示「项目尚未初始化 Flow2Spec 知识库,建议运行 flow2spec init」,继续步骤 3。
跳过判定 A:改动纯文档 / 知识库自身(进入覆盖检查前先判定)
若步骤 1 收集到的 pending 文件路径全部命中以下模式,直接跳过本步骤(在步骤 5 说明「本次改动纯文档,已跳过覆盖检查」):
.Knowledge/**(改的就是知识库自己,检自己无意义)docs/**/docs/en/**README*.md/LICENSE/CHANGELOG*.claude/**/.cursor/**/.codex/**(agent 配置根,由 flow2spec init 分发,与业务能力覆盖无关)presentations/**/assets/**/ 其他纯静态资源
任一文件落在 src/ / lib/ / cli.js / templates/ / 业务代码目录时,本捷径不生效,继续走覆盖检查。
跳过判定 B:近期已同步过知识库
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 · 252 lines · 149 tokens per session scan A ab0cc4ded0a5
f2s-git-commit is a skill published in the GitHub repository double-coding-lab/Flow2Spec (52 stars, last pushed 6d ago), licensed MIT. It adds 149 tokens to every session and 4,166 once invoked, about $0.0006 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
create-pr
Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for Prisma 8. Use when the user wants to create a pull request, open a PR, or submit changes for review.
git-commit
Generate well-formatted git commit messages following conventional commit standards.
repo-sync
Manage automatic Git syncing on macOS with repo-sync. Use only when the user explicitly invokes /repo-sync.
mcore-split-pr
Split a PR into multiple PRs to reduce the number of required CODEOWNERS reviewer groups.
contributing
How to contribute to evlog, covering commit and PR conventions, changesets, the Definition of Done, testing rules, and the authored skills that walk through building a new adapter, enricher, framework integration, or map rule. Load this for any question about contributing, opening a PR, or adding something to the…
engineer-bot-ops
A workflow for carrying an engineering task from scope through implementation and reviewable delivery. It works with a repository's branch, existing changes, rules, checks, and permissions while separating completed, unverified, and next-step work.