NoahWorkman

Git Sanitize — Git skill for Claude Code

Git community

Git Sanitize - Scan for Sensitive Info Before Pushing.

How to install Git Sanitize

Installs to ~/.claude/skills/noahworkman-claude-skills-git-sanitize/SKILL.md

Terminal
mkdir -p ~/.claude/skills/noahworkman-claude-skills-git-sanitize && curl -fsSL https://raw.githubusercontent.com/NoahWorkman/claude-skills/HEAD/commands/git-sanitize.md -o ~/.claude/skills/noahworkman-claude-skills-git-sanitize/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Git Sanitize does

Git Sanitize - Scan for Sensitive Info Before Pushing

Scan the current repo for sensitive information before it goes public.

What to scan

Run these checks in order:

1. Staged changes

Check `git diff --cached` for sensitive patterns.

2. Full history

Check `git log --all -p` for sensitive patterns.

3. Sensitive patterns to match

  • Absolute paths with usernames (e.g., /Users/, /home/)
  • UUIDs that look like tenant/project/user IDs (8-4-4-4-12 format, excluding common false

Alternatives in Git

Full documentation available on GitHub

View Source Repository