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.
npx agentmods add skills/toverux/cantrips/sync-upstreamnpx skills add toverux/cantrips --skill sync-upstreamgit clone --depth 1 https://github.com/toverux/cantripsWrote 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.
[](https://agentmods.dev/skills/toverux/cantrips/sync-upstream)<a href="https://agentmods.dev/skills/toverux/cantrips/sync-upstream"><img src="https://agentmods.dev/badge/skills/toverux/cantrips/sync-upstream.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00059 | $0.02829 |
| Opus 5 | $0.00030 | $0.01414 |
| Sonnet 5 | $0.00012 | $0.00566 |
| Haiku 4.5 | $0.00006 | $0.00283 |
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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 114 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 pinnedsource:version. A wrong tag printsskipped: could not read the treeper 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.
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.
- today Changed · +15 lines dd477bc3a349
- 5d ago First seen · 99 lines · 59 tokens per session scan A 64ed952214b5
sync-upstream is a skill published in the GitHub repository toverux/cantrips (2 stars, last pushed 2d ago), licensed MIT. It adds 59 tokens to every session and 2,829 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
git-workflow
This skill should be used when the user asks to "create git commit", "manage branches", "follow git workflow", "use Conventional Commits", "handle merge conflicts", or asks about git branching strategies, version control best practices, pull request workflows. Provides comprehensive Git workflow guidance for team…
daily-paper-generator
Use when the user asks to generate daily paper digests on a general topic. This skill supports both arXiv and bioRxiv (or either one), then produces structured Chinese/English summaries for selected papers.
review
5-pass structured code review — correctness, security, performance, readability, consistency.
marshal
Meta-orchestrator that takes any direction — broad, specific, or vague — and autonomously chains skills and context into actionable work. Gathers context from codebase, docs, and memory. Only asks the user when it genuinely cannot proceed. Single-session orchestrator.
wiki
Markdown-first knowledge base where the LLM acts as librarian. Ingests raw sources, compiles and interlinks topic files, self-maintains an index. No vector DB or embeddings required -- uses LLM-native navigation over structured markdown up to 400K words.
codex-autoresearch
Run autonomous, measurable experiments in a Git repository: change one hypothesis, verify a numeric metric, keep improvements, and revert failures. Use when the user wants Codex to keep iterating toward a numeric target in the foreground or as a detached background run. Do not use for ordinary one-shot coding…