commit

当需要对 git repo 生成提交(commit)信息时,务必使用本Skill

⭐4stars🔀2forks📁View on GitHub🕐Updated Nov 25, 2025⬇️2downloads

When & Why to Use This Skill

This Claude skill automates the creation of professional Git commit messages by analyzing repository changes. It intelligently summarizes modifications—including new, edited, and deleted files—into functional updates that strictly adhere to the Conventional Commits specification. By providing structured and concise titles like 'feat(scope)' or 'fix(scope)', it enhances repository maintainability and ensures a clean, readable version control history.

Use Cases

  • Standardizing Team Workflows: Maintain a consistent and professional commit history across large development teams by enforcing the Conventional Commits standard automatically.
  • Streamlining Release Management: Generate high-quality commit logs that are perfectly formatted for automated changelog generators and semantic versioning tools.
  • Summarizing Complex Refactors: Analyze multi-file changes to produce logic-based summaries rather than simple file lists, making it easier for reviewers to understand the intent of the code changes.
  • Improving Productivity: Save developer time and reduce mental overhead by delegating the task of drafting descriptive and accurate commit messages to the AI agent.
namecommit
description当需要对 git repo 生成提交(commit)信息时,务必使用本Skill

对每一个需要生成提交(commit)信息的 git repo 项目,必须分别独立地且完整地按照以下流程来生成信息:

  1. 进入"目标目录",如果该参数为空则以当前工作目录为目标
  2. 检查从上次 git commit 到现在的所有文件改动情况,包括新增的、修改的、删除的文件,无论其是否已经 staged
  3. 根据所有增删改文件的改动情况,以功能为单位,而不是以文件为单位,生成提交信息
  4. 输出提交信息

要求:

  • 简洁,不说废话,更不要写成流水账或使用说明
  • 必须严格遵守约定式提交(Conventional Commits)的格式要求,并在标题中标注范围,如 feat(map)、feat(mining)
  • 只生成提交信息并输出,不要提交