agentleFS
KaryawanSurgaKaryawanSurga/tokensaver-plugin/skills/secret-scan/SKILL.md

secret-scan

Skill1 starsChanged 45 days agoMITView on GitHub

Find secrets before they reach a commit. Use before running git commit, when reviewing staged changes, or when auditing a directory for API keys, tokens, passwords, and credentials. Findings are masked and never leave the machine.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After git add, call scan_diff with staged: true.

    line 27
  2. Very specific:

    Treat any critical or high finding as blocking.

    line 28
  3. Very specific:

    Use scan_text for content that has not been written to disk yet.

    line 29
  4. Very specific:

    Use allowlists for fixtures: inline secret-scan:ignore comments or .secretscanignore.

    line 30
  5. Distinctive:

    Never paste a found secret into a message or issue — rotate it instead.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 6 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

Scan staged diffs, files, and text for secrets — AWS, GitHub, OpenAI, Anthropic, Google, Slack, Stripe, npm, PyPI, SendGrid, Twilio, private keys, URI credentials, JWTs, generic assignments, and high-entropy strings. Output is masked; the full secret is never printed.

MCP tools

ToolUse it for
scan_diffThe commit gate: scan staged or working-tree changes with exact file/line.
scan_textCheck a snippet before writing it anywhere.
scan_pathAudit a file or directory tree.

Workflow

  1. After git add, call scan_diff with staged: true.
  2. Treat any critical or high finding as blocking; fix before committing.
  3. Use scan_text for content that has not been written to disk yet.
  4. Use allowlists for fixtures: inline secret-scan:ignore comments or .secretscanignore.

CLI fallback

npx -y mcp-secret-scan scan --staged
npx -y mcp-secret-scan scan ./src --strict

Exit code 1 blocks the commit; ideal as a pre-commit hook.

Tips

  • Never paste a found secret into a message or issue — rotate it instead.
  • Placeholders like your_api_key_here are ignored automatically to keep false positives low.

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.