Skip to content
Back to skills

Sync Repo

ASecurity

Bring the user's copy of the project repo up to date without changing history. Use when someone says sync, pull, get the latest, update my repo, am I up to date, or before a content run. Fetch and fast-forward only; refuses merge, rebase, stash, commit, push, branch changes.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsgit

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add VivekHZTL/hztl-content-ops --skill sync-repo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sync Repo?

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

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

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-repo
description: Bring the user's copy of the project repo up to date without changing history. Use when someone says sync, pull, get the latest, update my repo, am I up to date, or before a content run. Fetch and fast-forward only; refuses merge, rebase, stash, commit, push, branch changes.
---

# Sync the repo

Authors read the repo; developers change it. This skill only ever moves the current branch forward to
what the shared repo has.

## Steps

1. `git status --short --branch` and `git rev-parse --abbrev-ref HEAD`. Report the branch and whether
   there are local changes. Local changes to files under `sources/`, `work/`, `runs/` are expected and fine.
2. `git fetch --prune`.
3. `git merge --ff-only @{upstream}`. If the branch has no upstream, say so and stop; a developer sets it.
4. If the fast-forward is refused (diverged) or there is a conflict message: stop. Show the message,
   say "this needs a developer", do not try `--no-ff`, `rebase`, `reset`, `stash` or `checkout`.
5. Report: branch, commits pulled (`git log --oneline ORIG_HEAD..HEAD | wc -l` when ORIG_HEAD exists), done.

## Never

Commit, push, rebase, merge with history, stash, switch branches, create branches, delete anything.
If the person needs any of these, say it is a developer step.

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.

Comments

Loading comments…

Newsletter

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