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 0x0w1/jig --skill repo-hygienegit clone --depth 1 https://github.com/0x0w1/jigWrote 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/0x0w1/jig/repo-hygiene)<a href="https://agentmods.dev/skills/0x0w1/jig/repo-hygiene"><img src="https://agentmods.dev/badge/skills/0x0w1/jig/repo-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/0x0w1/jig/repo-hygiene"><img src="https://agentmods.dev/badge/skills/0x0w1/jig/repo-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.00000 | $0.01979 |
| Opus 5.5 | $0.00000 | $0.00792 |
| Sonnet 5.5 | $0.00000 | $0.00396 |
| Haiku 4.5 | $0.00000 | $0.00198 |
Grade A, and why
repo-hygiene scanned grade A 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 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.
Unrestricted tool accesslowExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
- Do not force push, and do not run any command that rewrites history. Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
This is a copy
98% identical to jig-repo-hygiene — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repo Hygiene
Use this repository skill to find and clear the debris that builds up in a repository worked through jig. It audits first and always reports; it removes only what the user names.
This is the repository's own housekeeping. For the state of the jig installation, use jig-doctor, which is read-only and never deletes.
Why Merged Branches Look Unmerged
develop-task-flow finishes with git merge --squash, so the task branch tip never becomes an ancestor of develop. Git therefore reports every finished branch as unmerged:
git branch --merged develop # finds almost nothing
git branch --no-merged develop # lists work that shipped months ago
Never decide a branch is safe to delete with --merged. Under a squash flow it answers a different question than the one being asked.
A plain diff does not answer it either, in either spelling:
| Command | What it compares | Why it misjudges |
|---|---|---|
git diff develop...<branch> |
merge base against the branch | still shows the branch's own contribution after a squash merge, so finished work reads as unfinished |
git diff develop..<branch> |
the two tips | any later unrelated commit on develop makes a finished branch read as unfinished |
The supported question is: do all paths changed by the task relative to its unique merge base match the base's current content, type, and mode? Unrelated paths on develop do not matter. Use the read-only classifier relative to this skill directory:
sh scripts/classify-branches.sh [--base develop] [--history-limit 200] [<local-branch>...]
It prints <status>\t<branch>\t<detail> for each branch:
| Status | Meaning |
|---|---|
incorporated |
changed paths match now |
unincorporated |
definite outstanding content |
undecidable |
insufficient evidence |
protected |
never a deletion candidate |
Only incorporated may be offered for explicitly approved deletion. This is content equivalence, not proof of a particular merge commit. It includes an empty task diff. Additions, deletions, and mode/type changes are compared; renames are a deletion plus an addition, so copying only the destination is insufficient.
What ships with it
1 file 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.
- 2mo ago Changed · +31 lines b731bbd7ab62
- 3mo ago First seen · 95 lines · 0 tokens per session scan A 539e8cd231b1
repo-hygiene is a skill published in the GitHub repository 0x0w1/jig (5 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,979 tokens. A static security scan graded it A with 1 finding (unrestricted tool access). It is 98% identical to jig-repo-hygiene, differing in 2 lines, and is treated as a copy.
repo-hygiene compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| repo-hygiene0x0w1/jig | Skill | 5 | 2mo ago | MIT | A | 0 | Claude Code |
| git-shipoil-oil/git-ship | Skill | 24 | 19d ago | MIT | A | 298 | Claude Code, Codex |
| worktree-pipeline-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 59 | Claude Code, Codex |
| semantic-release-convention-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 37 | Claude Code, Codex |
| git-branch-workflow-setup-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 45 | Claude Code, Codex |
| version-bump-standard-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 43 | Claude Code, Codex |
| git-semantic-commits-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 70 | Claude Code, Codex |