commit

Generate structured Git commit messages with subject, scope, and rationale.

333|92|Updated Jun 9, 2025
One-click install
npx skills add https://github.com/shenjingnan/xiaozhi-client --skill commit-shenjingnan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/shenjingnan/xiaozhi-client/tree/main/.claude/skills/commit
Command: npx skills add https://github.com/shenjingnan/xiaozhi-client --skill commit-shenjingnan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

生成结构化、便于评审的提交信息,帮助团队快速理解代码改动的动机与内容。

Core Features & Use Cases

  • 自动分析代码变动并提炼改动要点,给出清晰的 commit subject。
  • 根据变更类型(feat/fix/refactor),自动选择合适的 scope 和描述,并提供改动原因与影响范围。
  • Use Case: 当你完成一个功能实现后,运行技能即可获得可直接用于 git commit 的信息,节省手动撰写时间。

Quick Start

使用 commit 技能输入并提交,例如:git commit -m "<自动生成的提交信息>"

Frequently Asked Questions about commit

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

FAQPage Schema
How do I generate structured Git commit messages for code review?

To generate structured Git commit messages, this Skill analyzes your code changes and automatically outputs a concise subject, optional scope, and detailed body covering rationale, impact, and validation notes.

What is the best way to automate writing commit messages that explain why changes were made?

Automating commit messages is best handled by analyzing code diffs to extract change types like features, fixes, or refactors, then generating a review-friendly message that explicitly explains the rationale behind the modifications.

Can I use automated commit generation for general software projects covering features and refactors?

Yes, you can use automated commit generation for ordinary software projects, as it applies to various modules and covers features, fixes, and refactors while emphasizing the motivation behind the code changes.

How to write a git commit message that includes impact and validation notes?

To write a git commit message with impact and validation notes, the Skill implements structured formatting by appending a detailed body to the clear subject, documenting the change's effect and testing verification.

Does this commit message generator require specific dependencies or components?

No, this commit message generator does not require any specific dependencies or components, allowing you to directly integrate the generated output into your standard git commit workflow.