返回顶部
g

git-commit-helperGit提交助手

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
283
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

git-commit-helper

Git 提交信息指南

格式

每条提交信息必须遵循以下结构:

<类型>(<作用域>): <主题>

[可选正文]

[可选脚注]

类型(必填)

类型使用场景
feat新功能或能力
fix
错误修复 | | docs | 仅文档变更 | | refactor | 既非修复也非新增的代码变更 | | test | 添加或更新测试 | | chore | 构建、CI、工具链变更 |

作用域(必填)

作用域必须是该项目中的真实模块名称。
完整列表请参见 references/modules.md

如果不确定作用域,请检查正在更改的文件路径——顶层目录通常是正确的作用域。

主题(必填)

  • - 使用祈使语气:add feature 而非 added feature
  • 末尾不加句号
  • 总长度不超过72个字符(包括类型和作用域前缀)
  • 首字母小写

正文(可选)

  • - 解释原因,而非内容(差异对比已显示内容变化)
  • 每行不超过72个字符
  • 与主题之间用空行分隔

破坏性变更

如果提交引入了破坏性变更,请添加脚注:

BREAKING CHANGE: <变更内容描述及迁移路径>

示例

正确示例:

feat(auth): add JWT token refresh endpoint

Tokens now auto-refresh 5 minutes before expiry.
Previously users had to re-login after token expiration.

fix(parser): handle empty input without crashing

refactor(db): extract connection pooling to separate module

BREAKING CHANGE: DatabaseClient constructor no longer accepts
pool config. Use PoolConfig.create() instead.

错误示例:

updated some stuff ← 缺少类型和作用域,表述模糊
feat: Add new Feature. ← 首字母大写,末尾有句号,缺少作用域
fix(misc): various fixes ← misc 不是真实模块

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 git-cmt-helper-1776207926 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 git-cmt-helper-1776207926 技能

通过命令行安装

skillhub install git-cmt-helper-1776207926

下载

⬇ 下载 git-commit-helper v1.0.0(免费)

文件大小: 2.16 KB | 发布时间: 2026-4-15 12:00

v1.0.0 最新 2026-4-15 12:00
- Initial release of git-commit-helper skill.
- Generates standardized git commit messages using the Conventional Commits format.
- Enforces required fields: type, project module scope, and subject line rules.
- Supports structured messages with optional body and breaking change documentation.
- Helps teams maintain consistent, high-quality commit practices.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部