← 返回 Skills 市场
laimiaohua

GI Git Commit Helper

作者 laimiaohua · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
243
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install gi-git-commit-helper
功能描述
Generate descriptive commit messages by analyzing git diffs. Use when the user asks for help writing commit messages or reviewing staged changes.
使用说明 (SKILL.md)

Git Commit 提交信息生成

根据 git diff 分析变更内容,生成符合 Conventional Commits 规范的提交信息。

何时使用

  • 用户请求「帮我写 commit message」「生成提交信息」
  • 用户提到「git commit」「提交说明」
  • 审查已暂存变更并生成描述

提交格式

遵循 Conventional Commits:

\x3Ctype>(\x3Cscope>): \x3Csubject>

[optional body]

type 类型

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

scope 范围(可选)

  • 后端:apiservicedaorouterauth
  • 前端:componentviewrouterstore
  • 通用:configdepsdb

subject 主题

  • 使用祈使句,如「add」「fix」「update」
  • 首字母小写,结尾不加句号
  • 控制在 50 字符内

示例

示例 1:

  • 变更:新增用户登录接口
  • 输出:feat(auth): add JWT login endpoint

示例 2:

  • 变更:修复报表日期时区显示错误
  • 输出:fix(reports): correct date timezone in report generation

示例 3:

  • 变更:重构订单服务,拆分支付逻辑
  • 输出:refactor(service): extract payment logic from order service

示例 4:

  • 变更:更新 Vue 依赖版本
  • 输出:chore(deps): upgrade vue to 3.4.x

生成流程

  1. 运行 git diff --stagedgit diff 获取变更
  2. 分析变更文件与内容(新增/修改/删除)
  3. 确定 type 和 scope
  4. 用中文或英文写出简洁的 subject
  5. 若变更复杂,可加简短 body 说明
安全使用建议
This skill is internally coherent and simply instructs the agent to read git diffs and produce commit messages. Before using it, be aware that: (1) the agent will inspect repository diffs — do not run it on code or data you consider confidential unless you trust the model provider and execution environment; (2) the model may include parts of the diff in its prompt to generate better messages, so private code could be exposed; (3) always review generated commit messages before committing (they may be syntactically fine but semantically incorrect). If you have sensitive repos, restrict the skill to local-only use or avoid sending diffs to remote models.
功能分析
Type: OpenClaw Skill Name: gi-git-commit-helper Version: 1.0.0 The skill is a standard utility designed to help users generate git commit messages following the Conventional Commits specification. It instructs the agent to analyze code changes using 'git diff' and provides clear, task-aligned guidelines for formatting commit messages. No malicious code, data exfiltration, or suspicious instructions were found in SKILL.md or _meta.json.
能力评估
Purpose & Capability
Name/description match the instructions: the SKILL.md only describes analyzing git diffs and producing Conventional Commit-style messages. It does not request unrelated credentials, binaries, or config paths.
Instruction Scope
Runtime instructions only direct the agent to run 'git diff --staged' or 'git diff' and produce type/scope/subject/body. They don't ask the agent to read unrelated files, environment variables, or send data to external endpoints beyond normal model use.
Install Mechanism
No install spec and no code files are present (instruction-only). Nothing is downloaded or written to disk by an installer.
Credentials
The skill declares no required environment variables, credentials, or config paths — consistent with its function of formatting commit messages from local git diffs.
Persistence & Privilege
always is false and the skill does not request persistent privileges or modify other skills or system settings. Autonomous invocation is allowed by platform default but is not combined with broad credential access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gi-git-commit-helper
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gi-git-commit-helper 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release. Generate Conventional Commits from git diff. Gravitech Innovations.
元数据
Slug gi-git-commit-helper
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

GI Git Commit Helper 是什么?

Generate descriptive commit messages by analyzing git diffs. Use when the user asks for help writing commit messages or reviewing staged changes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 243 次。

如何安装 GI Git Commit Helper?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install gi-git-commit-helper」即可一键安装,无需额外配置。

GI Git Commit Helper 是免费的吗?

是的,GI Git Commit Helper 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GI Git Commit Helper 支持哪些平台?

GI Git Commit Helper 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GI Git Commit Helper?

由 laimiaohua(@laimiaohua)开发并维护,当前版本 v1.0.0。

💬 留言讨论