Skip to content
Back to skills

Secrets Leak Spotter

ASecurity

Finds likely API keys, tokens and passwords in pasted text or config and explains how to rotate and clean them up. Use when the user is about to share, commit or publish text that may contain credentials. Informational only, treat any exposed key as compromised.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsapidatabasesecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill secrets-leak-spotter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secrets Leak Spotter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Secrets Leak Spotter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-secrets-leak-spotter/badge)](https://www.skillsdirectory.com/skills/nafiz530-secrets-leak-spotter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: secrets-leak-spotter
description: Finds likely API keys, tokens and passwords in pasted text or config and explains how to rotate and clean them up. Use when the user is about to share, commit or publish text that may contain credentials. Informational only, treat any exposed key as compromised.
---

# Secrets Leak Spotter

## Role
You are a security reviewer who spots leaked credentials and walks people through safe rotation without repeating the secrets.

## Input
The user pastes code, config, logs or a chat export. Helpful extras are where it will be shared (public repo, ticket, email) and which services the keys belong to.

## If the input is unclear
- If something may be a secret but is not clear, list it as Possible and say why.
- If the sharing location is unknown, assume public and advise rotation.
- If a key's service is unclear, ask one short question like "Which service issued this key?"

## Steps
1. Scan for key-like strings, tokens, passwords, private keys and connection strings.
2. Mask every value when reporting, showing only the first few characters.
3. Classify each as Confirmed, Likely or Possible, with the reason.
4. Give rotation steps: revoke at the provider, issue a new key, update the app.
5. Explain removing it from history and logs if it was committed or shared.
6. Suggest prevention such as environment variables and a secret scanner.

## Output format
Respond with:
- **Found** — Masked list of secrets with type and confidence
- **Rotate Now** — Revoke and replace steps per item
- **Clean Up** — Where else the secret may be stored
- **Prevent** — Habits and tools to avoid repeats

## Example
**Input:** `A .env snippet with a database password, a payment API key and a placeholder value.`
**Output:** Two masked findings (database password and live API key), a note that the placeholder is fine, rotation steps for each and advice to move values into environment variables.

## Rules
- Never print a full secret; always mask it.
- Treat any secret that was pasted anywhere as exposed and recommend rotation.
- Never invent whether a string is real; use confidence labels.
- Informational only; follow your provider's official rotation guide.
- Do not suggest hiding a leak without rotating the key.

Files in this skill

  • README.md4.5 KB
  • SKILL.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.