PostToolUse hook that scans Bash tool output for leaked credentials — API keys, tokens, private keys, and secrets — before they reach the conversation. Blocks critical leaks, redacts high-severity matches, and warns on suspicious patterns. 14 detection patterns covering OpenAI, Anthropic, AWS, GitHub, Stripe, Google, Slack, SendGrid, Twilio, PEM keys, bearer tokens, and generic secrets. No external dependencies. Trigger words: security, credential leak, secret exposure, key detection, token scan, API key leaked, credential guard, secret scanner, prevent credential leak.
$npx -y skills add jkheadley/instar --skill credential-leak-detectorInstalls into the current project.
Run `npx skills use "https://github.com/jkheadley/instar" --skill "jkheadley/instar/credential-leak-detector"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/jkheadley/instar" that are relevant to the current task. Run `npx skills add "https://github.com/jkheadley/instar"` and select the relevant skills, then follow their instructions.