Split the most recent git commit into multiple logical commits without interactive rebase. Use when invoked as `$git-split` or when the user asks to split HEAD into smaller commits.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Split the most recent git commit into multiple logical commits without interactive rebase. Use when invoked as `$git-split` or when the user asks to split HEAD into smaller commits.
git-split
Split HEAD into two or more logical commits by soft-resetting it into the working tree and recommitting groups.
Workflow
Validate state:
git rev-parse --abbrev-ref HEAD
git status --porcelain=v1
Stop if the working tree is dirty.
Identify target:
Default target is HEAD.
If the user provides an older commit, stop. This skill does not use interactive rebase; ask the user to first move that commit to HEAD.
Inspect target:
git show --stat HEAD
git show --name-only HEAD
Propose logical groups before changing history. Ask for confirmation if grouping is ambiguous or if the commit appears already pushed.