What problem does it solve? Rebases that compile but are logically broken are a common failure mode: auto-merged files can duplicate or drop content, squash-merged stacked PRs leave absorbed commits, and removed symbols leave stale references that textual conflict detection never catches. This Skill enforces verification gates that catch these issues before any force-push rewrites remote history. ## Core Features & Use Cases - Scenario-aware rebase playbooks: Distinguishes stacked PRs with merged bases, stacked PRs with open bases, and long-lived feature branches, re-resolving the canonical base ref via GitHub before starting. - Mandatory verification gates: Runs real import checks, pytest collection, content-diff-scoped test suites, and symbol reference scans to prove the rebased tree is logically correct, not just textually clean. - Safe push discipline: Requires explicit authorization for force-push, refuses to rewrite main/master/release branches, and always uses --force-with-lease pinned to the pre-rebase SHA. - Use Case: A stacked PR's base just merged via squash and GitHub reports conflicts. The Skill rebases onto main, verifies the squash-absorbed commit with a diff before skipping it, runs targeted tests on packages the rebase actually changed, and force-pushes only after authorization. ## Quick Start Ask the AI to rebase this branch onto main and verify the result before pushing.