sync-well

sync-well is a skill for Claude Code, Codex from ohong/agent-skills. It costs 85 tokens per session (749 once invoked), scanned A, original, MIT.

A guided Git workflow for comparing a local branch with its remote branch before bringing changes together. Git is the version-control system used to track code changes.

In plain words
What is it for?
Use it to inspect branch status, refresh remote information, and decide whether to fast-forward, merge, or stop for review.
Why use it?
It helps reveal local edits, unfinished operations, branch differences, and overlapping files before a pull or merge can risk losing work.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the sync-well plugin — 1 skill shipped together

Good fit Use it to inspect branch status, refresh remote information, and decide whether to fast-forward, merge, or stop for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ohong/agent-skills/sync-well
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ohong/agent-skills --skill sync-well
Clone the repo
git clone --depth 1 https://github.com/ohong/agent-skills

Made for: Claude Code, Codex.

Or install sync-well, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-well

README.md
[![agentmods](https://agentmods.dev/badge/skills/ohong/agent-skills/sync-well/github.svg)](https://agentmods.dev/skills/ohong/agent-skills/sync-well)
Your own site
<a href="https://agentmods.dev/skills/ohong/agent-skills/sync-well"><img src="https://agentmods.dev/badge/skills/ohong/agent-skills/sync-well/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-well

Your own site · 80×15
<a href="https://agentmods.dev/skills/ohong/agent-skills/sync-well"><img src="https://agentmods.dev/badge/skills/ohong/agent-skills/sync-well.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 749 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.00749
Opus 5.5 $0.00034 $0.00300
Sonnet 5.5 $0.00017 $0.00150
Haiku 4.5 $0.00009 $0.00075

Measured 1mo ago against content hash 255ab11b6027, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sync-well scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/inspect_sync.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sync-well/skills/sync-well/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sync Well

Preserve both committed and uncommitted work while establishing what Git can safely do. Treat inspection, network refresh, reconciliation, commit, and push as separate authorization boundaries.

Inspect

  1. Run scripts/inspect_sync.sh [repository]. It is read-only and uses only current local refs.
  2. If it reports an in-progress merge, rebase, cherry-pick, or revert, stop and use the merge-conflict workflow.
  3. Confirm the intended branch and worktree. A branch checked out in another worktree must be handled there.
  4. Show the user the branch/upstream, staged and unstaged state, untracked files, ahead/behind counts, merge base, and all reported path overlaps.

Refresh Remote State

Fetching changes remote-tracking refs, so keep it visible:

/usr/bin/git remote -v
/usr/bin/git fetch --prune <remote>
scripts/inspect_sync.sh .

Fetch only when network access is allowed. Derive <remote> from the configured upstream; do not assume origin. Never claim the comparison is current if fetch failed or was skipped.

Recommend

  • Fast-forward only: Recommend /usr/bin/git merge --ff-only <upstream> when behind-only, on the intended worktree, and clean. Do not use a plain git pull, because configured pull behavior is ambiguous.
  • Merge: Recommend /usr/bin/git merge <upstream> when histories diverge, the tree is clean, and both histories must be preserved. Explain overlapping committed paths and the conflict risk. A normal merge may create a commit, so obtain explicit authorization first.
  • Stop for choice: Stop when the branch or upstream is unclear, histories are unrelated, the tree is dirty, another operation is active, the wrong worktree is open, or uncommitted work overlaps remote-only paths. Review the actual diffs before asking whether work should be kept.
  • Ahead only: Report that syncing needs no inbound reconciliation. Ask separately before pushing; do not infer publication permission.
  • Up to date: Report that no reconciliation is needed.

Read the full file on GitHub · 52 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 52 lines · 85 tokens per session scan A 255ab11b6027

Subscribe to this mod's changes

sync-well is a skill published in the GitHub repository ohong/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 85 tokens to every session and 749 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.