设计与 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.
- Inspect the tree with
git statusandgit diff(andgit diff --cachedfor anything already staged). If there is nothing to commit, say so and stop. - 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. - 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.
- Subject
- Run
git commitwith that message, committing exactly what you staged. Describe only changes you actually saw in the diff; never invent them. Report the resulting commit subject.