captain-sync-all

Synchronize Git master across worktrees and notify team agents.

39|6|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/the-agency-ai/the-agency --skill captain-sync-all
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: captain-sync-all
Source: https://github.com/the-agency-ai/the-agency/tree/main/.claude/skills/captain-sync-all
Command: npx skills add https://github.com/the-agency-ai/the-agency --skill captain-sync-all

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the synchronization of local master branches with origin, merges outstanding worktrees into master, and propagates updates to dependent agents, maintaining consistency across multiple development environments.

Core Features & Use Cases

  • Master-Worktree Reconciliation: Fetches updates, detects divergence, and safely merges changes without rebasing or resetting.
  • Worktree Synchronization: Merges committed work from multiple worktrees into the main branch while preserving local history.
  • Use Case: Developers can run this command to ensure all worktrees reflect the latest approved code and avoid drift before pushing or deploying, especially after external PR merges.
  • Automated Dispatch: Notifies involved agents of updates through lightweight dispatches, enabling coordinated workflows.

Quick Start

Run the captain-sync-all command when starting your day or after major merges to synchronize the main branch, merge pending worktrees, and communicate updates efficiently.

Frequently Asked Questions about captain-sync-all

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I synchronize multiple Git worktrees with the master branch?

Git worktree synchronization merges committed work from multiple worktrees into the master branch, fetches origin updates, and safely reconciles changes without rebasing or resetting to preserve local history.

What is the best way to prevent Git branch drift across development environments?

Preventing Git branch drift requires automating master-worktree reconciliation to detect divergence, merge incoming changes, and dispatch update notifications to dependent team agents for consistency.

Does Git worktree synchronization rebase or reset my local commits?

Git worktree synchronization does not rebase or reset local commits; it safely fetches updates, detects divergence, and merges changes to consolidate work-in-progress while preserving local history.

How do I automate Git master synchronization after external PR merges?

Automate Git master synchronization by running a command that fetches updates, merges pending worktrees into the main branch, and dispatches update notifications to coordinate team workflows.

Can I notify team agents when the local master branch updates?

You can notify team agents of master branch updates through lightweight automated dispatches, enabling coordinated workflows and ensuring dependent environments reflect the latest approved code.

When should I run Git worktree synchronization commands?

Run Git worktree synchronization when starting your day or after major external merges to ensure all worktrees reflect the latest approved code and avoid drift before pushing or deploying.