Scan files for leaked secrets (cloud, GitHub, Slack, Stripe, Google, AI keys, private keys, high-entropy assignments) with output that never prints the secret. Use when the user asks to check staged files or a repo for secrets before committing.
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
This skill does not install anything. If the user wants automatic checks, they can create
.git/hooks/pre-commit in their repository, make it executable, and point it at the copied script:
#!/bin/sh
# .git/hooks/pre-commit
files=$(git diff --cached --name-only --diff-filter=ACM)
[ -z "$files" ] && exit 0
# shellcheck disable=SC2086
exec python3 path/to/skill/scripts/scan_secrets.py $filesA non-zero exit blocks the commit. Paths with spaces need a different file-passing approach (for example
git diff --cached --name-only -z --diff-filter=ACM | xargs -0 python3 path/to/skill/scripts/scan_secrets.py).
Hooks are local to each clone, so a shared repository should also run the scan in CI.