git-sync
Installation
SKILL.md
Git Sync
Cross-Platform AI Agent Skill This skill works with any AI agent platform that supports the skills.sh standard.
Sync the current branch with its base or upstream branch. Defaults to merge to preserve history; rebase is opt-in only.
Anti-Hallucination Guidelines
CRITICAL: Only sync based on what git status and git log actually show:
- Read before acting — Run
git statusandgit branchbefore any sync operation - Verify branch state — Check commits ahead/behind before proposing a strategy
- Never force push main/master — Hard rule, no exceptions
- Confirm conflicts — Report exact conflicting files; do not guess