What problem does it solve? Git operations outside the happy path — rejected pushes, red CI runs, stuck PRs, and merge conflicts — waste hours when handled by trial and error. This Skill provides deterministic recovery procedures for non-fast-forward rejections, CI failure triage, draft-to-squash PR lifecycles, and join-time conflict resolution, plus guards that prevent hand-editing git internals from silently corrupting repository state. ## Core Features & Use Cases - Push failure recovery: Resolve non-fast-forward rejections with fetch, divergence assessment, rebase, and force-with-lease pushes that refuse to overwrite unseen work. - CI failure triage: Read only failed logs, distinguish reproducible failures from infrastructure flakes, and attribute flakes from existing runs instead of re-running suites. - PR lifecycle management: Drive draft PRs through review polling, batched finding triage, thread resolution, and squash-merge with branch deletion. - Git config protection: A SessionStart hook detects lost remote.origin.fetch or branch tracking config, and a PreToolUse guard denies hand edits to .git internals. - Use Case: Your push is rejected after a teammate merged first, and CI later shows one workflow green while another stays queued forever. The Skill walks you through the rebase and force-with-lease push, then identifies the queued run as a CONFLICTING mergeable state requiring conflict resolution before CI will dispatch. ## Quick Start Ask the agent to diagnose why my git push was rejected and recover the branch without losing any remote work.