git-preflight
Installation
SKILL.md
Git Preflight Checklist
Run before committing (commit) or before editing a feature branch (branch). Default (all) runs both.
branch — Before Editing a Feature Branch
Verify the local branch is in sync with remote before making any changes:
git fetch origin
git log --oneline HEAD..origin/$(git branch --show-current)
If output is non-empty, the remote is ahead — pull before editing:
git pull --ff-only