What problem does it solve? Force-pushing to main rewrites shared history, breaks other contributors' references to commits, and is a leading cause of lost work in collaborative repositories. This Skill intervenes before a destructive git push --force or --force-with-lease targets main or any shared protected branch. ## Core Features & Use Cases - Blocks force-push to main: Stops any attempt to run git push --force or --force-with-lease against main or other protected shared branches. - Distinguishes branch contexts: Explains why force-pushing is acceptable on feature branches after a rebase but never on main. - Promotes --force-with-lease: Directs users to the safer --force-with-lease flag, which fails if someone else pushed to the branch since the last fetch. - Use Case: After rebasing a feature branch, an agent or developer is about to run git push --force; this Skill redirects them to git push --force-with-lease and confirms the target is not main. ## Quick Start Before I push my rebased branch, check whether force-pushing is safe and tell me the correct git push command to use.