claude-code-framework/essential/skills/quality/security-scanner/SKILL.md
Scans code for common security vulnerabilities including hardcoded secrets, SQL injection, XSS, and dependency CVEs. Use when user says "check security", "scan for vulnerabilities", "security review", or mentions security concerns.
npx skillsauth add tokenized2027/claude-initilization-v7 security-scannerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
# Search for common secret patterns
grep -r "password\|secret\|api_key\|token" . --exclude-dir=node_modules
# Check for keys in code
grep -r "sk-\|pk-\|AIza" . --exclude-dir=node_modules
// ❌ Vulnerable
db.query(`SELECT * FROM users WHERE id = ${userId}`)
// ✅ Safe - Use parameterized queries
db.query('SELECT * FROM users WHERE id = ?', [userId])
// ❌ Vulnerable
<div dangerouslySetInnerHTML={{__html: userInput}} />
// ✅ Safe - Sanitize first
import DOMPurify from 'dompurify'
<div dangerouslySetInnerHTML={{__html: DOMPurify.sanitize(userInput)}} />
# Check dependencies for CVEs
npm audit
# Fix vulnerabilities
npm audit fix
# Check for secrets
npx secretlint "**/*"
development
Methodical debugging using reproducible steps, instrumentation, and root-cause analysis. Use when something is broken and you don't know why. Triggers on "bug", "broken", "not working", "error", "fails intermittently", "regression", "unexpected behavior".
development
Optimize prompts for Claude Code agents, API calls, and multi-agent orchestration. Use when writing system prompts, agent instructions, or refining LLM interactions. Triggers on "improve prompt", "write a prompt", "agent instructions", "system prompt", "prompt not working", "LLM output quality".
tools
Structured ideation and design review before any creative or constructive work. Use before building features, components, architecture, dashboards, or automation workflows. Triggers on "plan this", "design this", "brainstorm", "think through", "what should we build", "how should I approach".
testing
Generates test files for components and functions with setup, basic tests, and mocks. Use when user says "add tests", "create test", "test this component", or mentions testing.