What problem does it solve?
This Skill prevents worktrees from drifting behind the trunk by rebasing the worktree’s claude branch onto the latest trunk commits.
Core Features & Use Cases
- Branch-safe rebase sync: Detects the current branch and derives the trunk branch name, then performs a rebase of the worktree branch onto the trunk.
- Safety guardrails: Refuses to run if you are on the trunk branch or if there are uncommitted changes, reducing the chance of accidental history corruption.
- Conflict guidance: Stops on rebase conflicts and explains the standard resolution flow so you can continue or abort safely.
Use case: You are actively developing in a worktree branch (for example, _claude1) and need to periodically incorporate new trunk changes without losing your work.
Quick Start
Run the sync script from within your worktree to rebase your current claude branch onto the derived trunk branch.