Code Validator — Security skill for Claude Code
Static security scanner purpose-built for AI-generated code (Claude Code, GitHub Copilot, ChatGPT, Cursor).
How to install Code Validator
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open TTMK7777/code-validator and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Code Validator does
Static security scanner purpose-built for AI-generated code (Claude Code, GitHub Copilot, ChatGPT, Cursor). Detects hardcoded credentials, CORS misconfigurations, SQL injection, and dependency CVEs in under 1 second per file — fully offline, zero data exfiltration.
Alternatives in Security
- Unifly Audit — Security audit of UniFi configuration 248 ★
- Postgres — Execute safe read-only SQL queries against PostgreSQL databases with multi-connection support and defense-in-d 159 ★
- Sail Skill — SAIL V2 (Secure AI Lifecycle) as an agent skill — the full 91-risk catalog for AI/agent gap assessments, secur 122 ★
README
code-validator
[](https://opensource.org/licenses/MIT) [](https://www.python.org/downloads/) [](#) [](#)
**What is code-validator?** A static security scanner purpose-built for code produced by AI assistants (Claude, ChatGPT, GitHub Copilot, Cursor). Detects hardcoded credentials, CORS misconfigurations, SQL injection patterns, and dependency CVEs — in under 1 second per file, fully offline, with zero external API calls.
**Why this exists:** AI assistants frequently emit code that *looks* correct but contains subtle security defects — hardcoded API keys in examples, `allow_origins=["*"]` with `allow_credentials=True`, string-concatenated SQL. `code-validator` is the lightweight CI gate that catches these *before* they reach `main`.
| 🎯 Use case | Block insecure AI-generated code at PR time |
| ⚡ Speed | <1s per file, --git-diff mode scans only changed files |
| 🔒 Privacy | 100% offline. No code leaves your machine. Only dependency: pydantic |
| 🧪 Detection rules | 20 rules across security, quality, and dependency layers (SEC001–SEC013 excluding SEC007, QUAL001–QUAL002, DEP001–DEP006) |
| 📦 Install | pip install -r requirements.txt — done |
Features
Security Scanning
- Hardcoded credentials: API keys (OpenAI, Anthropic, Google, GitHub tokens), passwords, database URLs, Django/Flask
SECRET_KEY, AWS access keys, and embedded PEM private keys - Dangerous CORS configurations: wildcard origins, and wildcard origins combined with
allow_credentials=True - SQL injection patterns: f-string interpolation,
+concatenation,str.format(), and%operator - Command injection:
os.system/os.popen/ `subproce
Related Skills
Security Sweep
Comprehensive security scanner covering OWASP Top 10 (2025), Mobile Top 10 (2024), and LLM Top 10 (2025). Scan
Audit Credentials
Find long-lived tokens, hardcoded secrets, and credentials that should be rotated or replaced
Vibe Secure
Security audit for AI-generated code. Catches hardcoded secrets, injection surfaces, auth gaps, and insecure d
Hackz Huntkit
Offensive-security playbooks for AI coding agents — IDOR, 403 bypass, CORS, finding validation and dupe-checki
PsyLinks 360 Security
Stop shipping insecure AI-generated code. This free skill teaches Claude & AI IDEs secure coding by default an
Mcpaudit
Static security audit of MCP and AI-agent configs (Claude Desktop, Claude Code, Cursor, VS Code, Windsurf). Fi
Related Agents
Secret Scanner
PYA specialist spawned by the /pya orchestrator. Finds hardcoded and leaked credentials in an untrusted reposi
Hardcoded Secret Scanner
Scan a trading codebase for credentials that live in code, config committed to git, logs, tests, or documentat
Appsec Secrets Scanner
Use proactively to hunt for hardcoded secrets, credentials, tokens, and high-entropy strings across the entire