github-sensitive-data-cleanup SKILL.md skillA
github-sensitive-data-cleanup from daymade/claude-code-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add daymade/claude-code-skills/github-sensitive-data-cleanup@git:20261005.1f0479bPins git:20261005.1f0479b in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- daymade/claude-code-skills
- Path
github-sensitive-data-cleanup/SKILL.md- Versions recorded
- 8
- Latest version
- git:20261005.1f0479b, committed Oct 5, 2026
- First version recorded
- Aug 23, 2026
- Size
- 20,936 bytes
- Repository stars
- 1,519
- License
- MIT
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).
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# GitHub Sensitive Data Cleanup ## Overview This skill guides you through safely removing sensitive data from a Git repository's history and pushing the cleaned history to GitHub. It encodes the hard-won lessons from real incidents: scan first, backup before rewriting, verify after rewriting, and never force-push to a public repo without checking its visibility and fork count. The bundled scripts automate the mechanical parts: - `scripts/scan_repo.py` — scan the repo for secrets and private context. - `scripts/rewrite_history.py` — create a backup and rewrite history with `git-filter-repo`. - `scripts/verify_cleanup.py` — confirm the sensitive content is gone. - `scripts/safe_push.py` — verify repo visibility and push safely. **This skill is conservative by design.** If any safety check fails, it stops and asks for human confirmation rather than continuing. ## When to Use This Skill Trigger this skill when the user: - Says "scan sensitive data", "扫描敏感信息", "看看仓库有没有泄露". - Wants to "clean git history", "sanitize history", "rewrite history", "remove secrets from history". - Has accidentally pushed a secret, private domain, internal IP, or PII to a public repository. …
Read the whole file at its exact version.
How to install
mdr add daymade/claude-code-skills/github-sensitive-data-cleanup@sha256:c4380f5e6de44cebThe line at the top of this page pins the label git:20261005.1f0479b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_yesbf4f7r5bn2tcy)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 8 versions of this file, between Aug 23, 2026 and Oct 5, 2026, about one every 6 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261005.1f0479b latest | 2026-10-05 | 1f0479b | 20,936 B | A | view · diff |
| git:20261004.efa0b07 | 2026-10-04 | efa0b07 | 17,576 B | A | view · diff |
| git:20261004.276ca76 | 2026-10-04 | 276ca76 | 13,405 B | A | view · diff |
| git:20260923.943df48 | 2026-09-23 | 943df48 | 12,754 B | A | view · diff |
| git:20260918.b4480e8 | 2026-09-18 | b4480e8 | 12,828 B | A | view · diff |
| git:20260823.776b760 | 2026-08-23 | 776b760 | 12,156 B | A | view · diff |
| git:20260823.43d0d84 | 2026-08-23 | 43d0d84 | 12,118 B | A | view · diff |
| git:20260823.9f56bcf | 2026-08-23 | 9f56bcf | 12,088 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (20936 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
daymade/claude-code-skills · 1,519 stars · license MIT · pushed 2026-11-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_yesbf4f7r5bn2tcy GET https://markdownregistry.com/api/v1/resolve?ref=daymade/claude-code-skills/github-sensitive-data-cleanup GET https://markdownregistry.com/api/v1/blob/c4380f5e6de44cebc06be8d8cd2afd2d835bc01167f2dc8d7f0aa4f07067d59c
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.