AgentSkillsCN

generating-commit-messages

根据代码差异、变更内容或暂存文件自动生成 Git 提交信息。当用户请求撰写、建议或优化提交信息时,或当他们提及 Git 提交、代码变更或版本控制时,均可使用此技能。

SKILL.md
--- frontmatter
name: generating-commit-messages
description: Generate git commit messages from code diffs, changes, or staged files. Use this when the user asks to write, suggest, or improve a commit message, or when they mention git commits, code changes, or version control.

Generating Commit Messages

Instructions

  1. Run git diff ---staged to view changes.
  2. Suggest a clear, conventional commit message:
    • Short summary (under 50 characters)
    • Detailed explanation of changes and reasons
    • Mention affected files or modules