CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

trysac/secrets-precommit

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.

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

hook.mdreferences/

Running the scan on every commit with your own hook

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 $files

A 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.

SKILL.md

tile.json