AGENT SKILL

sanitize-git-history

Audit the full Git history of any repository for confidential words, automatically using the contextual scanner with literal terms or a.sensitive.replacements.local.txt, then rewrite that history with git filter-repo before publishing. Phase 1 reports matching commit, tag, path, and blob lines and drafts or refreshes the rules plus an optional mailmap. Phase 2 rewrites a fresh clone, re-audits, verifies changed commits, restores remotes, and stops before any push. Use when the user asks to inspect or sanitize history, scrub sensitive terms, or make a repository publishable.

License 许可
MIT
所属仓库
VonC/llm-shared
最近更新
2026-11-15
Stars
★ 1
Forks
0

01 前言 Front Matter

name
sanitize-git-history
description
Audit the full Git history of any repository for confidential words, automatically using the contextual scanner with literal terms or a.sensitive.replacements.local.txt, then rewrite that history with git filter-repo before publishing. Phase 1 reports matching commit, tag, path, and blob lines and drafts or refreshes the rules plus an optional mailmap. Phase 2 rewrites a fresh clone, re-audits, verifies changed commits, restores remotes, and stops before any push. Use when the user asks to inspect or sanitize history, scrub sensitive terms, or make a repository publishable.
argument-hint
Name the phase and optionally the repo, for example "sanitize-git-history phase 1" or "sanitize-git-history phase 2 on ../myrepo". Default is phase 1 on the current project.
user-invocable
true

03 SKILL.md 正文

04 同仓库更多 Skills