AgentSkillsCN

commit

根据当前变更与近期仓库提交历史,撰写提交信息并执行实际的Git提交。在用户提出“提交”“撰写提交信息”“提交这项工作”,或希望提交信息与过往提交记录保持一致时使用。

SKILL.md
--- frontmatter
name: commit
description: Create commit messages and run actual Git commits based on current changes and recent repository commit history. Use when asked to "commit", "write a commit message", "commit this work", or when the user wants commit wording aligned with past messages.

Commit Workflow

Follow this sequence every time:

  1. Inspect repository state.
  2. Inspect recent commit message style.
  3. Summarize the current change scope.
  4. Draft one concise commit message that matches local history.
  5. Stage and commit with non-interactive commands.
  6. Verify and report result.