agentleFS
kronus-techkronus-tech/kronus/.claude/skills/secret-scan/SKILL.md

secret-scan

Skill4 starsChanged 8 months agoMITView on GitHub

Scan codebase for hardcoded secrets, API keys, tokens, and credentials. Auto-invoked when user says "scan for secrets", "check for credentials", "secret scan".

  • Reads credentials

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dependency-audit and changelog.

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

  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do the following right now:

    line 9
  2. Very specific:

    Search for API key patterns: AKIA, sk-, pk_, ghp_, xoxb-, Bearer

    line 11
  3. Very specific:

    Search for credential assignments: password, passwd, secret, token, api_key followed by = or :

    line 12
  4. Very specific:

    Search for connection strings with embedded credentials: postgresql://, mongodb://, redis:// containing @

    line 13
  5. Very specific:

    Search for private keys: BEGIN RSA PRIVATE KEY, BEGIN OPENSSH PRIVATE KEY

    line 14
  6. Very specific:

    Search for AWS credentials: aws_access_key_id, aws_secret_access_key

    line 15
  7. Very specific:

    Check if .env files exist and whether .gitignore includes .env, *.pem, *.key

    line 16

“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

Do the following right now:

  1. Search for API key patterns: AKIA, sk-, pk_, ghp_, xoxb-, Bearer
  2. Search for credential assignments: password, passwd, secret, token, api_key followed by = or :
  3. Search for connection strings with embedded credentials: postgresql://, mongodb://, redis:// containing @
  4. Search for private keys: BEGIN RSA PRIVATE KEY, BEGIN OPENSSH PRIVATE KEY
  5. Search for AWS credentials: aws_access_key_id, aws_secret_access_key
  6. Check if .env files exist and whether .gitignore includes .env, *.pem, *.key

Scan $ARGUMENTS path (defaults to current directory). Skip node_modules/, .git/, vendor/, __pycache__/, and backup files.

Output findings as:

SeverityFile:LinePatternRemediation

Filter obvious false positives (test fixtures, documentation, example configs with placeholder values). If nothing found, say "No secrets detected" with what was scanned.

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.