Sync Branch — Git skill for Claude Code
Sync feature branch with the latest main branch.
How to install Sync Branch
Installs to ~/.claude/commands/apupsis-claude-code-skill-factory-sync-branch.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Apupsis/claude-code-skill-factory/HEAD/.claude/commands/sync-branch.md -o ~/.claude/commands/apupsis-claude-code-skill-factory-sync-branch.md Restart Claude Code, or start a new session, for it to be picked up.
What Sync Branch does
Sync feature branch with the latest main branch.
Alternatives in Git
- Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
- Maestro Merge — Merge session worktree branch back to main 530 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
PR Merged
Post-merge cleanup — checkout main, pull latest, delete the feature branch, and close the linked work item.
Gw PR Sync
gw-pr-sync - Sync PR with latest main branch
Pull And Sync
Sync working branch with latest from default branch using merge --no-ff.
Git Switch To Main
Switch to the main branch and pull the latest changes.
CloseBranch
Close out a branch after its PR is merged/closed - switches to the PR's base branch (main, or the todo's arc b
Compare Docs
Compare document generation between main and the current feature branch.
Related Agents
Doc Editor
Use to edit, organize, or sync Markdown (docs/, design docs, README, CHANGELOG) on explicit request or confirm
Diagnose And PR
Reads a firing failure signal (an alert, a failed check, a monitoring finding), diagnoses the root cause again
Develop
Implements a fix or feature for a single GitHub issue in an isolated worktree. Iterates up to 3 cycles (merge