Synchronize worktrees with main: rebase each worktree branch onto main, fast-forward merge it into main, then fast-forward every worktree branch back up to the final main. Use when the user asks to sync worktrees, merge worktrees into main, or invokes /sync-worktrees.
Ships in pr-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Synchronize worktree branches with main and back: each branch is rebased onto main and fast-forward merged into main, then all branches are fast-forwarded to the final main so everything ends up in sync.
$ARGUMENTS is a list of worktrees to sync (paths or branch names, space-separated). If empty, sync every worktree listed by git worktree list except the one with main checked out.
git worktree list to map worktree paths to branches. Identify the worktree where main is checked out (call it the main worktree). Resolve $ARGUMENTS against this list; if an argument matches no worktree, inform the user and stop.git -C <path> status --short. If any working tree is dirty, list the dirty worktrees, inform the user, and stop — do not stash or commit for them.git -C <path> rev-parse --abbrev-ref HEAD). Every worktree must end the sync on the same branch it started on.git -C <path> rebase main.git add the file, and git -C <path> rebase --continue until it completes. If a conflict cannot be resolved confidently, run git -C <path> rebase --abort, report which files were problematic, and stop the whole sync.CLAUDE.md, a check or test target in a Makefile, a check/test/lint script in package.json, or the language's standard (cargo test, go test ./..., pytest, etc.). Run it in the worktree. If validation fails, do NOT merge this branch: report the failures and stop the whole sync so the user can fix it. If no validation command can be found, tell the user validation was skipped and continue (decide this once and reuse it for every worktree).git -C <main-path> merge --ff-only <branch>. If this fails, stop and inform the user.git -C <path> merge --ff-only main so every branch points at the final main. These are guaranteed fast-forwards; if one fails, report it.git -C <path> rev-parse HEAD for main and each synced worktree and confirm they all match. Then confirm each worktree (including the main worktree) is still on the branch recorded in step 3 (git -C <path> rev-parse --abbrev-ref HEAD); if any differ, check the recorded branch back out in that worktree. Show the user git log --oneline -5 from main and a summary of which branches were synced.--ff-only into main, and never create a merge commit.What SKILL.md sets; muted values are Claude Code's defaults
/pr-workflow:sync-worktreesfrom pr-workflow
npx claudepluginhub driangle/ai-powers --plugin pr-workflowOther plugins' skills for the same job
14 skills in this plugin
/change-recapRecap what changed in an area of the code over a timeframe — new features, improvements, fixes and under-the-hood work — from the pull requests merged on GitHub in that window, grouped by initiative and project where the issue tracker records them, enriched with the ticket updates and Slack threads from the same window (confirmations, rollouts, problems after merge, follow-ups), and credited to who built and reviewed each change, written so developers and managers can both read it, as an HTML page that can be published as a Claude Artifact. Typically run on Fridays for the week's recap. Use whenever someone asks what changed, shipped, got merged or happened in a repo, service, folder, product area or team this week, last week, this sprint or since a date, asks for a weekly or Friday recap, a "what's new" or a changelog-style summary of recent work, even if they don't say "recap"./commitCommit all uncommitted changes with an auto-generated conventional commit message. Use when the user asks to commit, save changes, or invokes /commit./commit-msgGenerate a one-line conventional commit message from staged changes. Use when the user asks for a commit message or invokes /commit-msg.