Skills for Real Engineers. Straight from my .agents directory.
github-sensitive-data-cleanup
Agent skill fromdaymade/claude-code-skills
Scans and removes sensitive data (secrets, API keys, private domains/IPs, PII) from GitHub repository history, then verifies and force-pushes safely. Use for 清理敏感数据 / 历史重写 / 泄露, "scan sensitive data", "clean git history", "remove secrets from repo", or before any force push to a public repo. Not for local-only Git recovery (use git-safety-net) or ordinary repository setup (use auto-repo-setup).
How to install github-sensitive-data-cleanup
npx skills add daymade/claude-code-skills# or add only this skill to Claude Code: copy the folder
github-sensitive-data-cleanup/
# into
~/.claude/skills/github-sensitive-data-cleanup/ (all projects)
.claude/skills/github-sensitive-data-cleanup/ (one project)
1# GitHub Sensitive Data Cleanup23## Overview45This skill guides you through safely removing sensitive data from a Git6repository's history and pushing the cleaned history to GitHub. It encodes the7hard-won lessons from real incidents: scan first, backup before rewriting,8verify after rewriting, and never force-push to a public repo without checking9its visibility and fork count.1011The bundled scripts automate the mechanical parts:1213- `scripts/scan_repo.py` — scan the repo for secrets and private context.14- `scripts/rewrite_history.py` — create a backup and rewrite history with15 `git-filter-repo`.16- `scripts/verify_cleanup.py` — confirm the sensitive content is gone.17- `scripts/safe_push.py` — verify repo visibility and push safely.1819**This skill is conservative by design.** If any safety check fails, it stops20and asks for human confirmation rather than continuing.2122## When to Use This Skill2324Trigger this skill when the user:2526- Says "scan sensitive data", "扫描敏感信息", "看看仓库有没有泄露".27- Wants to "clean git history", "sanitize history", "rewrite history",28 "remove secrets from history".29- Has accidentally pushed a secret, private domain, internal IP, or PII to a30 public repository.31- Is about to force-push to a public repository (even without sensitive data).32- Mentions `git filter-repo`, `BFG`, `git-filter-branch`, or history rewrite.3334## Prerequisites3536Install these tools once per machine:3738```bash39# git-filter-repo (modern replacement for git-filter-branch)40…
Excerpt shown under the repository's MIT license.
More skills in claude-code-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
