conventional-commit
Skill2 starsChanged 13 days agoMITView on GitHub
写提交信息、拆分原子提交、或 review 提交历史时套用 Conventional Commits。含本仓库的 type/scope 清单、72 字符与中文正文约定、提交前自查清单。Use when writing or reviewing git commit messages.
30 other projects use a version of this.
Adopted by
Most recently taken up by
- rlespinasse/agent-skillstheir own version, first seen Nov 8, 2026
- AgnesAI-Labs/agnet-skills-cntheir own version, first seen Nov 1, 2026
- github/awesome-copilottheir own version, first seen Oct 25, 2026
- typeweaver/skillstheir own version, first seen Oct 20, 2026
- Marvellbrazil/my-agentic-skillstheir own version, first seen Oct 17, 2026
- ZRMYDYCG/ClaudeCodetheir own version, first seen Oct 17, 2026
Used with
Projects with it also use shipping-and-launch, doubt-driven-development and 9 more.
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.
LLl0k0laDSkillshipping-and-launch
Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.
Also in 3 projects that use this
seikaikyoSkilldoubt-driven-development
對非平凡決策啟動新鮮 context 對抗審查(找碴不背書),在修正還便宜的時候抓出錯誤方向。適用:高風險改動(production、資安敏感邏輯、不可逆操作)、不熟的程式碼、要宣稱「這樣是安全的 / 可行的」之前。機械性操作與一行修改不適用。
Also in 3 projects that use this
LLl0k0laDSkillapi-and-interface-design
Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.
Also in 3 projects that use this
HK-hubSkillcode-simplification
Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.
Also in 3 projects that use this
guaderramaSkillspec-driven-development
Generate comprehensive specifications for software projects using spec-driven development methodology. Leverages Bright Data MCP tools to research documentation, analyze competitor implementations, gather real-world examples, and enrich specs with architectural insights. Use when user requests specifications, technical plans, project specs, or architecture documentation.
Also in 3 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 3 projects that use this
- +1 more from LLl0k0laD
Other versions30 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 30
- github/awesome-copilot★ 41ksame name
- JanDeDobbeleer/oh-my-posh★ 24ksame name
- magicdawn/Bilibili-Gate★ 828same name
- termio-sh/termio★ 787same name
- navikt/copilot★ 61same name
- marc-ing/marc-skills★ 14same name
- rlespinasse/agent-skills★ 13same name
- soujava/agent-skills★ 10same name
- flpbalada/fb-skills★ 8same name
- jjxmonster/skills★ 8same name
20 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 repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- grillSkill
- intent-lockSkill
- tddSkill
The file
Files
Conventional Commits
1. 格式
<type>(<scope>): <subject>
<空行>
<正文>
<空行>
<footer>scope可省略:docs: ...合法。- 破坏性变更在 type 后加
!:feat(cli)!: drop the upgrade flag,并在 footer 写BREAKING CHANGE: <说明>。
2. type 白名单
只允许这些,自造 type(feature、update、improvement)一律不认:
| type | 用途 |
feat | 用户可见的新能力 |
fix | 修正错误行为 |
docs | 只改文档、注释、README |
test | 只加/改测试 |
refactor | 不改行为的结构调整 |
perf | 性能 |
style | 格式、空白,不改语义 |
build | 依赖、构建脚本、版本号 |
ci | 流水线配置 |
chore | 杂务(gitignore、脚手架) |
revert | 撤销既有提交 |
判不准时按"对使用者的影响"选:影响行为就是 feat/fix,只影响开发者就是 chore/build/test/docs。
3. scope 清单
写受影响的模块名,小写,用 - 连接:
cli list add copy domain fs frontmatter paths i18n config新模块出现时再扩这张表,不要临时造 misc、core、* 这类含糊 scope。
4. 四条硬规则
- subject 用英文祈使句、小写开头:
add/drop/wrap/stop,不写added/Adds。 - subject ≤ 72 字符,细节挪正文。
- 不加句号。
- 标题后空一行,正文用中文写为什么,不写"改了什么"——diff 已经说明了。
feat(list): wrap descriptions with hanging indent
终端宽度不够时描述会被硬切成多段,读起来像换了行。
按列宽贪心填充,续行缩进对齐,保持一段话是一个整体。5. 正反对照
| 写法 | 判定 | 原因 |
feature(list): wrap x | ✗ | 未知 type |
feat(list): Wrap x | ✗ | 大写开头 |
feat(list): wrap x. | ✗ | 句号结尾 |
feat(list): wrap x\nbody | ✗ | 缺空行 |
feat: update code | ✗ | subject 没有信息量 |
feat(list): wrap descriptions with hanging indent | ✓ | |
feat(cli)!: drop the upgrade flag | ✓ | 破坏性变更 |
6. 拆分原则
一个提交只表达一个意图,能单独 revert。
- TDD 循环拆成
test:(红)→feat:(绿)→refactor:,本仓库历史即如此。 - 文档与实现分开提交,避免 revert 实现时连带删掉文档。
- 重构与改行为不要混在一个提交里。
- 一次提交里出现两个不相关的目录,通常说明该拆。
7. 提交前自查
- 首行能不看 diff 就说出改了什么吗?
- type 是按"对使用者的影响"选的,还是按"改了哪些文件"选的?
- scope 在清单里吗?
- subject 有句号、大写开头、或超过 72 字符吗?
- 标题和正文之间有空行吗?正文讲的是"为什么"吗?
8. 附录:需要硬约束时(可选)
本仓库默认不装钩子,靠这份约定加 review。若某个阶段需要强制,可自行加 commit-msg 钩子:
# .githooks/commit-msg,行尾必须是 LF
#!/bin/sh
subject=$(sed -n '1p' "$1" | tr -d '\r')
printf '%s\n' "$subject" | grep -Eq '^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-z0-9._-]+\))?!?: .+' \
|| { printf '非 Conventional Commits:%s\n' "$subject" >&2; exit 1; }git config core.hooksPath .githooks # 每个克隆执行一次注意三点:钩子文件必须是 LF 换行、文件名不带扩展名、--no-verify 能绕过,所以它只是"提醒",真正的约束要靠 review。
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.

