vibe-security-skill
这是一个AI代理技能,旨在审计由AI编码助手开发的应用程序中常见的安全漏洞。AI助手在快速构建功能时,常会引入硬编码密钥、跳过行级安全、信任客户端数据或在localStorage存储敏感信息等安全问题。此技能赋予您的AI代理识别并预防这些漏洞的能力,确保代码在发布前达到更高的安全标准,适用于任何应用程序的安全审计。
git clone https://github.com/raroque/vibe-security-skill.gitBefore / After 效果对比
1 组在没有此技能的情况下,AI编码助手可能在快速开发中引入硬编码密钥、跳过安全检查等漏洞。人工审计耗时且易遗漏,导致安全问题在应用发布后才被发现,增加了修复成本和风险。
集成此技能后,AI代理能自动识别并标记由AI编码助手引入的常见安全漏洞模式。这大大加速了安全审计流程,在代码发布前即时发现并修复问题,显著提升了应用整体安全性。
description SKILL.md
An agent skill that helps secure vibe-coded apps - or honestly any app - from common security vulnerability patterns. Built by Chris Raroque (@raroque) in collaboration with my colleagues at Aloa.
AI assistants are great at building features fast but consistently get security wrong: hardcoding secrets, skipping row-level security, trusting client-submitted prices, storing tokens in localStorage. This skill catches those patterns before they ship.
Need help building AI apps, custom agents, or implementing AI at your company? Work with Chris and the team at Aloa.
Background
This skill was built specifically to address the security issues that keep showing up in vibe-coded applications. When you're building fast with AI, security fundamentals get skipped - and the AI assistants themselves are often the ones introducing the vulnerabilities. This skill gives your agent the knowledge to catch and prevent those patterns.
It uses the Agent Skills format, so it works with Claude Code, OpenAI Codex, and other compatible agents.
The security rules are organized as reference files that the agent loads based on what technologies your project uses. If you're using Supabase, it checks RLS policies. If you're using Stripe, it checks payment flows. If you're using React Native, it checks for secrets in the JS bundle. No wasted context on irrelevant checks.
Installing Vibe Security
Claude Code
npx skills add https://github.com/raroque/vibe-security-skill --skill vibe-security
If npx isn't available, install Node.js first: brew install node (macOS) or download from nodejs.org.
OpenAI Codex
npx skills add https://github.com/raroque/vibe-security-skill --skill vibe-security
Select "Codex" when prompted for the agent platform.
Manual Installation (Claude Code)
Clone this repo and copy the vibe-security/ folder to your project or global skills directory:
# Project-level (applies to one project)
cp -r vibe-security/ .claude/skills/vibe-security/
# Global (applies to all projects)
cp -r vibe-security/ ~/.claude/skills/vibe-security/
Using Vibe Security
Claude Code: Use /vibe-security to trigger a full security audit, or just ask naturally - "check my code for security issues", "is this safe?", "audit this project".
Codex: Use $vibe-security or describe what you need - "review this for vulnerabilities", "check my Supabase RLS".
The skill also activates automatically when you're writing or reviewing code that handles authentication, payments, database access, API keys, or user data.
What It Checks
| Category | What It Catches |
|---|---|
| Secrets & Env Vars | Hardcoded API keys, secrets in NEXT_PUBLIC_/VITE_/EXPO_PUBLIC_ vars, missing .gitignore |
| Database Security | Disabled Supabase RLS, USING (true) policies, missing WITH CHECK, exposed sensitive fields, Firebase allow: if true rules, Convex missing auth |
| Auth & Authorization | jwt.decode() without verify, middleware-only auth, unprotected Server Actions, tokens in localStorage |
| Rate Limiting | Missing limits on auth/AI/email endpoints, client-tamperable rate counters, no billing caps |
| Payments | Client-submitted prices, missing webhook signature verification, stale subscription checks |
| Mobile | API keys in JS bundle, AsyncStorage for tokens, unsafe deep links, weak biometric auth |
| AI / LLM | Exposed AI API keys, no usage caps, prompt injection, unsafe output rendering |
| Deployment | Debug mode in production, exposed source maps, missing security headers, .git accessible |
| Data Access | SQL injection, Prisma operator injection, $queryRawUnsafe, mass assignment |
Contributing
Contributions, corrections, and improvements are very welcome! This is meant to be a community resource. If you've found a security anti-pattern that AI assistants keep introducing, please add it.
See CONTRIBUTING.md for guidelines.
License
Vibe Security is available under the MIT License. See LICENSE for details.
Created by Chris Raroque (@raroque) and the team at Aloa.
forum用户评价 (0)
发表评价
暂无评价
统计数据
用户评分
为此 Skill 评分