Sync to

From Takazudo/claude-resources · View interactive version

Sync to is an AI agent skill from the GitHub repository Takazudo/claude-resources. Merge current branch into a target branch and return. Use when user says 'sync to', 'merge into', 'push changes to branch', or wants to sync their work branch into another branch without leaving the current branch.

How to use this skill

Skill file

DO NOT auto-invoke this skill. This merges and pushes to a remote branch. Always ask for user confirmation before proceeding.

sync-to

Merge the current branch into a specified target branch, push if remote exists, then return to the original branch. The source branch remains intact. The target branch is automatically fetched and updated from the remote before merging to avoid stale-branch issues.

Usage

Run the bundled script:

bash $HOME/.claude/skills/sync-to/scripts/sync-to.sh $ARGUMENTS

Report the script output to the user verbatim. Do not add extra commentary unless there was an error.

Conflict handling

If the script exits with a merge conflict error, immediately stop and ask the user to use /sync-force-to instead. Do not attempt to resolve conflicts manually.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.