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
SKILL.md.claude/skills/sanitize-git-history/SKILL.md
GitHubThe instruction body carries the full two-phase workflow:
../instructions/sanitize-git-history.md— the audit steps (messages, tags, paths, blobs, identities), the replacement-rules file format and its no-comment trap, the filter-repo rewrite, and the post-rewrite verifications.
Inputs: the repository (current project by default), the git-ignored
a.sensitive.replacements.local.txt watch list at its root (drafted by
phase 1 when missing), and an optional a.mailmap.local.txt for
identities. The skill never pushes: publishing the rewritten history is
always left to the user.