agentleFS
K95M65K95M65/AI_ONBOARD/skills/secret-scan/SKILL.md

secret-scan

Skill0 starsChanged 5 months agoMITView on GitHub

Scan a repository for committed secrets (API keys, tokens, private keys) including git history. Use when auditing a codebase for leaked credentials, before open-sourcing, or when reviewing an unfamiliar repo. Complements the security-audit surface scan, which only covers the current tree.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dependency-audit.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • fefogarciaSkill

    dependency-audit

    Comprehensive dependency health auditing for JavaScript/TypeScript projects. Run npm audit, detect outdated packages, check for security advisories, and verify license compliance. Prioritises vulnerabilities by severity and provides actionable fix recommendations.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run bash scripts/scan.sh [path].

    line 15
  2. Distinctive:

    If a live secret is found: rotate it first.

    line 21
  3. Distinctive:

    If it's in history, note that scrubbing requires a history rewrite (git filter-repo) *and* rotation.

    line 23

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Secret scan

When to use

Hunting for committed secrets across the current tree and git history. Complements security-audit's surface-scan.sh, which greps only the working tree.

Steps

  1. Run bash scripts/scan.sh [path]. It prefers a real scanner and falls back to grep:
    • gitleaks detect (tree + history) if installed — best.
    • else trufflehog filesystem if installed.
    • else a best-effort grep over tracked files — tree only, history not covered (it says so).
  2. For each hit: confirm it's a real secret (not a placeholder or test fixture), and determine whether it's live.
  3. If a live secret is found: rotate it first. A committed secret must be assumed compromised — removing it from the code is not enough.
  4. If it's in history, note that scrubbing requires a history rewrite (git filter-repo) and rotation; a new commit that deletes the file does not remove it from history.

Notes

  • Rotate first, scrub second. Order matters.
  • The grep fallback is shallow (tree only, limited patterns) — install gitleaks for real history coverage: https://github.com/gitleaks/gitleaks.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.