跳到主内容
智客 ZICQ

技能库 智客分类:安全测试 vibe-security

维贝安保

对AI编码助理在"vibe-code"应用程序中引入的共同安全漏洞的审计代码库. 检查已曝光的 API 密钥, 中断的访问控制( Supabase RLS, Firebase 规则), 缺少认证验证, 客户端信任问题, 不安全的支付流量等等 。 每当用户询问安全,想要代码检讨,提及"vibe编码"时,或者当您正在写作或审查处理认证,支付,数据库访问,API密钥,机密,或用户数据——即使它们没有明确提及安全时,使用这种技能. 当用户说"这是安全吗?","检查我的代码","审计这个","弱点审查",或者"有人能黑这个"时,也会触发.

3109 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

对AI编码助理在"vibe-code"应用程序中引入的共同安全漏洞的审计代码库. 检查已曝光的 API 密钥, 中断的访问控制( Supabase RLS, Firebase 规则), 缺少认证验证, 客户端信任问题, 不安全的支付流量等等 。 每当用户询问安全,想要代码检讨,提及"vibe编码"时,或者当您正在写作或审查处理认证,支付,数据库访问,API密钥,机密,或用户数据——即使它们没有明确提及安全时,使用这种技能. 当用户说"这是安全吗?","检查我的代码","审计这个","弱点审查",或者"有人能黑这个"时,也会触发.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:The Core Principle、Audit Process、Core Instructions、Output Format、Example Output、Summary。 其中含规范建议的小节:输入输出示例。

文件分析

文件分析:除 SKILL.md 外,正文引用了 references/secrets-and-env.md、references/database-security.md、references/authentication.md、references/rate-limiting.md、references/payments.md、references/mobile.md,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

Audits codebases for common security vulnerabilities that AI coding assistants introduce in "vibe-coded" applications. Checks for exposed API keys, broken access control (Supabase RLS, Firebase rules), missing auth validation, client-side trust issues, insecure payment flows, and more. Use this skill whenever the user asks about security, wants a code review, mentions "vibe coding", or when you're writing or reviewing code that handles authentication, payments, database access, API keys, secrets, or user data — even if they don't explicitly mention security. Also trigger when the user says things like "is this safe?", "check my code", "audit this", "review for vulnerabilities", or "can someone hack this?".

The Core PrincipleAudit ProcessCore InstructionsOutput FormatExample OutputSummaryWhen Generating CodeReferences

· 许可:MIT

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
vibe-security
description
Audits codebases for common security vulnerabilities that AI coding assistants introduce in "vibe-coded" applications. Checks for exposed API keys, broken access control (Supabase RLS, Firebase rules), missing auth validation, client-side trust issues, insecure payment flows, and more. Use this skill whenever the user asks about security, wants a code review, mentions "vibe coding", or when you're writing or reviewing code that handles authentication, payments, database access, API keys, secrets, or user data — even if they don't explicitly mention security. Also trigger when the user says things like "is this safe?", "check my code", "audit this", "review for vulnerabilities", or "can someone hack this?".
许可
MIT
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 9
  • references/secrets-and-env.md
  • references/database-security.md
  • references/authentication.md
  • references/rate-limiting.md
  • references/payments.md
  • references/mobile.md
  • references/ai-integration.md
  • references/deployment.md
  • references/data-access.md

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「vibe-security」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-df17acba5feaab96-%E7%BB%B4%E8%B4%9D%E5%AE%89%E4%BF%9D.html
请存为 .cursor/skills/vibe-security/SKILL.md 或 .claude/skills/vibe-security/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/raroque/vibe-security-skill 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/raroque/vibe-security-skill' --list

npx skills add 'https://github.com/raroque/vibe-security-skill' --skill 'vibe-security'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版

name: vibe-security description: Audits codebases for common security vulnerabilities that AI coding assistants introduce in "vibe-coded" applications. Checks for exposed API keys, broken access control (Supabase RLS, Firebase rules), missing auth validation, client-side trust issues, insecure payment flows, and more. Use this skill whenever the user asks about security, wants a code review, mentions "vibe coding", or when you're writing or reviewing code that handles authentication, payments, database access, API keys, secrets, or user data — even if they don't explicitly mention security. Also trigger when the user says things like "is this safe?", "check my code", "audit this", "review for vulnerabilities", or "can someone hack this?". license: MIT metadata: author: Chris Raroque version: "1.0"

Audit code for security vulnerabilities commonly introduced by AI code generation. These issues are prevalent in "vibe-coded" apps — projects built rapidly with AI assistance where security fundamentals get skipped.

AI assistants consistently get these patterns wrong, leading to real breaches, stolen API keys, and drained billing accounts. This skill exists to catch those mistakes before they ship.

The Core Principle

Never trust the client. Every price, user ID, role, subscription status, feature flag, and rate limit counter must be validated or enforced server-side. If it exists only in the browser, mobile bundle, or request body, an attacker controls it.

Audit Process

