Scan the project for credentials hard-coded in ordinary files (passwords, API keys, tokens, private keys, connection strings with a password) without showing their values. Use when the user asks to scan or check the project for exposed or hard-coded credentials or secrets, or runs /gatekeeper:scan.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Scan?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/loverobusta-scan)
---
name: scan
description: Scan the project for credentials hard-coded in ordinary files (passwords, API keys, tokens, private keys, connection strings with a password) without showing their values. Use when the user asks to scan or check the project for exposed or hard-coded credentials or secrets, or runs /gatekeeper:scan.
argument-hint: "[file or folder]"
---
The user wants to know which credentials are hard-coded in the project's ordinary files. Those files are readable by Claude, unlike `.env`, so anything found there can reach the model.
Target: `$ARGUMENTS` if given, otherwise `.` (the whole project).
1. Run `python3 .gatekeeper/vault.py scan <target>`. If `.gatekeeper/vault.py` doesn't exist, use the full `vault.py` path from the Gatekeeper session context, or `${CLAUDE_PLUGIN_ROOT}/scripts/vault.py`. Exit code 1 only means something was found.
2. The output lists each file with the KINDS of credentials found (for example `DB_PASSWORD x1, STRIPE_KEY x1`). Values are never printed. Don't open the files to look at them: reading them would put the real values into this conversation.
3. Reply briefly:
- If nothing was found: "✅ No hard-coded credentials found in <target>." and stop.
- Otherwise: "⚠️ Found credentials in N file(s):" then a short list, one line per file: `path`: kinds in plain words (for example "database password, Stripe key").
- Then one line: move each credential out of the code (into `.env` or the vault, read from the environment in code), and rotate it if the file was ever committed or shared.
4. Note in one line that the scan reports credentials only, not domains, hosts or IP addresses, and that dependency and build folders (node_modules, dist, build, .git, vendor) and secret files like `.env` are skipped on purpose.