Skip to content
Back to skills

Find Secrets

BSecurity

Searches the working tree for API keys, tokens, private keys and risky config files and reports where each one lives.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentsgitapidatabase

Works with

  • api

Security analysis

B75/100
  • criticalReads or references SSH private keys

Pro shows the line behind each finding and how to fix it

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill find-secrets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Find Secrets?

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

Security grade badge for Find Secrets
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-find-secrets/badge)](https://www.skillsdirectory.com/skills/workspace-templates-find-secrets)

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: find-secrets
description: Searches the working tree for API keys, tokens, private keys and risky config files and reports where each one lives.
argument-hint: "[folder to limit the search]"
user-invocable: true
disable-model-invocation: true
---

Look for committed or exposed secrets. Scope: $ARGUMENTS (whole working tree if empty).

1. List tracked and untracked files with `git ls-files` and `git status --short --ignored`. Note any .env, .pem, .key, .p12, credentials.json, id_rsa or *.tfstate file and whether it is tracked or ignored.
2. Search file contents for high-signal patterns: `AKIA[0-9A-Z]{16}`, `-----BEGIN (RSA |EC |OPENSSH )?PRIVATE KEY-----`, `ghp_`, `xox[bp]-`, `sk_live_`, bearer tokens, connection strings with passwords, and assignments like password, secret or api_key with a literal value.
3. Check config for risk: debug flags, permissive CORS, default admin passwords, database URLs with real hosts.
4. Run gitleaks or trufflehog if installed, quoting what they report.
5. Never print a full secret: show the first 4 characters and the length only. Do not delete, rewrite history or rotate anything.

Report file:line, type, tracked or ignored, and confidence (likely real or likely dummy value). Finish by listing which credentials should be rotated first and ask whether to draft a cleanup plan.

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.