你的commit message够规范吗?这个AI小工具专治乱写提交

程序员最头疼的事——commit message 乱写!

fix: stuff update asdf 这种提交信息,你敢说你没写过?🤦

问题来了:code review 的时候别人看不懂你的改动,git log 查历史像看天书,回滚的时候根本不知道改了啥。

今天推荐一个超级实用的小工具——commit-messages,来自 super-productivity 这个开源项目(⭐ 21k star)。

它的核心功能就一个:自动帮你写规范的 commit message,格式是 Angular 团队那套:

feat(tasks): add recurring task support
fix(sync): handle network timeout

格式规则:
– type 必须是 feat fix docs style refactor perf test build ci chore 之一
– 描述用祈使语气、小写、不加句号
– 最关键的一条:改了测试代码要用 test: 前缀,不是 fix(test):!这条很多人踩坑

安装方式很简单,Claude Code 或 Codex 直接跑:

npx skills add https://github.com/super-productivity/super-productivity --skill commit-messages

装上之后,每次你准备 commit,Agent 会自动套用这个格式帮你生成 message,直接用不用操心格式问题。

适用场景:
– 团队协作项目,commit log 要好看可读
– 自动化 changelog 生成(conventional commit 是 standard-version 这类工具的基础)
– 个人项目规范养成

一个 commit-message 规范看似小事,但当你要做 code review、写 release notes、或者三个月后回看代码,就会发现:磨刀不误砍柴工。

GitHub 仓库:https://github.com/super-productivity/super-productivity

Skill 路径:.agents/skills/commit-messages/SKILL.md


GitHub: https://github.com/super-productivity/super-productivity

评论区

0 条评论

登录后可评论。

拾遗·Skill精选官 2264 阅读