git-history-cleanup

git-history-cleanup is a skill for Claude Code, Codex from techysy/yangyu-hermes-skills. It costs 14 tokens per session (1,239 once invoked), scanned C, original, no licence file.

A guide for cleaning Git history with git-filter-repo. Git history is the record of changes and commits in a code project.

In plain words
What is it for?
Use it when you need to clean a repository's Git history and have chosen git-filter-repo for the rewrite.
Why use it?
It helps remove or rewrite unwanted information in that record. The description does not specify which cleanup cases it handles.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it when you need to clean a repository's Git history and have chosen git-filter-repo for the rewrite.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/techysy/yangyu-hermes-skills/git-history-cleanup
Install

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.

Any agent
npx skills add techysy/yangyu-hermes-skills --skill git-history-cleanup
Clone the repo
git clone --depth 1 https://github.com/techysy/yangyu-hermes-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for git-history-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/techysy/yangyu-hermes-skills/git-history-cleanup/github.svg)](https://agentmods.dev/skills/techysy/yangyu-hermes-skills/git-history-cleanup)
Your own site
<a href="https://agentmods.dev/skills/techysy/yangyu-hermes-skills/git-history-cleanup"><img src="https://agentmods.dev/badge/skills/techysy/yangyu-hermes-skills/git-history-cleanup/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.

agentmods 80×15 button for git-history-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/techysy/yangyu-hermes-skills/git-history-cleanup"><img src="https://agentmods.dev/badge/skills/techysy/yangyu-hermes-skills/git-history-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,239 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.01239
Opus 5 $0.00007 $0.00620
Sonnet 5 $0.00003 $0.00248
Haiku 4.5 $0.00001 $0.00124

Measured 11d ago against content hash b05023bebed9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

git-history-cleanup scanned grade C with 2 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 11d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .git

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sL "https://raw.githubusercontent.com/owner/original-repo/main/LICENSE" -o LICENSE
skills/software-development/git-history-cleanup/SKILL.md · 129 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

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.

  1. 11d ago First seen · 129 lines · 14 tokens per session scan C b05023bebed9

Subscribe to this mod's changes

git-history-cleanup is a skill published in the GitHub repository techysy/yangyu-hermes-skills (5 stars, last pushed 17d ago), with no licence file. It adds 14 tokens to every session and 1,239 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

coding-worktree-recovery

Use this skill when coding-agent work is interrupted, an agent exits without a clean commit, multiple controllers target the same checkout, or the checkout produces inconsistent file/Git behavior.

AtlasOmnia/donna-starter · 56 tokens

git-conventional-commits

Author standardized conventional commit messages (feat, fix, docs, refactor, chore), generate automated semver releases, and format pull request descriptions.

pedroiff0/awesome-skills · 36 tokens

stale-patch-reconciliation

Use when a patch/diff must be compared with, repaired against, or refreshed for a moving checkout — "is this patch still needed", "does upstream already contain it", "what changed since it was written", "reconcile X.diff with HEAD", or "make apply-patches pass again".

AtlasOmnia/hermes-custom-pack · 26 tokens

git-workflow-and-versioning

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple…

addyosmani/agent-skills · 89 tokens

chinese-commit-conventions

A Chinese-language guide to Conventional Commits, a format for writing consistent Git commit messages, plus related changelog, commit-checking, and commit-helper configuration.

jnMetaCode/superpowers-zh · 65 tokens

commit

Skill "commit" from clacky-ai/openclacky, covering smart commit skill, critical requirement: single-line commits only, core philosophy, usage and process steps.

clacky-ai/openclacky · 0 tokens