Undo last commit (keeps changes staged)
Revert the most recent commit while keeping its changes staged. Use this to quickly fix a commit message or split changes, but only for commits that haven't been pushed yet.
/plugin marketplace add settlemint/agent-marketplace/plugin install crew@settlemintgit/<undo_context>
!${CLAUDE_PLUGIN_ROOT}/scripts/git/undo-context.sh
</undo_context>
If "COMMIT ALREADY PUSHED" → STOP. Requires force-push.
If "Safe to Undo":
git reset --soft HEAD~1git statusgit reflog # find SHA
git cherry-pick <sha>
</recovery>