f2s-git-commit

Generates emoji-prefixed Conventional Commits and commits staged changes with knowledge-base coverage checks.

48|6|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/double-coding-lab/Flow2Spec --skill f2s-git-commit-double-coding-lab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: f2s-git-commit
Source: https://github.com/double-coding-lab/Flow2Spec/tree/main/.cursor/skills/f2s-git-commit
Command: npx skills add https://github.com/double-coding-lab/Flow2Spec --skill f2s-git-commit-double-coding-lab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Committing code often skips project-knowledge updates and produces inconsistent commit messages. This Skill enforces a safe, structured Git commit workflow that checks whether changed modules are covered by the Flow2Spec knowledge base, generates a standardized emoji + Conventional Commits message, and commits only explicitly listed files. ## Core Features & Use Cases - Safe commit execution: Reads git status and git diff, separates staged/unstaged/untracked files, blocks on unresolved merge conflict markers, and never uses git add -A, --no-verify, or auto-push. - Knowledge-base coverage check: Verifies changed modules against .Knowledge/topics/ and .Knowledge/stock-docs/, auto-merges pending kb-delta.json when possible, and skips the check for quick commits, doc-only changes, or a sync within the last 30 minutes. - Standardized commit messages: Generates a first line in the form <emoji> <type>[(scope)]: <summary> (e.g., 🐛 fix(auth): 修复登录态丢失) based on the actual diff, then commits immediately after displaying it. - Use Case: After finishing a feature, ask the agent to commit; it inspects the diff, warns if the new module is not yet in the knowledge base, drafts 🚀 feat: 支持活动缓存预热, stages only the changed files, and commits. ## Quick Start Ask the agent to commit my current code changes with f2s-git-commit, or say "快捷提交" to skip the knowledge-base coverage check.

Frequently Asked Questions about f2s-git-commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Conventional Commits message with an emoji prefix?▼

The skill reads the actual git diff and drafts a first line in the format `<emoji> <type>[(scope)]: <summary>`, mapping types like feat to 🚀 and fix to 🐛. It displays the line in the same reply and then commits without requiring a separate confirmation.

How do I skip the knowledge base coverage check when committing?▼

Say "快捷提交" (quick commit) to skip only the coverage check; all other safety steps still run. The check is also skipped automatically for doc-only changes or when a kb-sync skill ran within the last 30 minutes.

Does this skill run git pull or push automatically?▼

No. Automatic push is forbidden, and any git pull or merge that rewrites the working tree requires explicit user confirmation first. The skill stops after a successful commit.

What happens if my changes have unresolved merge conflicts?▼

The skill scans all changed files for conflict markers like `<<<<<<<` before anything else. If any are found, it terminates immediately and lists the affected files so you can resolve them first.

Why does the commit stop when a pre-commit hook fails?▼

The skill never uses --no-verify, so a failing hook aborts the commit. It outputs the full hook error and asks you to fix the issue and retrigger the skill.