Skip to content

git-commit

将当前改动整理为清晰 commit,并生成符合仓库风格的 commit message。

基本信息

字段内容
Skillgit-commit
类型internal-only
研发链路位置Code
入口internal_only
Sourceskills/git-commit/SKILL.md

描述

Create a git commit with a clear, value-communicating message. Use when the user says "commit", "commit this", "save my changes", "create a commit", or wants to commit staged or unstaged work. Produces well-structured commit messages that follow repo conventions when they exist, and defaults to conventional commit format otherwise.

何时使用

  • 用户明确要求 commit。
  • 一组验证完成的改动需要保存为提交。
  • 需要从 diff 提炼价值导向的提交说明。

工作步骤

  • 读取 plan、task pack、bug report 或明确实现目标。
  • 建立小步任务列表,按现有代码模式做最小必要修改。
  • 运行聚焦验证、测试、构建、浏览器或平台检查。
  • 把 diff、验证结果和剩余风险交给 review 或 knowledge 阶段。

输出

  • 实现 diff、测试结果、构建输出、浏览器截图或运行证据。
  • 必要时输出 blocked 原因,而不是扩大 scope。

Agent 调度

  • 小任务通常 inline;大任务可按文件边界使用 serial 或 parallel workers。
  • 调试、优化、UI、平台专项可引入对应 specialist agents,但 orchestrator 负责最终集成。

边界

  • 提交前必须遵守项目验证和 GitNexus 变更检测规则。
  • 不应混入无关文件。