What problem does it solve?
This Skill prevents risky shared-branch Git actions (like unsafe pulls, rebases, and forced pushes) from corrupting history, causing long-lived forks, or losing recovery options by enforcing a strict evidence-first workflow and standardized handling for common failure scenarios.
Core Features & Use Cases
- Safe branch-state inspection: Collects objective baseline data and determines whether the repository is in a safe, explicable state to continue.
- Non-fast-forward recovery: Handles push rejections using rescue branches and merge-based integration (no default force push, no default shared-history rebase).
- Dual-environment synchronization (WSL + Remote SSH): Enforces single-writer behavior and serial sync to avoid cross-environment divergence.
- Audit trail in work logs: Records trigger,现场状态, actions, decision rationale, and results into docs/work-logs for later review and recovery.
Quick Start
Ask the AI to run the git-governance workflow to resolve a push rejection by safely syncing with the remote, merging using a rescue branch, and writing the decision log to docs/work-logs.