commit-msg
Skill1 starsChanged 30 days agoMITView on GitHub
Generate a git commit message for the currently staged changes. Use when the user asks to generate, write, or suggest a commit message.
16 other projects use a version of this.
Adopted by
Most recently taken up by
- Eclipter/agentstheir own version, first seen Nov 8, 2026
- codechup/claude-code-labtheir own version, first seen Nov 8, 2026
- cykedev/vereinsheimtheir own version, first seen Nov 3, 2026
- huntie/skillstheir own version, first seen Nov 1, 2026
- 5hseok/hanipman-gatetheir own version, first seen Oct 20, 2026
- AlaaMousa05/billtheir own version, first seen Oct 15, 2026
Used with
Projects with it also use implement and frontend-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 3 projects that use this
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 3 projects that use this
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- NG-ZORRO/ng-zorro-antd★ 9.2ksame name
- yaklang/yakit★ 7.9ksame name
- rust-works/succinctly★ 52same name
- Akindu23/my-agent-skills★ 4same name
- jenreh/appkit★ 4same name
- couimet/my-claude-skills★ 1same name
- cykedev/vereinsheim★ 1same name
- Eclipter/agents★ 1same name
- laonzh/skills★ 1same name
- psw7205/skills★ 1same name
6 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agentdocs-setupSkill
- agent-docsSkill
- codebase-designSkill
- code-reviewSkill
- diagnoseSkill
- engramSkill
- handoffSkill
- improve-archSkill
- interviewSkill
- prototypeSkill
- prSkill
- questionnaireSkill
- researchSkill
- review-frontend-productionSkill
- run-ticketSkill
- setup-gatesSkill
- sync-claude-mdSkill
- sync-readmeSkill
- task-retroSkill
- task-specSkill
- task-ticketsSkill
- tddSkill
- teachSkill
- team-devSkill
- wait-whatSkill
- wayfinderSkill
- which-skillSkill
- wizardSkill
- writing-for-agentsSkill
The file
Files
Commit Message Generator
Overview
分析当前暂存的变更,参考近期提交风格,生成符合 Conventional Commits 规范的提交信息。
Steps
1. 收集上下文
git diff --staged # 查看暂存的变更内容
git log --oneline -10 # 了解近期提交风格与粒度
git status # 确认暂存范围2. 分析变更
根据 diff 内容判断:
| 问题 | 目的 |
| 改了什么? | 确定 scope 和描述 |
| 为什么改? | 决定 type(feat/fix/refactor…) |
| 影响范围? | 判断是否需要 ! 或 BREAKING CHANGE |
3. 生成提交信息
格式:
<type>(<scope>): <subject>
[body]
[footer]type 选择:
| type | 适用场景 |
feat | 新功能 |
fix | Bug 修复 |
refactor | 重构(不改变行为) |
docs | 仅文档变更 |
test | 添加或修改测试 |
chore | 构建、依赖、工具配置 |
style | 格式、空白、分号(不影响逻辑) |
perf | 性能优化 |
ci | CI/CD 配置 |
规则:
- subject 使用祈使句,首字母小写,不加句号
- subject 不超过 72 个字符
- scope 为受影响的模块/目录(可省略)
- 破坏性变更在 footer 加
BREAKING CHANGE:或 type 后加! - body 说明"为什么"而非"改了什么"(diff 已经说明了什么)
4. 输出
直接给出提交命令,无需额外解释:
git commit -m "$(cat <<'EOF'
feat(auth): add OAuth2 login support
Replaces the custom session-based flow with OAuth2 to support
third-party identity providers without managing credentials.
EOF
)"若 subject 已足够清晰,省略 body。
Common Mistakes
| 错误 | 正确做法 |
fix: fixed the bug | fix(parser): handle empty input gracefully |
| subject 超过 72 字符 | 拆成 subject + body |
| body 描述"改了什么" | body 描述"为什么改" |
| 多个不相关变更写一条 | 提示用户拆分暂存区 |
| 翻译成中文再提交 | 与仓库现有提交语言保持一致 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

