commit-message

Generate standardized Git commit messages from code differences with user confirmation.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/liuhean2021/Anan-Agent-Skills --skill commit-message-liuhean2021
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-message
Source: https://github.com/liuhean2021/Anan-Agent-Skills/tree/main/skills/commit-message
Command: npx skills add https://github.com/liuhean2021/Anan-Agent-Skills --skill commit-message-liuhean2021

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the generation of规范 (standardized) Git commit messages based on code changes, ensuring consistency and clarity in your commit history. It also adds a crucial confirmation step before committing.

Core Features & Use Cases

  • Automated Commit Message Generation: Creates commit messages based on git diff output, categorizing changes (fix, feat, refactor, etc.).
  • Structured Output: Formats messages with a type, branch, summary, detailed list of changes, and author attribution.
  • Confirmation Workflow: Prompts the user for explicit confirmation before executing git commit, preventing accidental commits.
  • Use Case: After making several code modifications, you can ask the agent to "commit my changes," and it will generate a well-formatted message, ask for your approval, and then perform the commit.

Quick Start

Ask the agent to generate a commit message for your current changes.

Frequently Asked Questions about commit-message

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

FAQPage Schema
How do I generate a standardized Git commit message from code differences?

To generate a standardized Git commit message, this Skill analyzes your git diff output, categorizes changes into types like fix or feat, and structures the message with a summary and detailed change list. It prompts for your confirmation before executing the commit.

What is the best way to automate Git commit message formatting for version control?

Automating Git commit message formatting is best handled by generating structured logs directly from code differences. This Skill categorizes modifications, formats them with branch context and author attribution, and requires explicit user approval before running git commit.

Can I review and confirm Git commit messages before they are executed?

Yes, you can confirm Git commit messages before execution. This Skill enforces a confirmation workflow by displaying the generated structured message and waiting for your explicit approval before performing the actual git commit operation.

Does this commit message generator work with my existing Git repository workflow?

This commit message generator works with your existing Git repository workflow by requiring access to Git repository information. It reads code differences directly from your version control environment to produce structured commit logs.

When do I need an automated commit message generator for my development workflow?

You need an automated commit message generator when your software development workflow requires consistent and informative commit logs. It solves the problem of manual formatting by standardizing messages based on analyzed code differences.