No secrets
Agents leak keys because the prompt had one, the docs had one, or they invented sk-live-demo. This skill stops that from landing in git.
Rules
- Never print a secret value. Name + truncated prefix (8 chars) + path.
- Real findings → tell the user to rotate, then gitignore, then rewrite history if it was pushed.
.env.examplewith empty values is fine..envis not.process.env.FOOis fine.FOO=sk-live-…in source is not.
Procedure
node skills/no-secrets/scripts/scan.mjs .Treat every SECRET as blocking. Fix, re-scan, then commit.
Do not
- Echo the rest of a
ghp_/sk-/AKIA/xai-token “for confirmation” - Commit
.env“just this once”