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 pivoshenko/pivoshenko.ai --skill git-branch-syncgit clone --depth 1 https://github.com/pivoshenko/pivoshenko.aiWrote 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/pivoshenko/pivoshenko.ai/git-branch-sync)<a href="https://agentmods.dev/skills/pivoshenko/pivoshenko.ai/git-branch-sync"><img src="https://agentmods.dev/badge/skills/pivoshenko/pivoshenko.ai/git-branch-sync/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/pivoshenko/pivoshenko.ai/git-branch-sync"><img src="https://agentmods.dev/badge/skills/pivoshenko/pivoshenko.ai/git-branch-sync.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.00089 | $0.00823 |
| Opus 5.5 | $0.00036 | $0.00329 |
| Sonnet 5.5 | $0.00018 | $0.00165 |
| Haiku 4.5 | $0.00009 | $0.00082 |
Grade A, and why
git-branch-sync 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git Branch Sync
Catch current branch up to base. Rebase only. Surface conflicts.
Flow
- Parallel:
git status --porcelaingit branch --show-currentgit rev-parse --abbrev-ref --symbolic-full-name @{u}(upstream if any)- Rebase/merge already in progress (
git statussays so) or detached HEAD (git branch --show-currentempty) -> stop with a one-line explanation. Why -> a secondgit rebaseon top of a half-finished one errors confusingly, and there is no current branch to sync
- Base: user names one -> verbatim. Else detect:
git symbolic-ref --short refs/remotes/origin/HEAD-> strip theorigin/; ref missing ->git remote set-head origin -a, re-read; no remote ->main, fall backmaster. Why -> rebasing ontomainin adevelop-based repo replays the branch onto the wrong parent and manufactures conflicts that aren't real - Dirty -> stash:
git stash push -u -m "sync-branch auto-stash". Pop later. Unsafe (unresolved merge) -> stop + tell user - On base ->
git pull --ff-only origin <base>. Fails (local base diverged) -> pop the stash if step 3 made one (nothing was rewritten), then stop + tell user. No auto-rebase of base itself - Else:
git fetch origin <base>git rebase origin/<base>- No remote -> skip the fetch,
git rebase <base>(local ref). Local<base>absent too -> nothing to sync against; pop the stash if step 3 made one, stop + say so
- Conflicts:
git status-> list conflicted paths- Stop + surface. No auto-resolve
- Tell user: resolve,
git add <paths>,git rebase --continue. Mentiongit rebase --abortescape - Leave stash in place. Tell user to pop after resolve
- Rebase done (clean or aborted) -> pop stash if created
- Print one-liner: branch, base, commits replayed (
git rev-list --count origin/<base>..HEADbefore the rebase vs after), force-push needed? (yes = upstream exists and history was rewritten)- 0 commits replayed (already up to date) -> say so explicitly; don't mention force-push (nothing rewritten)
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.
- 2mo ago Changed b1e66ab078d5
- 2mo ago Changed · +2 lines 363f857db302
- 2mo ago Changed cc781e8917ab
- 3mo ago First seen · 41 lines · 89 tokens per session scan A 6f1873477459
git-branch-sync is a skill published in the GitHub repository pivoshenko/pivoshenko.ai (7 stars, last pushed 2d ago), licensed MIT. It adds 89 tokens to every session and 823 once invoked, about $0.0004 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.
git-branch-sync compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-branch-syncpivoshenko/pivoshenko.ai | Skill | 7 | 2d ago | MIT | A | 89 | Claude Code, Codex |
| artifactscloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 66 | Claude Code |
| skill-upstream-prluongnv89/asm | Skill | 976 | today | MIT | A | 56 | Claude Code |
| skill-changelogluongnv89/asm | Skill | 976 | today | MIT | A | 53 | Claude Code |
| meanest-editorelvisun/newsjack | Skill | 1.7k | 5d ago | MIT | A | 33 | Claude Code |
| ai-visibility-writingelvisun/newsjack | Skill | 1.7k | 5d ago | MIT | A | 137 | Claude Code |
| headline-generatorelvisun/newsjack | Skill | 1.7k | 5d ago | MIT | A | 88 | Claude Code |