What problem does it solve? Keeping a local repository's main branch synchronized with its remote source of truth is a repetitive git task that risks mistakes like forcing over diverged history, merging into a dirty working tree, or pulling from the wrong remote. This Skill performs the sync as a strictly verified fast-forward with explicit confirmation of the repo path and source remote before any write. ## Core Features & Use Cases - Confirmed fast-forward only: Fetches the chosen remote, verifies local main is an ancestor of the remote's main, and advances the ref without forcing, merging, or rewriting other branches. - Checkout-aware handling: Uses merge --ff-only when on main, fetch remote main:main when off main, and offers an approved switch to main so new commits reach the files on disk. - Safety refusals: Stops with exact messages when the path is not a git repo, the remote has no main, or main has diverged, and never stashes, resets, or discards local work. - Use Case: You have a fork where origin points to your fork and upstream points to the canonical repo. Run the skill, confirm the path and upstream remote, and it fast-forwards local main to upstream/main while reporting exactly what changed and what your checkout actually runs. ## Quick Start Ask the AI to update main in your repository by saying "/update /path/to/repo" or "sync main from origin", then confirm the path and remote when prompted.