Coding & Development✨gemini🤖claude⌨️cursor🌊windsurf
secure-rules-files
Baseline rules files to improve the security of AI-generated code (Claude, Cursor, Copilot + more)
Quick Start
Install this Skill
npx skills add wiz-sec-public/secure-rules-files**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](https://www.wiz.io/blog/safer-vibe-coding-rules-files). ## What's Inside This Repository? - `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 - **Rules Directory**: The heart of the repository, organized intuitively by Programming Language/Framework to provide easy access to the relevant security rules. ### Supported Technologies > [!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: - Python: Flask, Django - Javascript: React, Node.js - Java: Spring - .NET: ASP.NET Core - C Compatible rules were generated for each of the following popular AI coding assistants and tools: - Cursor Rules - Cline Rules - Claude CLAUDE.md - Windsurf Rules - Codex AGENTS.md - Aider Conventions - GitHub Copilot Copilot Instructions ## Contributing We welcome contributions, whether they add coverage for additional languages and frameworks, or offer evidence based improvements to the prompt. - To add a new language or framework: `technologies.json` - To add a new assistant: `assistants.json`
Repository
206stars
26forks
Details
Related Skills
More coding & development skills you might like
Reticle
Coding & DevelopmentAI agents can generate code, but still struggle to understand what they build. Reticle brings Jev-style machine-native runtime perception to web & desktop applications.
🤖claude🌐universal
1.2k
190
View
agentscope-java
Coding & DevelopmentExpert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
🌐universal
6.0k
1.5k
View
ospec
Coding & DevelopmentDocument-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.
✨gemini🤖claude💬gpt🌐universal
524
34
View
misakanet-failure-memory
Coding & Development📚 A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
🤖claude⌨️cursor🌐universal
424
158
View