AI Security Rules — Security skill for Claude Code
Security rules for AI coding agents: Claude Code, Cursor, Copilot, Windsurf and AGENTS.md.
How to install AI Security Rules
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open CorvexDevelops/ai-security-rules and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Security Rules does
Security rules for AI coding agents: Claude Code, Cursor, Copilot, Windsurf and AGENTS.md. Stop your agent from leaking keys, leaving Supabase and Firebase open or shipping AI endpoints with no limits. Ready-to-copy files plus a generator for your stack. By Corvex.
Alternatives in Security
- Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
- Skill Coverage Audit — Trace codepaths in diffs, map against tests, auto-generate missing coverage — use before shipping PRs 2.8k ★
- ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
README
ai-security-rules
Author: CorvexDevelops
Security rules for AI coding agents: Claude Code, Codex and every tool that reads `AGENTS.md`, Cursor, GitHub Copilot and Windsurf. Put them in your project and the agent that writes your code stops repeating the same flaws: secrets in public variables, databases open to everyone, AI endpoints with no limits, queries built from user input.
Made by [Corvex](https://corvex.dev), the team of security agents that tests your web platforms, code, network and computer. After every scan Corvex writes these rules into your project, plus the lessons from the flaws it found there. This repository is the general part, free to use.
Use them in one minute
Copy the file for your tool from `ready/en/` (or `ready/it/` in Italian). It contains every stack:
| Tool | File |
|---|---|
| Claude Code | ready/en/CLAUDE.md |
| Codex, Jules and other agents | ready/en/AGENTS.md |
| Cursor | ready/en/.cursor/rules/security.mdc |
| GitHub Copilot | ready/en/.github/copilot-instructions.md |
| Windsurf | ready/en/.windsurfrules |
Or build a file with only the stacks you use (Python 3.9+, no dependencies):
python3 build.py --format claude --stack next,supabase,llm > CLAUDE.md
python3 build.py --format cursor --stack all --write path/to/project
The rules sit between two markers. Running the generator again, or a Corvex scan, replaces only that block: everything else you wrote in the file stays.
What the rules cover
| Section | Rules |
|---|---|
| Always | secrets, queries, ownership checks, input validation, output escaping, shell and eval, debug mode, dependencies |
| Next.js | server actions, public variables, security headers |
| Supabase | Row Level Security, open policies, the service_role key |
| Firebase | Firestore, Storage and Realtime Database rules |
| AI SDKs | keys in th |
Related Skills
Moatkit
Security toolkit for LLM apps and AI agents: blocks prompt injection, stops API keys and personal data leaking
PsyLinks 360 Security
Stop shipping insecure AI-generated code. This free skill teaches Claude & AI IDEs secure coding by default an
Supalock Prelaunch
Rapid pre-launch GO / NO-GO security gate checklist for Supabase and vibe-coded apps before shipping to produc
MCP Agent Security Auditor
Lightweight Fast Pre-Audit Security Scanner & Agent Skill for MCP Servers, Agent Hooks, and Firebase Security
Vn Law Check
Audit pháp lý website theo luật Việt Nam (BVDLCN 91/2025, TMĐT 122/2025, ANM 116/2025, AI 134/2025) cho Claude
Universal Re Skill
Universal reverse engineering, 40+ vuln classes & working PoC generation for Android/iOS/Windows PE/Linux ELF/
Related Agents
Ratelimit
Rate-limiting specialist for togo apps — designs throttling policies (limits, windows, keys) and applies the r
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall
i18n Auditor
Use this agent to find untranslated i18n keys, missing locale entries, and raw enum values leaking to the UI.