Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

GitHub Sensitive Data Cleanup

Scan, scrub, verify, and safely force-push away secrets, private domains, and PII hiding in your Git history.

Security & ReviewAdvanced1,323212AI score 9/10Last updated: Aug 8, 2026

What it does

Walks you through the full lifecycle of removing sensitive data from a Git repository's history and pushing the cleaned result.

  • scan_repo.py — gitleaks plus custom regex layers, producing a JSON report
  • Layer 4 AI semantic review — catches real names, project codenames, transcript snippets and other context regex can't see
  • rewrite_history.py — creates and verifies a git bundle backup, then runs git filter-repo --replace-text
  • verify_cleanup.py — rescans and greps every commit for the original strings
  • safe_push.py — checks gh repo view for visibility and forks, prefers --force-with-lease, refuses --no-verify

Conservative by design: if any safety check fails, it halts and asks for human confirmation.

Who it's for

  • Developers who accidentally pushed an API key or internal hostname to a public repo
  • Anyone who needs git filter-repo/BFG but is nervous about the blast radius
  • Teams auditing history before flipping a repo from private to public
  • Security reviewers and open-source release managers

Examples

  1. "Scan this repo for leaked secrets" → runs the scanner and summarizes /tmp/scan-report.json with severity triage
  2. An internal domain appears across three years of commits → build a replacements file → backup bundle → rewrite → verify → safe push
  3. About to force-push a public repo → the skill checks visibility and fork count, warns loudly, and drafts a notice for fork owners

· · · Install guide · · ·

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on Claude Skill Mart.
Copy the github-sensitive-data-cleanup folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/github-sensitive-data-cleanup/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/daymade/claude-code-skills.git /tmp/claude-code-skills && cp -r /tmp/claude-code-skills/github-sensitive-data-cleanup ~/.claude/skills/

This is a third-party skill. Check the source repository before installing.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/daymade/claude-code-skills.git /tmp/claude-code-skills
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r /tmp/claude-code-skills/github-sensitive-data-cleanup ~/.claude/skills/
  5. Install the required tools (macOS): brew install git-filter-repo gitleaks gh
  6. Install uv if missing: curl -LsSf https://astral.sh/uv/install.sh | sh
  7. Authenticate GitHub CLI: gh auth login
  8. Restart Claude Code and try: "scan this repository for sensitive data".
  9. ⚠️ Before any history rewrite, confirm the backup bundle was created and warn teammates — open PRs and forks will be affected.