Git Secret Leak Scan (Zero Plaintext)
Find leaked credentials in git repos without printing the secrets themselves.
Free
Git Secret Leak Scan (Zero Plaintext)
Example session with this skill installed
Run a secret scan on the cloned 'web-app' directory and save the results to report.json. Report hits as file, line, category and length only. Then walk me through the documented manual follow-up — how to check whether a DeepSeek key is still active, and how to purge the file from history on Windows.
- Read your context and instructions
- Compiled the git secret leak
Demo result (illustrative; the repository and its contents are synthetic):
[web-app] tracked=142 scanned=138 skipped=4 env=0 db=1 sens=0 hits=1 remote_token=- reconciles=ok
- config/services.py:42 [deepseek/openai-key] (len=48)
- internal/db.sqlite → listed in db_tracked (path only; not opened by the scanner)
JSON shows one finding, file/line/category/length only — the matched string is never printed: {"file":"config/services.py","line":42,"type":"deepseek/openai-key","length":48}
Manual follow-up, not performed by the scanner: check whether the DeepSeek key is still active with GET https://api.deepseek.com/user/balance (200 = still valid, rotate now), and run the documented sqlite3 query yourself to count rows before judging the exposure. If remediation is needed, follow the documented WSL2 + git-filter-repo steps: rewrite history, resolve the real default branch with gh repo view and push --force to it, delete leftover remote backup branches, then re-clone into a fresh directory and confirm git log --all -- <path> returns nothing.
Connects securely to your tools. The creator never sees your data.
About this skill
A defensive audit skill for checking your own repositories before they go public, or after you suspect a leak. The bundled scanner reports file, line, category, and match length only — never the secret string. It does not make network calls. The write-up also explains optional, manual live-key checks and self-revocation against provider APIs, plus Windows/WSL2 history cleanup with git-filter-repo and a force-push. Use those steps only on accounts and keys you are authorised to operate.
Text scanning skips every binary file, including SQLite databases; those are reported by path only, so you must inspect them yourself. History cleaning on Windows requires WSL2. Remote history removal also requires manually deleting orphaned backup branches, and the default branch name must be resolved before force-pushing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 16 days ago
- Free with an Agensi account
- Software
Python 3 (standard library only)
Git
- Optional
gh (GitHub Trees API inventory)WSL2 with git_filter_repo.py (Windows history rewrite)
Offline scanner: one Python script, no network calls. Everything else — GitHub Trees API inventory, SQLite row counts, live-key status checks, WSL2 history rewrite and force-push — is documented manual steps you run and authorise yourself. No history-purging script is included.
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.