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 skills add vinta/hal-9000 --skill sync-local-reposgit clone --depth 1 https://github.com/vinta/hal-9000Wrote 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/vinta/hal-9000/sync-local-repos)<a href="https://agentmods.dev/skills/vinta/hal-9000/sync-local-repos"><img src="https://agentmods.dev/badge/skills/vinta/hal-9000/sync-local-repos/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.
<a href="https://agentmods.dev/skills/vinta/hal-9000/sync-local-repos"><img src="https://agentmods.dev/badge/skills/vinta/hal-9000/sync-local-repos.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00038 | $0.00773 |
| Opus 5.5 | $0.00015 | $0.00309 |
| Sonnet 5.5 | $0.00008 | $0.00155 |
| Haiku 4.5 | $0.00004 | $0.00077 |
Grade A, and why
sync-local-repos 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 yesterday.
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.
What it actually says
sync-local-repos
Use AskUserQuestion in Claude Code or request_user_input in Codex when available to ask the user anything below.
-
Pick the folder to sync from the session's working directory. The repo's main checkout is
git rev-parse --path-format=absolute --git-common-dirwithout the trailing/.git.this: the main checkout, so only that repo is synced.allor no argument, working directory not inside a git repo: the working directory, whose repos sit directly inside it.allor no argument, working directory inside a repo: the folder holding the main checkout and its sibling repos, normally the main checkout's parent. When that folder holds no other repo, the repo is probably linked into the real folder by a symlink: find it withfind ~ -maxdepth 3 -lname <main checkout> 2>/dev/nulland use the symlink's folder. When neither gives a folder of sibling repos, ask the user which folder to sync.
-
Run
scripts/sync_local_repos.pyfrom this skill's folder with that folder and the working directory:python3 ${CLAUDE_SKILL_DIR}/scripts/sync_local_repos.py "<folder>" "<working directory>"It fast-forwards each main checkout's default branch (
pull --ff-onlywhen checked out,fetch origin <def>:<def>otherwise), then rebases the branch at the working directory ontoorigin/<def>. Done when it exits: 0 means every step succeeded, 1 means aFAILrepo line or aSTOPline. -
Settle each
FAILandSTOPline:FAILon a repo: report the git error; a checkout whose default branch diverged from origin needs the user's call.STOP <upstream> has N commits <branch> lacks: someone pushed work to the branch that this checkout does not have. Report the listed commits and ask the user before pulling them in. A remote that only holds the same commits rebased, or an older copy of them, does not stop the script: it adopts or rebases past them on its own.STOP uncommitted changes,STOP merge commits,STOP conflict: report the files or commits listed and ask the user how to proceed. A conflict was already aborted, so the branch is unchanged.
-
A rebased branch that was already pushed needs a force-push. Ask the user first, then push with a lease on the tip the remote holds, so a teammate's newer push makes it fail:
git push --force-with-lease=<branch>:<old tip> origin <branch> -
When nothing needs the user, report one line:
Synced <folder>: all N repos ok on their default branch, plus; rebased <branch> onto origin/<def>when the branch moved. Otherwise lead with what needs the user (eachFAILandSTOP, a tree check asking for review, a pending force-push), then the repos that moved, the branch's old and new tip, and whether anything was pushed. Never list checks that passed.
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.
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.
- yesterday First seen · 39 lines · 38 tokens per session scan A f095ca256f0f
sync-local-repos is a skill published in the GitHub repository vinta/hal-9000 (144 stars, last pushed yesterday), licensed MIT. It adds 38 tokens to every session and 773 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-11-29.
sync-local-repos compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sync-local-reposvinta/hal-9000 | Skill | 144 | yesterday | MIT | A | 38 | Claude Code, Codex |
| mem0-test-integrationmem0ai/mem0 | Skill | 70k | 3d ago | Apache-2.0 | A | 207 | Claude Code, Codex |
| create-releasecocoindex-io/cocoindex | Skill | 12k | 2d ago | Apache-2.0 | A | 202 | Claude Code, Codex |
| python-releaseComposioHQ/composio | Skill | 31k | today | MIT | A | 53 | Claude Code, Codex |
| ghbubbuild/bub | Skill | 1.7k | 3d ago | Apache-2.0 | A | 96 | Claude Code, Codex |
| factory-deferred-repositorieswarpdotdev/warp | Skill | 66k | yesterday | AGPL-3.0 | A | 53 | Claude Code, Codex |
| pr-watchsonichi/sutando | Skill | 413 | today | MIT | A | 125 | Claude Code |