Find secrets in your agent skill folders, without printing them.
An offline scanner for the skills your coding agents read. It reports the rule, file and line. It never prints the secret value or edits the scanned folders.
v0.2.0, experimental and unaudited. Findings are pattern matches, not confirmed leaks. No findings does not prove there are no secrets.
What a report looks like
Real output on a made-up skill containing two fake secrets, shortened:
$ skleaks scan --format md | Severity | Rule | Location | Length | | high | github-token | .../deploy-helper/SKILL.md:3 | 38 | | medium | url-password | .../deploy-helper/SKILL.md:4 | 11 | $ echo $? 92
How it behaves
Safe to hand to an agent
Secret values are left out of reports, so they do not travel into model context through them.
Honest about coverage
Unreadable input or broken links mark the scan incomplete (exit 93). Skipped files are counted.
One folder, one scan
Folders and files that resolve to the same place are scanned once.
Agents learn it
skleaks skill install adds the find-skills-leaks skill. guide and help-json describe the CLI.
Install
The skill is not enough on its own: it needs the skleaks command on your PATH. Agents can follow llms.txt.
Linux x86_64: a static binary from the latest release, checked against its SHA-256 file.
( set -e cd "$(mktemp -d)" url=https://github.com/javimosch/skleaks/releases/latest/download curl -fsSLO "$url/skleaks-linux-x86_64" curl -fsSLO "$url/skleaks-linux-x86_64.sha256" sha256sum -c skleaks-linux-x86_64.sha256 mkdir -p ~/.local/bin install -m 755 skleaks-linux-x86_64 ~/.local/bin/skleaks ) command -v skleaks # must print a path; if not, add ~/.local/bin to PATH skleaks skill install skleaks scan --format md
Or build from source with machin and a C compiler (tested with machin 0.147.0):
git clone https://github.com/javimosch/skleaks && cd skleaks && ./build.sh mkdir -p ~/.local/bin && install -m 755 skleaks ~/.local/bin/
Default folders: ~/.agents/skills, ~/.claude/skills, ~/.codex/skills, ~/.config/devin/skills, ~/.config/opencode/skills, ~/.codeium/windsurf/skills, ~/.pi/agent/skills.
Limits
- Matches are not checked against any provider, and some are false positives. There is no allowlist yet.
- Only text files up to 2 MiB by default.
.git,node_modules,target, virtualenvs and__pycache__are skipped. - Encoded or split secrets are missed, and so are many without a recognised label or format, such as some private keys, passwords in tables and bare random strings.
- Low severity (emails, private IPs and similar) is hidden unless you pass
--include-low. - The first scan creates
~/.config/skleaks/key, used for finding IDs. - If a real secret was shared or committed, rotate it. Deleting the line is not enough.