conventional-commits

Installation
SKILL.md

Conventional Commits

本技能用于在执行 git commit 前,为当前变更生成符合 Conventional Commits 1.0.0 的提交信息。

官方规范参考:https://www.conventionalcommits.org/zh-hans/v1.0.0/

默认语言要求:提交信息的人类可读内容使用中文。Conventional Commits 的结构化关键字仍保持规范要求的英文形式,例如 featfixdocsBREAKING CHANGE

目标不是机械套模板,而是让提交标题准确表达“这次提交的主要意图”。如果当前暂存区混入了多个不相关变更,优先拆分提交,而不是写一个含糊的大杂烩 message。

Workflow

  1. 先看本次提交的真实范围。
    • 运行 git status --shortgit diff --cached --stat,必要时查看 git diff --cached
    • 只根据已经 staged 的内容写提交信息;不要把未暂存改动算进去。
    • 如果 staged 里混入多个彼此独立的意图,优先建议拆成多个 commit。
Installs
2
First Seen
Apr 13, 2026
conventional-commits — why8023/agent-skills