sync-forks · git:20260524.7071296 · 2026-05-24 · sha256 354fe5ce30ea647a
sync-forks git:20260524.7071296A
Immutable. This exact content is served forever at /api/v1/blob/354fe5ce30ea647a.
--- name: sync-forks description: Check how many of your GitHub forks are out of date and sync them. --- # Sync Forks This skill checks all GitHub forks associated with the authenticated user, identifies which ones are out of date compared to their upstream parent, and optionally syncs them using the GitHub CLI (`gh`). ## Usage When the user asks to check or sync their forks, use the provided script. ### 1. Check for Out-of-Date Forks Run the script without any arguments to get a summary of forks that are behind their parent repositories. ```bash sync-forks ``` ### 2. Sync Out-of-Date Forks Run the script with the `--sync` flag to automatically sync any forks that are behind. ```bash sync-forks --sync ``` ### 3. Force Sync Diverged Forks If a fork has diverged from its parent and the user wants to forcefully overwrite local changes to match the parent, use the `--force` flag along with `--sync`. ```bash sync-forks --sync --force ``` ## Note Some repositories might fail to sync if the upstream parent has added or modified GitHub Actions workflows. The user will need to grant the `workflow` scope to the GitHub CLI by running `gh auth refresh -s workflow` manually in their terminal.