# Secret Scan, Hook Setup and Leak Response

> 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.

Secret Scan, Hook Setup and Leak Response is a paid AI agent skill on Agensi by José Miguel Gómez, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [José Miguel Gómez](https://www.agensi.io/creators/jose-miguel-gomez)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/secret-scan-hook-setup-and-leak-response
- Tags: security, api, code-review, automation, python

## 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: "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: "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: "I think a key was committed by mistake. Help me find it and plan the fix."

## 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.

## Requires

- Python
- Git

## Known limitations

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

## Technical details

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Secret Scan, Hook Setup and Leak Response skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill help me stay safe?

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.

### What kind of reports or results will I receive?

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.

### Are there any types of security leaks this skill might miss?

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.

### What should I say to get my agent to start a scan?

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.

### Do I need to sign up for any other services to use this?

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.

### Will my private keys be visible in the chat when the agent finds them?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
