github-sync

Installation
SKILL.md

GitHub Sync

Overview

Use scripts/sync-repo.sh instead of rewriting ad-hoc git fetch and git pull logic. The script resolves the sync target, creates a local tracking branch when needed, and only performs fast-forward updates.

Workflow

  1. Check whether the user wants the remote default branch, a specific branch, or the current branch.
  2. Prefer origin unless the user explicitly asks for another remote.
  3. Run the bundled script:
scripts/sync-repo.sh
scripts/sync-repo.sh --branch main
scripts/sync-repo.sh --current
  1. If the script reports that a branch switch would be unsafe because the worktree is dirty, stop and ask the user instead of stashing, resetting, or forcing the switch.
Related skills

More from mindgames/skills

Installs
3
GitHub Stars
3
First Seen
Mar 9, 2026