Secret History Scan (Free, Offline Git Leak Check)
Scans a repo's working tree and full git history for leaked API keys, private keys, DB passwords and committed .env files, with redacted output.
Free
Works with the AI Agents you already use
About this skill
Deleting a secret from the latest commit does not remove it from history, and anyone who cloned or forked already has it. This finds secrets in both places so the user can rotate what is actually exposed.
A git repository folder. History scanning runs git log --all -p (read-only) over at most --max-commits commits (default 2000) and reports the first commit that added each distinct value. Use --no-history for a quick working-tree pass or for a non-git folder.
This skill bundles one standard-library Python file, scripts/secret_history_scan.py (sha256 2af2cd5cecdb049e90bc30d11155dfd8476040a00d856d46cf91955ea80743ce). If it is not already on disk:
- Write the bundled script text verbatim to a temp file outside the user's project, e.g.
T=$(mktemp --suffix=.py). - Check
sha256sum "$T"equals2af2cd5cecdb049e90bc30d11155dfd8476040a00d856d46cf91955ea80743ce. If it differs, rewrite it; never edit it. - Run
python3 "$T" "/path/to/repo" [--no-history] [--max-commits 2000] [--json]with each user path as a separately quoted argument. - Delete the temp file. Do not save the script into the project.
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 any payment.
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
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 1 month ago
- Free with an Agensi account
Requires