agentsclimarketplace

Git scan secrets

Skill ainova-systems/intelligence-dev-packs/packs/core/skills/git-scan-secrets

Scan diff, tree, or branch history for committed credentialsFrom its SKILL.md

Install
npx -y skills add ainova-systems/intelligence-dev-packs --skill git-scan-secrets

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
  • runs commandsInstructs the agent to run 4 commands, including `git diff --name-only` and 3 more.

SKILL.md

1.8 KB, 423 tokens by cl100k_base, as published. Nobody here has run it

Scan for Secrets

Find credentials before they reach a remote; anything already pushed is an incident, not a cleanup. Default scope: the pending diff plus commits ahead of the target branch.

Steps

  1. Build the file set: git diff --name-only + git diff --cached --name-only (+ git log -p <target>..HEAD for branch commits; history scope walks git log -p --all -- <paths>).
  2. Grep the patterns: -----BEGIN, AKIA[0-9A-Z]{16}, sk-, ghp_, xox[bp]-, AIza, eyJ[A-Za-z0-9_-]+\. (JWT), (password|secret|token|api[_-]?key)\s*[:=]\s*['"][^'"]+, connection strings with embedded credentials, .env-style files not covered by .gitignore.
  3. Classify each hit: live secret (critical) / test or placeholder (downgrade only with evidence it is fake) / template reference (${VAR}, vault path - not a finding).
  4. Report: file:line (or commit SHA for history hits), credential type, classification reasoning, redacted value.
  5. Live secret not yet pushed - remove it from the commit and move the value to the environment or secret store. Already pushed - rotate first (it is compromised regardless of history), then purge per the platform procedure and add the path to .gitignore.

Verify

  • Every hit classified with evidence; zero live secrets remain in the outgoing diff.

Scope / hand-off

  • Invoked by dev-review-changes and the orchestrators pre-push; rotation itself belongs to the owner's secret store.

CRITICAL

  • Rotation precedes any history rewrite - always.
  • Never print a discovered live secret in full.
  • Verify before flagging: a report full of false positives trains people to ignore it.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.