# Sync Main

> Safely sync the current branch with main or the default branch. Checks worktree state, fetches, rebases or merges as requested, and handles conflicts carefully.

- Skill: `garyld1962/sync-main-3` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add garyld1962/sync-main-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/garyld1962/sync-main-3/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: garyld1962 (https://skillmd.com/u/garyld1962)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/garyld1962/sync-main-3

---


# Sync Main

Read `references/workflow.md` for source behavior. `references/legacy/` is archival only.

Do not discard local changes. Confirm the intended integration strategy when both rebase and merge are viable. Stop and report when conflicts require product judgment.

