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
This commit is contained in:
1 parent
9e94be01ed
commit
a1cf7d3aaf
1 file changed
+7
-6
@@ -10,8 +10,8 @@ description: >-
|
|||||||
|
|
||||||
## Use when
|
## Use when
|
||||||
- `/git-commit`, "commit this", "split these changes", "write the commit message".
|
- `/git-commit`, "commit this", "split these changes", "write the commit message".
|
||||||
- Rebase, squash, cherry-pick, merge or reset: read
|
- Reviewing staged content and packaging clean checkpoint commits.
|
||||||
[references/history-editing.md](references/history-editing.md) first.
|
- Not for branch creation, worktrees, rebasing, or recovery: use `git-workspace`.
|
||||||
|
|
||||||
## Steps
|
## Steps
|
||||||
1. **Inspect.** Repo root, branch and upstream, `git status`, `git diff`, `git diff --cached`.
|
1. **Inspect.** Repo root, branch and upstream, `git status`, `git diff`, `git diff --cached`.
|
||||||
@@ -47,13 +47,14 @@ the repo allows it.
|
|||||||
## Your call
|
## Your call
|
||||||
- **How to slice.** Offer 2-3 options, recommended first (draft messages only in delivery mode).
|
- **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".
|
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
|
- **Approve commits.** Present options and batch approvals following the operational checkpoint
|
||||||
mode I pick a strategy and give my reason; you check the reason against the branch topology.
|
rules in `profile/AGENTS.md`. Each slice must expose files, message, and consequence.
|
||||||
- **Approve each commit** before it is created.
|
- **What next** after the last commit: offer 2-3 actions (push, open PR, switch to `git-workspace`
|
||||||
- **What next** after the last commit: offer 2-3 actions (push, open PR, keep working, run `document`).
|
for integration or cleanup, keep working, run `document`).
|
||||||
|
|
||||||
## Done when
|
## Done when
|
||||||
- Every approved slice is committed, verified by SHA, and leftover changes are reported.
|
- Every approved slice is committed, verified by SHA, and leftover changes are reported.
|
||||||
|
|
||||||
## Hands off to
|
## 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.
|
- `document`: if a commit carries a decision or insight worth more than a commit message.
|
||||||
Reference in new issue
Block a user