More screenshots
Works with the AI Agents you already use
Spillcheck: Find Secrets Your AI Agent Leaked
The agent runs cat .env and the output is saved in its session log.
$7
What it does
- Checks your project, every old commit on every branch, and the logs and settings files AI coding agents keep
- Shows each leaked key once, with every place it turned up, most dangerous first, and leaves test keys and
- Tells you where to cancel and replace each key: AWS, GitHub, Stripe, OpenAI, Anthropic and more
- Writes the commands to wipe keys from git history and the lines to clean from agent logs and shell history
- Adds a check that blocks the next key before it is committed (only if you say yes)
Who it's for
Developers who code with an AI agent
every key the agent pasted, printed or logged, and where it is now
Try asking: “I pasted my GitHub token into Claude Code, find every place it ended up”
Maintainers about to make a repo public
a short list of what to replace, plus the history-cleanup commands
Try asking: “Scan this repo and its history before I make it public”
Teams adding MCP servers
keys typed straight into `.mcp.json`, `~/.claude.json` or Cursor settings, found and moved to environment variables
Try asking: “Check my MCP configs for pasted keys”
Anyone who just leaked a key
what to do first for that provider
Try asking: “I committed my .env, what do I do?”
Spillcheck: Find Secrets Your AI Agent Leaked
Example session with this skill installed
Before I make invoicely public on GitHub, check it and its whole git history (all branches), plus my Claude Code / Codex / Cursor logs and shell history, for leaked keys. Tell me what leaked, where, and exactly what to do.
- Read your context and instructions
- Compiled the spillcheck
13 secrets need replacing: 7 CRITICAL, 3 HIGH, 3 MEDIUM. History was already pushed to origin. 5 more are low risk (test keys, test fixtures, your local dev database, the Firebase web key): no rotation needed.
| Risk | Secret | Where it is |
|---|---|---|
| CRITICAL | AWS access key + secret AKIA...4H | pushed history (terraform/terraform.tfvars, deleted later but still in history), ~/.bash_history, a Claude Code log |
| CRITICAL | GitHub fine-grained token gith...3b | scripts/release.sh line 4, ~/.claude.json GitHub MCP server |
| CRITICAL | OpenAI key sk-p...2i | notebooks/revenue.ipynb line 17 (printed in a cell output), ~/.zsh_history, a Claude Code log |
| CRITICAL | Production Postgres password O0T6...Fa | docker-compose.prod.yml line 5, old .env.production, ~/.claude.json Postgres MCP server, ~/.bash_history |
| CRITICAL | SSH deploy key | deploy/deploy_key in pushed history |
| CRITICAL | SendGrid key SG.f...Lv | old .env.production (pushed), a Claude Code log (cat .env) |
| CRITICAL | Stripe live key sk_l...X4 | branch feature/stripe-webhooks (not pushed yet), a Claude Code log |
| HIGH | Anthropic key sk-a...AA | pasted into a Claude Code chat |
| HIGH | GitHub classic token ghp_...Ql | ~/.bash_history (a curl line) |
| MEDIUM | Hugging Face token, npm token, Slack webhook | ~/.cursor/mcp.json, a Codex log, untracked notes-local.md |
Do now
- Replace the AWS key, both GitHub tokens, the OpenAI, SendGrid, Stripe and Anthropic keys, the prod Postgres password and the deploy key.
fix_plan.mdsays where to cancel each one. - Before going public, move the values out of
scripts/release.sh,notebooks/revenue.ipynbanddocker-compose.prod.yml. Rewrite the first commit offeature/stripe-webhooksbefore pushing it. - Then clean history and logs:
fix_plan.mdhas the git-filter-repo commands (drops.env.productionanddeploy/deploy_key, scrubs the rest), onesedline for~/.bash_history, and the agent logs to delete.
Files: report.md, fix_plan.md. Want me to add the pre-commit check so the next key is blocked?
Connects securely to your tools. The creator never sees your data.
About this skill
Leaked keys rarely sit only in your code. You paste a token into an agent chat. The agent runs cat .env and the output is saved in its session log. You type a key into an MCP config. A curl with your token stays in your shell history. You delete a key from a file, but the old commit still has it, and it was already pushed.
Spillcheck looks in all of those places at once: the project, every commit on every branch, and the logs and settings of Claude Code, Codex, Cursor, Gemini CLI and Aider, plus your shell history. The same key found in five places is one line with five locations, not five alerts.
Each key gets a risk level. A real key that is in the repo now or in history you already pushed is CRITICAL. One that sits in an agent log, a config or shell history is HIGH or MEDIUM. Test keys, test fixtures, a local database password and Firebase browser keys are LOW and stay off the to-do list. Code such as settings.api_key is not reported at all.
You get a fix plan: a checklist of what to replace, the file each key was found in, and where to cancel it. It also has the git-filter-repo commands to drop leaked files and scrub values from history, a quicker route for keys that were never pushed, one cleanup line for each log and history file, and settings that keep your agent away from .env files. If you want, it also adds a check that blocks the next key before it is committed.
It never shows a full key, never sends anything anywhere, and never runs the risky commands itself. You read them and run them.
Detection uses 20 built-in patterns plus randomness checks, so unusual key formats can be missed. It is a checklist and scanner, not a security audit: a clean scan does not prove a key never leaked. It never rotates keys, rewrites git history or deletes logs itself; you run the commands it writes. Without a terminal or Python the agent can only read files (working tree only).
- 3 standalone Python 3 scripts, standard library only (no installs): `spillcheck.py` (scan + staged check), `fixplan.py` (fix plan), `install_guard.py` (pre-commit hook; keeps an existing hook as .bak; `--remove` undoes it). - 20 detection rules: AWS key ID + secret, GitHub (classic + fine-grained), GitLab, Slack token + webhook, Stripe, Anthropic, OpenAI, Google, Hugging Face, npm, PyPI, SendGrid, Telegram, private keys, database URLs with passwords, JWTs, password assignments, .env-style lines; plus committed or staged .env files. - Git history: `git log -p --all`, added lines only, first commit per secret, pushed or local-only. - Agent home: `~/.claude` (project logs, file-history, settings), `~/.claude.json`, `~/.codex`, `~/.cursor`, `~/.gemini`, `~/.codeium`, Aider files, bash/zsh/fish/PowerShell/Python/psql history. - Noise control: placeholders, test-mode keys, test/fixture paths, localhost database URLs, Firebase web keys and code references (`settings.api_key`, `var.x`) are kept off the rotation list; `spillcheck:allow` silences a line. - Fix plan: AWS key ID + secret as one row, committed .env files and private keys dropped whole, one `sed` per history file (single pass), `$HOME` paths that work in bash and PowerShell. - Output: `findings.json` (masked values, per-run salted fingerprints), `report.md`, `fix_plan.md`. - Tested on a 38-commit, 4-branch repo plus a full fake agent home: 12 of 12 planted leaks found, no test data ranked above LOW, about 3 seconds.
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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
- terminal
Python 3.9+
- Optional
Git
Permissions
File Scopes
No network access and no API keys. Reads local agent logs and shell history; reports hold masked values only.
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.