More screenshots

    Works with the AI Agents you already use

    Spillcheck: Find Secrets Your AI Agent Leaked

    by Karma Wangchuk

    1

    The agent runs cat .env and the output is saved in its session log.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    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

    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.

    RiskSecretWhere it is
    CRITICALAWS access key + secret AKIA...4Hpushed history (terraform/terraform.tfvars, deleted later but still in history), ~/.bash_history, a Claude Code log
    CRITICALGitHub fine-grained token gith...3bscripts/release.sh line 4, ~/.claude.json GitHub MCP server
    CRITICALOpenAI key sk-p...2inotebooks/revenue.ipynb line 17 (printed in a cell output), ~/.zsh_history, a Claude Code log
    CRITICALProduction Postgres password O0T6...Fadocker-compose.prod.yml line 5, old .env.production, ~/.claude.json Postgres MCP server, ~/.bash_history
    CRITICALSSH deploy keydeploy/deploy_key in pushed history
    CRITICALSendGrid key SG.f...Lvold .env.production (pushed), a Claude Code log (cat .env)
    CRITICALStripe live key sk_l...X4branch feature/stripe-webhooks (not pushed yet), a Claude Code log
    HIGHAnthropic key sk-a...AApasted into a Claude Code chat
    HIGHGitHub classic token ghp_...Ql~/.bash_history (a curl line)
    MEDIUMHugging Face token, npm token, Slack webhook~/.cursor/mcp.json, a Codex log, untracked notes-local.md

    Do now

    1. Replace the AWS key, both GitHub tokens, the OpenAI, SendGrid, Stripe and Anthropic keys, the prod Postgres password and the deploy key. fix_plan.md says where to cancel each one.
    2. Before going public, move the values out of scripts/release.sh, notebooks/revenue.ipynb and docker-compose.prod.yml. Rewrite the first commit of feature/stripe-webhooks before pushing it.
    3. Then clean history and logs: fix_plan.md has the git-filter-repo commands (drops .env.production and deploy/deploy_key, scrubs the rest), one sed line 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    terminalPython 3.9+
    Optional
    Git

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    File Scopes

    The
    repo
    you
    choose
    (read
    including
    its
    git
    history)
    ~/.claude
    ~/.codex
    ~/.cursor
    ~/.gemini
    ~/.claude.json
    Aider
    files
    and
    shell
    history
    only
    after
    agree)
    A
    report
    folder
    (writes
    findings.json
    report.md
    fix_plan.md)
    .git/hooks/pre-commit
    spillcheck_guard.py
    (only
    if
    ask
    for
    the
    guard)

    No network access and no API keys. Reads local agent logs and shell history; reports hold masked values only.

    Listed2 days ago

    What's inside

    Frequently Asked Questions

    No. Everything runs on your computer with plain Python. Nothing is uploaded, no key is "tested" against an API, and the reports only hold masked values (first 4 and last 2 characters).

    No. It writes the commands into fix_plan.md. You read them and run them. The only thing it can install is the pre-commit check, and only after you say yes.

    Agents save full session logs on disk. If you paste a token into the chat, or the agent runs `cat .env`, the key now lives in a file under `~/.claude`, `~/.codex` or `~/.gemini`, which backups, sync tools and "share this session" features can copy.

    It tries hard not to. Test keys, passwords in test files, local database URLs, Firebase browser keys and example values are marked LOW or INFO and kept off the to-do list, and code like `settings.api_key` is ignored. Anything else you know is safe: add a `spillcheck:allow` comment on that line.

    No. Anyone who cloned or scraped it keeps it. Replace the key first; history cleanup only stops future copies.

    No. It is a checklist and scanner. A clean scan does not prove a key never leaked.

    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.