← 返回
未分类 中文

Commit Message Generator

Generate conventional, descriptive commit messages from git diffs. Analyzes staged changes or branch diffs and produces well-formatted commit messages follow...
根据 git diff 生成常规且描述性的提交信息。分析暂存更改或分支差异,生成符合规范的格式化提交信息。
ericlooi504 ericlooi504 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 305
下载
💾 0
安装
1
版本
#conventional-commits#git#latest#productivity

概述

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:

```

():

```

  1. 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

TypeUsage
-------------------------------------------------------------
featA new feature
fixA bug fix
docsDocumentation only changes
styleFormatting, missing semicolons, etc. (no logic)
refactorCode change that neither fixes a bug nor adds a feature
perfCode change that improves performance
testAdding or correcting tests
choreBuild, CI, dependencies, tooling
ciCI/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.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 02:37 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,290
dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,159
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 687 📥 331,360