A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Baseline rules files to improve the security of AI-generated code (Claude, Cursor, Copilot + more)
Elevate Your Code Security with AI-Native Baseline Rules

Rules files offer an AI-native interface for improving the security of generated code.
[!TIP] Rules files are most useful when they're specific to your codebase's stack and best practices.
This repository contains a broadly compatible set of baseline rules, encoding security best practices for common programming language and framework pairings.
These rules files are themselves AI generated, according to the best practices and principles described in Rules Files for Safer Vibe Coding.
generate_rules.py: The Python script responsible for generating these rules files, leveraging the gemini-2.5-flash-preview-05-20 model (requires GOOGLE_API_KEY environment variable)prompt.md: A transparent look at the core prompt used to guide Gemini in crafting these rules files[!IMPORTANT] While these rules files should increase the security of generated code, they are offered without warantee or guarantee.
Our initial set of baseline rules targets a broad spectrum of widely used languages and frameworks:
Compatible rules were generated for each of the following popular AI coding assistants and tools:
We welcome contributions, whether they add coverage for additional languages and frameworks, or offer evidence based improvements to the prompt.
technologies.jsonassistants.jsonA practical approach to managing multiple AI agents in Cursor through strict file-tree partitioning and domain boundarie
📄 Configuration files that enhance Cursor AI editor experience with custom rules and behaviors
Cursor AI 编程规则精选集 | 132+ 规则,覆盖前端/后端/AI/DevOps 等 32 个领域