What problem does it solve? Local Git work goes wrong in expensive ways: force-pushes that silently overwrite colleagues' commits, conflict resolutions that delete one side's work, rewrites that lose history, and 'lost' commits that are actually recoverable. This Skill encodes the verified mechanics and guardrails for every destructive or confusing Git operation so an agent commits, integrates, and recovers work without destroying it. ## Core Features & Use Cases - Safe history rewriting: Backup refs, git range-diff verification, --force-with-lease --force-if-includes pushes, and explicit collaborator instructions for any rewrite of published history. - Conflict resolution by intent: Enumerate every unmerged path, read both sides' history via MERGE_HEAD/REBASE_HEAD, handle ours/theirs inversion during rebase, and defuse rerere's markerless replayed resolutions. - Worktrees and parallel agents: One branch and worktree per task, bootstrap missing untracked files, avoid the shared refs/stash trap, and clean up with git worktree remove before branch deletion. - Recovery and archaeology: Reflog-first recovery of lost commits, git fsck --no-reflogs fallback, git bisect run exit-code contract, and git cherry to detect squash-merged branches. - Use Case: An agent asked to tidy a branch before review backs up the tip, folds fixups with git rebase --autosquash, verifies with range-diff, and force-pushes safely with a stated plan. ## Quick Start Use the git-workflow skill to rebase my feature branch onto the latest main, resolve any conflicts, and push it safely.