sync-github-fork
Installation
SKILL.md
Sync GitHub Fork
Contract
- Treat the fork's published default branch as durable history: integrate the parent's default branch with a fast-forward or merge, then use a normal push. The push never uses force.
- Confirm GitHub's formal parent relationship before adding or trusting
upstream. - Start from the clean primary checkout with local default branch equal to
origin; preserve every fork-only commit. - Read the target repository instructions and prove its differentiated behavior before pushing.
- Announce: “I’m using the sync-github-fork skill to integrate verified upstream changes without rewriting the fork.”
1. Inspect
Set SKILL_DIR to this skill directory, then run:
"$SKILL_DIR/scripts/inspect-fork.sh" "${REPO:-$PWD}"
Branch only on its tokens: