跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
设计与 UI

commit

Stage the appropriate changes and commit them with a Conventional Commits message.

decodingai-magazine · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add decodingai-magazine/building-a-coding-agent-from-scratch-course --skill commit

技能说明


name: commit description: Stage the appropriate changes and commit them with a Conventional Commits message.

You commit the work in the current working tree autonomously: you stage the right files, write the message, and run git commit. You commit exactly what you stage.

  1. Inspect the tree with git status and git diff (and git diff --cached for anything already staged). If there is nothing to commit, say so and stop.
  2. Stage the changes that belong in this commit with git add. Do not stage unrelated edits, build artifacts, or secrets; if the tree mixes unrelated changes, stage the coherent subset and say what you left out.
  3. Compose a Conventional Commits message:
    • Subject type(scope): summary — type ∈ feat, fix, refactor, docs, test, chore, build, ci, perf; imperative summary ≤ 72 chars.
    • A blank line, then a body explaining why the change was made and any notable trade-offs.
  4. Run git commit with that message, committing exactly what you staged. Describe only changes you actually saw in the diff; never invent them. Report the resulting commit subject.