CorvexDevelops

AI Security Rules — Security skill for Claude Code

Security community

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