Examine the codebase systematically. For each step, load the relevant reference file only if the codebase uses that technology or pattern. Skip steps that aren't relevant.

  1. Secrets & Environment Variables — Scan for hardcoded API keys, tokens, or credentials. Check for secrets exposed via client-side env var prefixes (NEXT_PUBLIC_, VITE_, EXPO_PUBLIC_). Verify .env is in .gitignore. See references/secrets-and-env.md.

  2. Database Access Control — Check Supabase RLS policies, Firebase Security Rules, or Convex auth guards. This is the #1 source of critical vulnerabilities in vibe-coded apps. See references/database-security.md.

  3. Authentication & Authorization — Validate JWT handling, middleware auth, Server Action protection, and session management. See references/authentication.md.

  4. Rate Limiting & Abuse Prevention — Ensure auth endpoints, AI calls, and expensive operations have rate limits. Verify rate limit counters can't be tampered with. See references/rate-limiting.md.

  5. Payment Security — Check for client-side price manipulation, webhook signature verification, and subscription status validation. See references/payments.md.

  6. Mobile Security — Verify secure token storage, API key protection via backend proxy, and deep link validation. See references/mobile.md.

  7. AI / LLM Integration — Check for exposed AI API keys, missing usage caps, prompt injection vectors, and unsafe output rendering. See references/ai-integration.md.

  8. Deployment Configuration — Verify production settings, security headers, source map exposure, and environment separation. See references/deployment.md.

  9. Data Access & Input Validation — Check for SQL injection, ORM misuse, and missing input validation. See references/data-access.md.

If doing a partial review or generating code in a specific area, load only the relevant reference files.

Core Instructions

  • Report only genuine security issues. Do not nitpick style or non-security concerns.
  • When multiple issues exist, prioritize by exploitability and real-world impact.
  • If the codebase doesn't use a particular technology (e.g., no Supabase), skip that section entirely.
  • When generating new code, consult the relevant reference files proactively to avoid introducing vulnerabilities in the first place.
  • If you find a critical issue (exposed secrets, disabled RLS, auth bypass), flag it immediately at the top of your response — don't bury it in a long list.

Output Format

Organize findings by severity: Critical → High → Medium → Low.

For each issue:

  1. State the file and relevant line(s).
  2. Name the vulnerability.
  3. Explain what an attacker could do (concrete impact, not abstract risk).
  4. Show a before/after code fix.

Skip areas with no issues. End with a prioritized summary.

Example Output

Critical

lib/supabase.ts:3 — Supabase service_role key exposed in client bundle

The service_role key bypasses all Row-Level Security. Anyone can extract it from the browser bundle and read, modify, or delete every row in your database.

// Before
const supabase = createClient(url, process.env.NEXT_PUBLIC_SUPABASE_SERVICE_KEY!)

// After — use the anon key client-side; service_role belongs only in server-side code
const supabase = createClient(url, process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!)

High

app/api/checkout/route.ts:15 — Price taken from client request body

An attacker can set any price (including $0.01) by modifying the request. Prices must be looked up server-side.

// Before
const session = await stripe.checkout.sessions.create({
  line_items: [{ price_data: { unit_amount: req.body.price } }]
})

// After — look up the price server-side
const product = await db.products.findUnique({ where: { id: req.body.productId } })
const session = await stripe.checkout.sessions.create({
  line_items: [{ price: product.stripePriceId }]
})

Summary

  1. Service role key exposed (Critical): Anyone can bypass all database security. Rotate the key immediately and move it to server-side only.
  2. Client-controlled pricing (High): Attackers can purchase at any price. Use server-side price lookup.

When Generating Code

These rules also apply proactively. Before writing code that touches auth, payments, database access, API keys, or user data, consult the relevant reference file to avoid introducing the vulnerability in the first place. Prevention is better than detection.

References

  • references/secrets-and-env.md — API keys, tokens, environment variable configuration, and .gitignore rules.
  • references/database-security.md — Supabase RLS, Firebase Security Rules, and Convex auth patterns.
  • references/authentication.md — JWT verification, middleware, Server Actions, and session management.
  • references/rate-limiting.md — Rate limiting strategies and abuse prevention.
  • references/payments.md — Stripe security, webhook verification, and price validation.
  • references/mobile.md — React Native and Expo security: secure storage, API proxy, deep links.
  • references/ai-integration.md — LLM API key protection, usage caps, prompt injection, and output sanitization.
  • references/deployment.md — Production configuration, security headers, and environment separation.
  • references/data-access.md — SQL injection prevention, ORM safety, and input validation.

相关技能

安全测试

技能维特Skill Vetter

人工智能特工的安全第一技能审查。 在安装来自 ClawdHub, GitHub 或其他来源的任何技能之前使用 。 检查红旗,许可范围,可疑图案.

安全测试

护身符Moltguard

MoltGuard——由OpenGuardrails担任OpenClaw保安. 安装 MoltGuard 以保护你和你的人类免受迅速注射、数据过滤和恶意命令的影响。 资料来源:https://github.com/openguardrails/openguardrails/tre…

安全测试

安保审计员Security Auditor

用于审查安全漏洞代码,实施认证流,审计OWASP Top 10,配置CORS/CSP头,处理秘密,输入验证,SQL注射预防,XSS保护,或任何与安全相关的代码审查.

安全测试

技能维特Skill Vetter

安装任何AI代理技能前的安全审查协议. 红旗侦取入证盗取,疏通密码,放出. 风险分类:低/中/高/高。 编制结构化审查报告。 不先运行此功能, 绝不安装不信任的技能 .