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 agentproto/ts --skill ap-git-hygienegit clone --depth 1 https://github.com/agentproto/tsWrote 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/agentproto/ts/ap-git-hygiene)<a href="https://agentmods.dev/skills/agentproto/ts/ap-git-hygiene"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-git-hygiene/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/agentproto/ts/ap-git-hygiene"><img src="https://agentmods.dev/badge/skills/agentproto/ts/ap-git-hygiene.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.00085 | $0.01249 |
| Opus 5.5 | $0.00034 | $0.00500 |
| Sonnet 5.5 | $0.00017 | $0.00250 |
| Haiku 4.5 | $0.00009 | $0.00125 |
Grade A, and why
ap-git-hygiene 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 — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ap-git-hygiene
MCP profile
branch_gc*, worktree_gc, worktree_gc_status and maintain_run are on the
daemon's admin and full profiles. worktree_status and pr_open are also
on core. In a session narrowed to a profile that lacks a tool it is not in
tools/list, so a call fails before reaching the daemon.
Deleting is the last step, never the first. Every cleanup tool here defaults to
a dry run that changes nothing; only apply: true deletes, and the daemon
re-checks each ref or worktree right before touching it.
Tools
Task: look before you delete
worktree_statusfor the picture: which worktrees have an open PR, are dirty or have a live session.worktree_gcandbranch_gcas dry runs, withwait: falsefor a big repo. Pollworktree_gc_status/branch_gc_statusabout every 30 seconds.- Read the plan by class.
reclaimis proven safe,holdis never touched,review(branches) andsalvage(worktrees) need a decision. - Delete only when the task asked for it:
branch_gcwithapply: trueand explicitscopes;worktree_gcwithapply: trueand the dry run's plan asexpectedPlan. Do not widen the scope to "clean everything". - Keep the
restoreLogpath the branch apply returns.
Task: decide a branch the plan could not
branch_gc_review_worktreewithaction: "add"gives a detached checkout of the tip, so nothing touches the live working tree. Read the diff there.branch_gc_verdictrecords what you found for that exact tipsha.gate.agree: truewith evidence says deleting loses nothing. A verdict deletes nothing by itself.branch_gc_review_worktreewithaction: "remove"cleans up.- A tip below the line-coverage guard is deleted only with a human's approval:
ask the operator to run
agentproto branch gc approve <sha> --by <name>. An agent session cannot record it.
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 First seen · 103 lines · 85 tokens per session scan A e93a7f502783
ap-git-hygiene is a skill published in the GitHub repository agentproto/ts (11 stars, last pushed today), licensed Apache-2.0. It adds 85 tokens to every session and 1,249 once invoked, about $0.0003 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-12-02.
ap-git-hygiene compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ap-git-hygieneagentproto/ts | Skill | 11 | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| otto-pr-review-loopomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 17 | Claude Code, Codex |
| resolve-drive-promnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 21 | Claude Code, Codex |
| feature-publishomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 24 | Claude Code, Codex |
| otto-review-remediationomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 16 | Claude Code, Codex |
| otto-drive-promnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 14 | Claude Code, Codex |
| describe-prhumanlayer/humanlayer | Skill | 13k | 9d ago | Apache-2.0 | A | 15 | Claude Code, Codex |