From a1cf7d3aaff7201b1819a9a5832ce286bfc41de6 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Sat, 31 Oct 2026 09:31:10 -0500 Subject: [PATCH] refactor(git-commit): sharpen focus on checkpoint slicing and reference profile approval policy - Hand off branch creation, worktrees, rebasing, and recovery to git-workspace - Reference profile/AGENTS.md for structured batch approvals of commit slices - Update post-commit actions and handoffs --- skills/git-commit/SKILL.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/skills/git-commit/SKILL.md b/skills/git-commit/SKILL.md index 33832eb..78bcc20 100644 --- a/skills/git-commit/SKILL.md +++ b/skills/git-commit/SKILL.md @@ -10,8 +10,8 @@ description: >- ## Use when - `/git-commit`, "commit this", "split these changes", "write the commit message". -- Rebase, squash, cherry-pick, merge or reset: read - [references/history-editing.md](references/history-editing.md) first. +- Reviewing staged content and packaging clean checkpoint commits. +- Not for branch creation, worktrees, rebasing, or recovery: use `git-workspace`. ## Steps 1. **Inspect.** Repo root, branch and upstream, `git status`, `git diff`, `git diff --cached`. @@ -47,13 +47,14 @@ the repo allows it. ## Your call - **How to slice.** Offer 2-3 options, recommended first (draft messages only in delivery mode). Example: "1 commit" / "2 commits: refactor + feature" / "3 commits: refactor, feature, tests". -- **Integration strategy.** Only when a real merge/rebase/cherry-pick choice exists. In learning - mode I pick a strategy and give my reason; you check the reason against the branch topology. -- **Approve each commit** before it is created. -- **What next** after the last commit: offer 2-3 actions (push, open PR, keep working, run `document`). +- **Approve commits.** Present options and batch approvals following the operational checkpoint + rules in `profile/AGENTS.md`. Each slice must expose files, message, and consequence. +- **What next** after the last commit: offer 2-3 actions (push, open PR, switch to `git-workspace` + for integration or cleanup, keep working, run `document`). ## Done when - Every approved slice is committed, verified by SHA, and leftover changes are reported. ## Hands off to +- `git-workspace`: for branch management, worktrees, rebasing, integration, or recovery. - `document`: if a commit carries a decision or insight worth more than a commit message.