Security Guidance

PreToolUse security-anti-pattern hook for Claude Code. Catches 12 common security risks (command injection, XSS, SQL injection, unsafe deserialization, GitHub Actions workflow injection, eval/new Function code injection) BEFORE the Edit/Write/MultiEdit operation completes. Session-state caching prevents duplicate warnings on the same file+rule combo. Stdlib only — no dependencies. Use when you want a safety net during Claude Code sessions that touch security-sensitive code (auth, payments, user input handling, IaC). Disable with ENABLE_SECURITY_REMINDER=0 if you need to perform a verified-safe operation that would otherwise trip a pattern. Triggers — "add security hook", "block unsafe code", "detect command injection before write", "prevent SQL injection patterns", "security warning hook".

dini-2000 Updated 1 repo stars
Claude Code Tune-up. Everyday work, with checks that always run. Plain writing: a hook flags AI tells. Decks and docs: 60 themes, PDF and PPTX. Survives limits:

File contents

dini-2000/claude-toolbox commit 6a6da1fab2

Frequently asked questions

npx get-skill add dini-2000/security-guidance