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 Abilityai/abilities --skill add-git-syncgit clone --depth 1 https://github.com/Abilityai/abilitiesWrote 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/abilityai/abilities/add-git-sync)<a href="https://agentmods.dev/skills/abilityai/abilities/add-git-sync"><img src="https://agentmods.dev/badge/skills/abilityai/abilities/add-git-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/abilityai/abilities/add-git-sync"><img src="https://agentmods.dev/badge/skills/abilityai/abilities/add-git-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.00043 | $0.03788 |
| Opus 5.5 | $0.00017 | $0.01515 |
| Sonnet 5.5 | $0.00009 | $0.00758 |
| Haiku 4.5 | $0.00004 | $0.00379 |
Grade B, and why
add-git-sync scanned grade B with 1 finding 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.
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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- "1.3: .gitignore rationale corrected — the platform no longer bakes ~/.claude/settings.json (guardrail registration moved to root-owned /etc/claude-code/managed-settings.json, ent#345); the ignore rule stays because a How it starts
The opening of the file, as written. The whole thing — 286 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add Git Sync
ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry of
metadata.changelogabove — e.g.add-git-sync vX.Y — recent: <summary>. Then proceed.
Installs three hooks that turn the agent's own repo into its durable state layer:
| Hook | Event | Job |
|---|---|---|
git-session-start.sh |
SessionStart (startup/resume) |
Stash local drift → fetch → rebase onto remote branch → restore drift. Every session begins consistent with origin. |
git-pre-compact.sh |
PreCompact |
Fast local commit so in-flight work survives context compaction. No push. |
git-sync.sh |
Stop (async) |
git add -A → commit → push with rebase-on-reject retry. Drops .git/SYNC_FAILED if it can't reconcile; SessionStart surfaces the note next run. |
Who this is for: any agent whose directory is its own git repo and is worked on in local Claude Code sessions that should leave the repo committed and pushed — authoring an agent before it is deployed, long-running local research agents. Not appropriate for agents nested inside a larger monorepo.
Where it fits with Trinity: Trinity deploys an agent by cloning its GitHub repo, so the deployed agent starts from whatever the branch tip holds. Locally, these hooks keep that tip honest — work is committed and pushed at session end instead of lingering uncommitted, so the deployed copy's own pull (or /trinity:sync) carries it forward. Inside a deployed agent the hooks stand down: the platform heartbeat owns commit-and-push there (one writer, visible in sync health — trinity-enterprise#708), and the hooks exit as soon as they see the platform (/opt/trinity/hooks). Committing them to the repo is harmless; they simply stay silent on Trinity.
Escape hatches baked in:
touch .git/NO_AUTOSYNC— disables all three hooksecho "..." > .git/SELF_SELECT_MSG— subagents write structured commit messages that survive the generic Stop-hook commit.git/SYNC_FAILED— propagates push failures forward to the next session
What ships with it
4 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.
- 1mo ago Changed · +2 lines d4ad6d8edba3
- 1mo ago Changed · +1 lines 6c8b8fb5630e
- 2mo ago Changed · +3 lines 3d6e627307a5
- 3mo ago First seen · 280 lines · 43 tokens per session scan B 4ef2c4992841
add-git-sync is a skill published in the GitHub repository Abilityai/abilities (13 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 3,788 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
add-git-sync compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-git-syncAbilityai/abilities | Skill | 13 | yesterday | MIT | B | 43 | Claude Code |
| git-ai-searchgit-ai-project/git-ai | Skill | 3.0k | today | Apache-2.0 | A | 13 | Claude Code |
| rememberpacifio/atlas | Skill | 9.2k | 11d ago | Apache-2.0 | A | 32 | Claude Code |
| recall-sessiontobihagemann/turbo | Skill | 428 | yesterday | MIT | A | 45 | Claude Code |
| releasematrixorigin/memoria | Skill | 631 | 7d ago | Apache-2.0 | A | 27 | Claude Code, Codex |
| change-boottikalk/adlc-team-skills | Skill | 147 | today | MIT | A | 113 | Claude Code, Codex |
| pre-prplastic-labs/honcho | Skill | 8.4k | today | AGPL-3.0 | A | 65 | Claude Code, Codex |