commit-msg

Analyze staged git diffs and generate Conventional Commits compliant messages.

149|22|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/luzhenqian/ai-coding-lab --skill commit-msg-luzhenqian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-msg
Source: https://github.com/luzhenqian/ai-coding-lab/tree/main/skills/.claude/skills/commit-msg
Command: npx skills add https://github.com/luzhenqian/ai-coding-lab --skill commit-msg-luzhenqian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

自动分析当前 git 暂存区的变更内容,生成符合 Conventional Commits 规范的 commit message,帮助团队保持提交历史清晰、可追溯,并简化变更日志的生成。

Core Features & Use Cases

  • 自动读取 git diff --staged 并评估变更范围、类型和规模,给出符合规范的提交信息模板。
  • 提供对大变更的拆分建议,支持逐步提交以保持历史可读性。
  • 提供一致性检测与风格指导,确保团队在不同分支之间保持提交格式统一。

Quick Start

在包含待提交变更的项目根目录下运行此技能以生成符合规范的 commit message。

Frequently Asked Questions about commit-msg

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate conventional commit messages from staged git changes?

To automatically generate conventional commit messages, this Skill analyzes your git staging area diffs and evaluates the change scope to output a compliant commit message template. It reads the staged changes and enforces Conventional Commits types to ensure history consistency.

How do I split large git changes for better commit history readability?

To split large git changes for better commit history readability, this Skill analyzes staged diffs and provides optional split suggestions. This supports step-by-step commits, keeping your versioning history clear and traceable across multi-file changes.

What is conventional commits automation and how does it enforce code quality?

Conventional commits automation enforces code quality by applying standardized commit types and analyzing staged diffs. This mechanism ensures your team maintains a consistent git workflow, which simplifies changelog automation and makes versioning traceable.

Can I use this to enforce commit message consistency across different git branches?

Yes, you can use this to enforce commit message consistency across different git branches. It provides consistency detection and guideline-driven messaging, ensuring teams maintain unified versioning and commit formats regardless of the branch.

Do I need any external dependencies to standardize git commit messages?

No external dependencies are needed to standardize git commit messages with this Skill. It operates independently to analyze your current git staging area and generate Conventional Commits compliant messages directly within your software development workflow.