← 返回 Skills 市场
ericlooi504

Commit Message Generator

作者 ericlooi504 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
31
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install git-commit-gen
功能描述
Generate conventional, descriptive commit messages from git diffs. Analyzes staged changes or branch diffs and produces well-formatted commit messages follow...
使用说明 (SKILL.md)

Commit Message Writer

Generate conventional, descriptive, and scoped commit messages from your git diffs — no more "fixed bug" or "updated files".

When to Use

USE this skill when:

  • "Write a commit message for my staged changes"
  • "Generate a commit message from this diff"
  • "Rewrite my last commit message to be conventional"
  • "Generate changelog-style messages for commits abc..def"
  • "Summarize what changed in this branch"
  • "Generate messages for all unpushed commits"
  • "Check if my commit message follows conventions"

DON'T use this skill when:

  • Need sweeping refactors explained → use a code review skill
  • Need full changelog generation between releases → use a release tool
  • Working on binary-only repos (no meaningful diff)

How It Works

  1. Reads the git diff (staged, branch, or provided inline)
  2. Analyzes what files changed, what functions/classes were affected, and the nature of each change
  3. Constructs a Conventional Commits message:
    \x3Ctype>(\x3Cscope>): \x3Cshort summary>
    
    \x3Cbody>
    
    \x3Cfooter>
    
  4. Explains the reasoning so you can review before committing

Available Actions

write:staged

Read git diff --staged and generate a commit message.

Write a commit message for my staged changes

→ Analyzes staged diff, outputs a formatted commit message with type, scope, description, and body.

write:diff

Read changes between the current branch and its base (main/master).

Summarize all changes in this branch as a commit message

write:range

Generate a changelog or multiple commit messages for a range of commits.

Generate conventional commit messages for commits HEAD~5..HEAD

write:provided

Given an inline diff or file list, generate a commit message.

Here's a diff: [...paste diff...]. Write a commit message.

rewrite:last

Improve the last commit message to follow conventions.

Rewrite my last commit message in conventional format

validate

Check whether a message follows Conventional Commits.

Validate this message: "fix(api): handle null pointer in user lookup"

→ Confirms it's valid, or explains what to fix.

Commit Type Reference

Type Usage
feat A new feature
fix A bug fix
docs Documentation only changes
style Formatting, missing semicolons, etc. (no logic)
refactor Code change that neither fixes a bug nor adds a feature
perf Code change that improves performance
test Adding or correcting tests
chore Build, CI, dependencies, tooling
ci CI/CD configuration changes

Example

User: "Write a commit message for my staged changes"

Assistant: (runs git diff --staged, analyzes changes)

feat(auth): add OAuth2 refresh token rotation

- Implement refresh token rotation on every token refresh
- Invalidate old refresh tokens immediately after use
- Add TTL config for refresh tokens (default 30 days)
- Update token endpoint to return rotated refresh token

Closes: #452

Notes

  • Always shows you the proposed message before suggesting you run git commit.
  • Respects .gitignore — won't try to diff ignored files.
  • For large diffs (>500 lines), summarizes chunk-level changes rather than line-by-line.
安全使用建议
This skill appears safe and purpose-aligned for drafting commit messages. Before using it, make sure your staged diff does not contain secrets or highly sensitive code, and do not provide credentials because the reviewed instructions do not require them.
功能分析
Type: OpenClaw Skill Name: git-commit-gen Version: 1.0.0 The skill bundle is a standard utility for generating conventional commit messages from git diffs. It contains only metadata and instructions (SKILL.md) for an AI agent to execute git commands (e.g., 'git diff --staged') and format the output. There is no executable code, no evidence of data exfiltration, and no malicious prompt injection.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose, required git binary, and instructions all align around generating Conventional Commit messages from staged changes, diffs, commit ranges, or provided text.
Instruction Scope
The skill documents read-oriented Git diff and history inspection, and says it shows the proposed message before suggesting a commit; users should still confirm before allowing any commit or amend action.
Install Mechanism
There is no install spec and no code files; this is an instruction-only skill requiring only the git binary.
Credentials
Reading Git diffs is necessary for the purpose, but diffs may contain private source code, internal implementation details, or accidentally staged secrets.
Persistence & Privilege
No persistence or credential use is described in SKILL.md, but the provided capability signals unexpectedly list OAuth/sensitive credentials despite metadata declaring no required credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install git-commit-gen
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /git-commit-gen 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release — generate conventional commit messages from git diffs
元数据
Slug git-commit-gen
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Commit Message Generator 是什么?

Generate conventional, descriptive commit messages from git diffs. Analyzes staged changes or branch diffs and produces well-formatted commit messages follow... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 31 次。

如何安装 Commit Message Generator?

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

Commit Message Generator 是免费的吗?

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

Commit Message Generator 支持哪些平台?

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

谁开发了 Commit Message Generator?

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

💬 留言讨论