commit

Carve changes into surgical commits: one coherent change, minimal blast radius, and at least one feedback signal before committing.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "commit" with this command: npx skills add tkersey/dotfiles/tkersey-dotfiles-commit

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.

  1. Stage surgically (non-interactive-first)

Inspect:

  • git status -sb

  • git diff

Stage what you intend (prefer file-level staging in non-interactive harnesses):

  • git add <paths...>

  • git restore --staged <paths...>

Verify:

  • git diff --cached matches 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.

  1. 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.

  1. 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 .

  1. Commit
  • Use a terse message; optimize for clarity, not poetry.

  • Commit only after at least one signal passes.

  1. 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.py

  • references/loop-detection.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

grill-me

No summary provided by upstream source.

Repository SourceNeeds Review
General

creative-problem-solver

No summary provided by upstream source.

Repository SourceNeeds Review
General

complexity-mitigator

No summary provided by upstream source.

Repository SourceNeeds Review
General

mesh

No summary provided by upstream source.

Repository SourceNeeds Review