Secret Scan, Hook Setup and Leak Response

    by José Miguel Gómez

    1

    Find leaked secrets with redacted output, fix them, set up your own pre-commit hook and get an ordered rotation plan after a leak. Stdlib only.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Scans files for common API keys and secret tokens using built-in rules
    • Redacts sensitive findings so your actual passwords never appear in the chat
    • Creates a step-by-step rotation plan to replace leaked credentials safely
    • Provides templates to set up automatic checks every time you save code
    • Includes a guide to identify and ignore false alarms or test values
    • Generates a report of what was found and where it is located

    Who it's for

    Founders launching a new product

    Check your code for hidden passwords before you share it or push it live.

    Try asking: “Check my current files for any secrets before I commit them.”

    Freelance developers working for clients

    Keep client credentials safe and set up automatic checks to block leaks.

    Try asking: “Show me how to set up a pre-commit hook to block secret leaks.”

    Project managers handling a data leak

    Quickly find where a key leaked and get a step-by-step plan to fix it.

    Try asking: “I think a key was committed by mistake. Help me find it and plan the fix.”

    Secret Scan, Hook Setup and Leak Response

    Example session with this skill installed

    I accidentally committed a file that might have my OpenAI and Stripe keys in it. Can you help me find them and tell me what to do next?

    • Read your context and instructions
    • Compiled the secret scan hook

    I will help you find those keys and create a plan to secure your account. I will scan your files now.

    1. Secret Scan Results
    I found two potential secrets. I have hidden most of the characters for your safety:

    • File: config/settings.py | Line 12 | Rule: openai-api-key | Value: sk-a****
    • File: src/payments.js | Line 45 | Rule: stripe-live-key | Value: pk_l****

    2. Immediate Action: Rotation Plan
    Since these were committed, you must treat them as compromised. Do not just delete the text; you need to replace them.

    • Stripe: Go to your Stripe Dashboard, roll the key found in payments.js, and get a new one.
    • OpenAI: Log into your OpenAI platform settings, revoke the key starting with sk-a, and create a new secret key.

    3. Cleanup
    Once you have the new keys, do not paste them into your code. I can show you how to load them from your environment settings instead.

    4. Verification
    After you update the files, let me know and we will run the scan again to make sure everything is clean.

    Would you like the specific steps for rotating these keys now?

    Connects securely to your tools. The creator never sees your data.

    About this skill

    If you accidentally leave a password, API key, or secret token in your code, hackers can find it. This skill helps your AI agent scan your files to find these hidden dangers before they cause trouble. It looks for common patterns like AWS keys, Stripe tokens, and generic passwords.

    If a leak already happened, this skill guides you through fixing it. It creates a plan to change your passwords and clean up your files without showing the full secret in the chat. You can also use it to set up automatic checks that stop you from committing secrets in the future.

    How it works

    1. Ask your AI agent to scan specific files or your whole project for secrets.
    2. Review the list of findings to see which files and lines have potential issues.
    3. Follow the provided recipes to safely remove the secrets and store them properly.
    4. Use the rotation guide if a secret was already exposed to the public.

    What you get: A clean project free of exposed credentials and a plan to keep it that way.

    It does not scan your past git history or encoded files. It cannot tell if a found key is still active or valid.

    This skill uses a Python 3.10 scanner (scan_secrets.py) and a rotation planner (rotation_plan.py). It includes a library of remediation recipes, hook templates, and a rotation runbook in Markdown. It supports custom JSON configurations for team-specific regex rules and allowlists. The scanner skips files over 1MB and binary data, and it does not perform network calls or read the git object database.

    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.

    Frequently Asked Questions

    This skill scans your code to find passwords and keys before you accidentally share them. It also creates a step by step plan to help you change those keys and clean up your files if a leak has already happened.

    The skill provides clear lists showing exactly which file and line contains a potential secret. You also get specific guides on how to remove the secret, along with templates to help you set up automatic checks for your project.

    It cannot read your project's history or find secrets that are split across multiple lines. It also cannot tell if a key is currently active or just a fake value used for testing.

    You can simply ask your agent to scan specific files or your entire project for secrets. You can also ask it to help you create a plan to fix a specific leak or set up a check to stop secrets from being added in the future.

    This skill does not need any external accounts or internet access. It uses standard tools already available to your agent to scan files and generate plans based on the documents included in the skill.

    For your safety, the skill never displays the full secret in the chat or reports. It only shows the first few characters followed by stars so you can identify which key was found without exposing it further.

    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.