Vibe Guard

February 20, 2026 ยท View on GitHub

License: MIT Skills

Always-on security guardrails for AI-generated code. Catches hardcoded secrets, missing auth, SQL injection, insecure cookies, wildcard CORS, and the 20 things AI agents forget before you deploy.

45% of AI-generated code has security flaws. Vibe Guard is not a scanner you run after the fact. It embeds guardrails directly into your agent's behavior so insecure patterns never reach your codebase. Zero config, zero auth, always on.

Install

Cursor / Claude Code / Windsurf

npx skills add ofershap/vibe-guard

Or copy skills/ into your .cursor/skills/ or .claude/skills/ directory.

What's Included

TypeNameDescription
Skillvibe-guard20 security rules covering secrets, auth, input validation, database, cookies, headers, and more
Rulesecurity-guardrailsAlways-on behavioral rule that enforces security patterns on every file
Command/security-auditScan the codebase for vulnerabilities and missing guardrails
Command/production-checkRun a pre-deployment security checklist

The 20 Things It Catches

#VulnerabilityWhat agents do wrong
1Hardcoded secretsAPI keys and passwords inline instead of env vars
2Missing input validationNo Zod/Joi on user input
3Unprotected API routesNo auth middleware on sensitive endpoints
4Missing Row-Level SecurityNo RLS policies on Supabase/Postgres tables
5SQL injectionString interpolation in queries instead of parameterized
6Wildcard CORSallow_origins=["*"] in production
7No rate limitingAuth endpoints without throttling
8HTTP in productionMissing HTTPS enforcement
9Weak password hashingMD5, SHA1, or plain text instead of bcrypt/Argon2
10Missing security headersNo CSP, HSTS, X-Frame-Options
11Stack trace leaksInternal errors exposed to users
12Unvalidated file uploadsNo type/size checks on uploaded files
13Same config for dev/prodNo environment-specific settings
14Logging sensitive dataTokens and passwords in log output
15Insecure cookiesMissing httpOnly, secure, sameSite flags
16Never-expiring tokensNo TTL on JWT or session tokens
17Missing CSRF protectionNo CSRF tokens on state-changing requests
18No Content Security PolicyMissing CSP headers
19Open redirectsUnvalidated redirect URLs
20Unaudited dependenciesNo npm audit or dependency scanning

If this helped your workflow, a star helps others find it.

Author

Made by ofershap

LinkedIn GitHub

License

MIT