sync-upstream

sync-upstream is a skill for Claude Code from toverux/cantrips. It costs 59 tokens per session (3,113 once invoked), scanned A, original, MIT.

A procedure for bringing forked skills back in line with a newer version of their original project. A fork is a separate copy of a project that can develop differently from the original, called the upstream.

In plain words
What is it for?
Use it to compare all forked skills with upstream releases, review every difference, approve updates, and record the new synchronization point.
Why use it?
It makes differences between the copies visible and requires approval before changes are added. It also records which upstream release each fork matches.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; mentions AGENTS.md.

Part of the cantrips plugin — 26 skills, 3 agents, 1 plugin shipped together

Good fit Use it to compare all forked skills with upstream releases, review every difference, approve updates, and record the new synchronization point.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/toverux/cantrips/sync-upstream
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 toverux/cantrips --skill sync-upstream
Clone the repo
git clone --depth 1 https://github.com/toverux/cantrips

Made for: Claude Code.

Or install cantrips, the plugin that ships this one along with the rest of its 26 skills, 3 agents, 1 plugin.

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-upstream

README.md
[![agentmods](https://agentmods.dev/badge/skills/toverux/cantrips/sync-upstream/github.svg)](https://agentmods.dev/skills/toverux/cantrips/sync-upstream)
Your own site
<a href="https://agentmods.dev/skills/toverux/cantrips/sync-upstream"><img src="https://agentmods.dev/badge/skills/toverux/cantrips/sync-upstream/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-upstream

Your own site · 80×15
<a href="https://agentmods.dev/skills/toverux/cantrips/sync-upstream"><img src="https://agentmods.dev/badge/skills/toverux/cantrips/sync-upstream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,113 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.00059 $0.03113
Opus 5.5 $0.00024 $0.01245
Sonnet 5.5 $0.00012 $0.00623
Haiku 4.5 $0.00006 $0.00311

Measured 2d ago against content hash 2fca4cabefa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sync-upstream 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 2d ago.

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.

.claude/skills/sync-upstream/SKILL.md · 123 lines

How it starts

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

Reconcile the forked skills with a new upstream release: disposition every upstream delta, gate every disposition on the user's approval, audit the whole divergence surface, and record the new sync point. Nothing enters the repository without an approval, and a case these rules do not cover is put to the user rather than improvised on.

Step 1: Measure

Get the exact new tag from gh release list -R <upstream>. Every measurement comes from scripts/fork-diff.sh (through mise run dev:fork-diff -- …); fetch nothing by hand. The tool reads each fork's source: frontmatter, re-prefixes its bare pinned version into the real tag, resolves the upstream skill's directory from the repository tree API rather than guessing it, fetches and caches the upstream files under .scratch/sync/, and prints a unified diff per file with a divergent-line count.

Run it twice:

  • With no skill arguments, against the pins: every fork measured, whether or not upstream moved it. This is the audit — a release touching three files still gets all the forks measured, drift nobody has looked at being the audit's whole point.
  • With --tag <new-tag> and the updated upstream's forks named, since one tag cannot be right for both upstreams. Pass the tag exactly as the release lists it, prefix included: the tool uses the override verbatim, re-prefixing only the pinned source: version. A wrong tag prints skipped: could not read the tree per fork and exits zero: an all-skipped second run is a failed measurement, never zero deltas. Check each fork's tag line, printed under its ════ header as <repo>@<version> → <tag>, upstream skill '<name>': a tag line still naming the pinned tag means the override named the pin, not the release — the same failure — while identical hunks under the new tag are a real zero-delta release, not a failure. A fork with no tag line was skipped, never measured.

First set aside what was not measured: a file or fork the run could not read — could not fetch, upstream copy unreadable, a skipped fork, or an upstream only line carrying (size unknown, fetch failed) — classifies as nothing, whatever else its label says. Retry unread files once with --refresh; park what a second attempt still cannot read, since an absent measurement is never a delta and never convergence. Parking is per measurement: a fork skipped at the new tag keeps its pin-run measurement, whose hunks stay audit material. For the updated upstream's forks, classify each remaining spot by whether upstream moved there, read from the upstream side of the two runs' diffs — hunk headers and context shift with unrelated edits, so compare the quoted upstream lines, never the hunk framing. Where the upstream side reads the same in both runs, upstream left that text alone: the fork's divergence there is pre-existing — audit material. Where the upstream sides differ, or a hunk shows in only one run, upstream moved: an upstream delta for Step 2, whose Standing-or-afresh question Step 2's anchoring rule decides. A file the tool reports whole takes the same both-runs test: the same report in both runs is pre-existing — a never-ported or fork-only file, audit material — while a report in one run alone, pin or new tag, means upstream moved that file: an upstream delta. Upstream edits inside a file the fork never carried are invisible to these diffs; where a ledgered policy asks for their evaluation — the preamble's persona rule — diff the two cached tags under .scratch/sync/. The non-updated upstream's forks are measured once, against their pins, so every hunk they show is audit material. Treat source: as provenance, not ground truth: a fork may have been cut from upstream main between releases and already contain wording "newer" than its recorded version. An audit divergence is therefore not proof of local invention: a revert proposal states the divergence and leaves its origin open — for the non-updated upstream the run holds nothing newer than the pin, so origin stays uncheckable until that upstream's own sync.

Read the full file on GitHub · 123 lines

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. 2d ago Changed 2fca4cabefa9
  2. 1mo ago Changed 7fd8ba09ec16
  3. 1mo ago Changed 8978ae3377ce
  4. 2mo ago Changed · +9 lines d6022faabaf1
  5. 3mo ago Changed · +15 lines dd477bc3a349
  6. 3mo ago First seen · 99 lines · 59 tokens per session scan A 64ed952214b5

Subscribe to this mod's changes

sync-upstream is a skill published in the GitHub repository toverux/cantrips (3 stars, last pushed 3d ago), licensed MIT. It adds 59 tokens to every session and 3,113 once invoked, about $0.0002 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.

Related

sync-upstream compared with skills from other repositories

sync-upstream next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sync-upstreamtoverux/cantripsSkill33d agoMITA59Claude Code
address-github-comments-v2diegosouzapw/awesome-omni-skillsSkill1813d agoMITA61Claude Code, Codex
create-pragent-skills-hub/agent-skills-hubSkill1393d agoMITA36Claude Code, Codex
codex-reviewagent-skills-hub/agent-skills-hubSkill1393d agoMITA18Claude Code, Codex
git-pr-reviewhuangwb8/skillsSkill515d agoMITA76Claude Code, Codex
review-prhoblin/claude-ruby-marketplaceSkill38yesterdayMITA41Claude Code
babysit-prckorhonen/claude-skillsSkill363d agoMITA48Claude Code, Codex