AgentSkillsCN

commit-commands

预提交代码规范与提交信息撰写指南。

SKILL.md
--- frontmatter
name: commit-commands
description: Pre-commit hygiene and commit message guidance

Commit Commands Skill

Use this when preparing to commit or finalize a PR.

Pre-commit checklist

  • Run relevant tests and linters.
  • Check git status to avoid unintended files.
  • Confirm the change matches the intended scope.

Commit message guidance

  • Use concise, present-tense summaries.
  • Prefer a short subject line and optional body for context.
  • Avoid bundling unrelated changes in one commit.

Reminders

  • Do not amend or rewrite history unless explicitly asked.
  • Avoid destructive git commands unless requested.