backspace-shmackspace/claude-devkit/secrets-scan
Claude Code and agent skill by backspace-shmackspace/claude-devkit
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Pre-commit secrets detection with pattern-based scanning for API keys, tokens, passwords, private keys, and connection strings. Self-contained — no external tools required.
Install
npx vskill@latest install backspace-shmackspace/claude-devkit/secrets-scanSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as backspace-shmackspace/claude-devkit/secrets-scan.
/secrets-scan Workflow
Output Rules
- Always print full absolute paths for all artifact references (plan files, review files, audit logs). This makes paths clickable in terminals like Warp. Use the resolved
$PLANS_DIRvalue, never relative paths.
Role
This skill is a pipeline coordinator. It orchestrates a sequential secrets detection workflow using pattern-based scanning. It delegates grep/regex scanning to Bash and synthesis to analysis tasks. It does NOT require external tools like trufflehog or gitleaks — all scanning uses built-in grep patterns, making it self-contained and deployable anywhere Claude Code runs.
Zero tolerance policy: Any confirmed secret detected results in a BLOCKED verdict. There is no passing threshold — secrets in code are a critical finding.
Report redaction rule: This skill NEVER includes actual secret values in reports. Reports show secret type, file path, and line number only. Pattern matches are redacted to show type and location: e.g., "AWS Access Key at src/config.js:42".
Inputs
- Scan scope: $ARGUMENTS
staged(default) — scan git staged files only (pre-commit gate)all— scan entire working directoryhistory— scan git commit history (use for post-incident review)
Step 0 — Pre-flight checks
Resolve devkit paths (MUST be first action in Step 0):
Tool: Bash
Tool: Bash (direct — coordinator does this)
Pre-flight failures:
- Not a git repo: Stop with error message.
- Invalid scope argument: Stop with usage message.
- No staged files (staged scope): Output PASS with explanation and stop.
Step 1 — Determine scan scope and collect target content
Tool: Bash (direct — coordinator does this)
Based on the scope from Step 0, collect the content to scan:
Step 2 — Pattern-based secret detection
Tool: Bash (direct — coordinator does this)
Run pattern-based detection across the collected scan target. Each pattern targets a distinct secret type.
Note: Pattern-based detection only. Entropy analysis not yet included; planned for a future release after false-positive calibration against real codebases.
Insecure Default Patterns
In addition to secret patterns above, scan for fail-open insecure defaults that allow the application to run with weak security in production.
Patterns to detect:
- Fallback secrets in env var handling:
Matches: os.environ.get("SECRET_KEY", "my-default-secret") Excludes: Empty strings, None, short placeholder values
- Hardcoded default credentials:
Matches common default credentials (admin:admin, password: changeme, etc.)
- Fail-open security toggles:
Named security controls explicitly set to disabled/off.
- Weak cryptographic defaults:
Only flag when used in security contexts (hashing passwords, encrypting data, signing tokens). Do NOT flag when used in checksums, cache keys, or non-security file hashing.
- Permissive access defaults:
CORS wildcards, world-readable permissions, and allow-all access controls.
- Debug/development mode flags:
Only flag in production configuration files and application defaults. Do NOT flag in test fixtures, development-only configs, or CI configurations.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/secrets-scan/SKILL.md
Popularity
- Repository stars
- 15
- Repository forks
- 2
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/backspace-shmackspace/claude-devkit/secrets-scan)