agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/sca-secret-scanner/SKILL.md

sca-secret-scanner

Skill1 starsChanged 20 days agoMITView on GitHub

Scans for hardcoded secrets and dependency CVEs/SBOM risks (using GoThreatScope, ironward, @infoinlet/mcp-codeaudit, or GitHub secret scanning), saving logs to docs/tasks/logs/sca-[timestamp].log and blocking on leaks or CRITICAL CVEs.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Use GoThreatScope (which integrates Gitleaks) or ironward MCP if available, or GitHub MCP Server secret scanning when hosted on GitHub.

    line 16
  2. Very specific:

    Use GoThreatScope or @infoinlet/mcp-codeaudit MCP when available (falling back to stack-native audit CLIs such as npm audit, pnpm audit, …

    line 19
  3. Very specific:

    Block Phase 7 completion: if any leaked secret or CRITICAL dependency vulnerability is discovered.

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

SCA & Secret Scanner

Trigger

Phase 6 (Implementation) and Phase 7 (Audit).

Process

  1. Secret Scanning:
    • Scan the full codebase and configuration files for hardcoded secrets (API keys, OAuth tokens, passwords, JWT secrets, private keys, connection strings).
    • Use GoThreatScope (which integrates Gitleaks) or ironward MCP if available, or GitHub MCP Server secret scanning when hosted on GitHub. If none are configured, run local secret-pattern checks / Gitleaks CLI and document the method used.
  2. Dependency Scanning (SBOM & SCA):
    • Generate an SBOM across the project's manifests and lockfiles and check all dependencies against OSV.dev for known CVEs and malicious packages.
    • Use GoThreatScope or @infoinlet/mcp-codeaudit MCP when available (falling back to stack-native audit CLIs such as npm audit, pnpm audit, cargo audit, govulncheck, or pip-audit).
  3. Save Scan Evidence:
    • Save combined secret-scan and SCA/SBOM findings output to docs/tasks/logs/sca-[timestamp].log.
  4. Block on Leaks or CRITICAL CVEs:
    • Block Phase 7 completion if any leaked secret or CRITICAL dependency vulnerability is discovered. Remediate (revoke/rotate/externalize secret, upgrade or replace vulnerable dependency) and re-scan clean before proceeding.

Output Contract

Scan log saved at docs/tasks/logs/sca-[timestamp].log verifying zero leaked secrets and zero unresolved CRITICAL dependency vulnerabilities.

Checklist

  • Full repository secret scan executed via GoThreatScope, ironward, GitHub secret scanning, or CLI fallback
  • SBOM / dependency audit run against OSV.dev via GoThreatScope, @infoinlet/mcp-codeaudit, or stack audit CLI
  • Raw log written to docs/tasks/logs/sca-[timestamp].log
  • Zero hardcoded secrets and zero unresolved CRITICAL dependency vulnerabilities

Prohibitions

  • Leaving committed credentials in code, tests, or git-tracked .env files.
  • Proceeding past Phase 7 with an unresolved CRITICAL CVE or leaked secret.

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.