agentleFS
almax000almax000/claude-skills/commit-helper/SKILL.md

commit-helper

Skill1 starsChanged 7 months agoMITView on GitHub

生成清晰的 Git 提交消息。写提交消息、准备提交时使用。

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use code-reviewer.

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.

The file

Files
SKILL.md

Git 提交消息助手

使用步骤

  1. 运行 git diff --staged 查看已暂存的更改
  2. 分析更改的性质和目的
  3. 生成符合规范的提交消息

提交消息格式

<type>(<scope>): <subject>

<body>

<footer>

Type 类型

类型说明
feat新功能
fixBug 修复
docs文档更新
style代码格式(不影响逻辑)
refactor重构(不是新功能也不是修复)
perf性能优化
test测试相关
chore构建/工具/依赖更新

Scope 范围

  • 可选,表示影响的模块/组件
  • 例如:feat(auth), fix(api), docs(readme)

Subject 标题

  • 50 字符以内
  • 使用祈使句("add" 而非 "added")
  • 首字母小写
  • 结尾不加句号

Body 正文

  • 解释「为什么」而不是「做了什么」
  • 每行 72 字符以内
  • 可以用 - 列出要点

Footer 脚注

  • 关联 issue:Fixes #123 或 Closes #456
  • 破坏性更改:BREAKING CHANGE: description

示例

feat(auth): add OAuth2 login support

- Implement Google OAuth2 flow
- Add token refresh mechanism
- Store tokens securely in encrypted storage

This enables users to login with their Google accounts,
reducing friction in the signup process.

Closes #234
fix(api): handle null response from payment gateway

The payment gateway occasionally returns null instead of
an error object. This caused uncaught exceptions in
production.

Added null check and proper error handling.

Fixes #567

原则

  • 一个提交做一件事
  • 消息要有意义,方便日后查找
  • 写给未来的自己和同事看

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.