commit
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/tkersey/dotfiles --skill commit
Agent 安装分布
amp
1
cline
1
opencode
1
cursor
1
continue
1
kimi-cli
1
Skill 文档
Commit
Intent
Carve changes into surgical commits: one coherent change, minimal blast radius, and at least one feedback signal before committing.
When to use
- âSplit this into micro commits.â
- âStage only the minimal change and commit it.â
- âKeep the commits tiny, keep checks passing.â
Workflow (Surgeonâs principle)
1) Scope the incision
- Identify the smallest change that can stand alone.
- Isolate unrelated edits; avoid drive-by refactors/formatting unless required for correctness.
2) Stage surgically (non-interactive-first)
Inspect:
git status -sbgit diff
Stage what you intend (prefer file-level staging in non-interactive harnesses):
git add <paths...>git restore --staged <paths...>
Verify:
git diff --cachedmatches the intended incision.
If you truly need hunk-level staging but your environment canât do interactive staging, ask the user to stage hunks locally or provide a patch you can apply.
3) Validate the micro scope
- Optional helper:
scripts/micro_scope.py(staged vs unstaged size). - If the staged diff is multi-concern, split it before running checks.
4) Close the loop (required)
- Select the tightest available signal and run it.
- If the repoâs test/check command is not discoverable, ask for the preferred command.
- Reference:
references/loop-detection.md.
5) Commit
- Use a terse message; optimize for clarity, not poetry.
- Commit only after at least one signal passes.
6) Repeat
Repeat until the working tree is clean or the remaining changes are intentionally deferred.
Guardrails
- Donât widen scope without asking.
- Prefer the smallest check that meaningfully exercises the change.
- Donât claim completion without a passing signal.
Resources
scripts/micro_scope.pyreferences/loop-detection.md