Skip to content
Back to skills

Sync

ASecurity

Two-way sync the current Git branch with its upstream using merge (pull with merge, then push). Use when asked to sync the branch or codebase; not for rebasing or syncing other branches.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add Catherine1401/agent-skills --skill sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/catherine1401-sync/badge)](https://www.skillsdirectory.com/skills/catherine1401-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sync
description: Two-way sync the current Git branch with its upstream using merge (pull with merge, then push). Use when asked to sync the branch or codebase; not for rebasing or syncing other branches.
---

# Sync

- Work only on the current branch and its upstream; stop if HEAD is detached or no upstream is set.
- Stop if the working tree has uncommitted or untracked changes; never stash, commit, or discard them.
- Run `git fetch`, then `git merge --no-edit @{u}`; never rebase, force, or reset.
- On merge conflicts, resolve every conflicted file by preserving the intent of both sides, verified against each side's commits; run the project's build or tests when available, then commit the merge. If a conflict's correct resolution cannot be determined, run `git merge --abort` and report that file.
- Report each resolved file and how it was resolved.
- Run `git push` only when the branch is ahead of its upstream; never force-push. If the push is rejected, report it and stop; do not retry.
- Report incoming and outgoing commit counts and the final `git status -sb`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.