Claude Secure Coding Rules
Description
Secure Coding Rules for Claude Code with a particular emphasis on AIML projects
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Claude Secure Coding Rules
**Open-source security rules that guide Claude Code to generate secure code by default.**
[](https://opensource.org/licenses/MIT) [](docs/CONTRIBUTING.md)
Overview
This repository provides comprehensive security rules for Claude Code, covering web applications, AI/ML systems, and agentic AI. When you include these rules in your project, Claude Code will automatically apply security best practices, refuse to generate vulnerable code patterns, and suggest secure alternatives.
Key Features
- OWASP Top 10 2025 - Complete coverage of modern web security risks
- OWASP MCP Top 10 2025 - Model Context Protocol security for AI assistants and tools
- AI/ML Security - Rules for machine learning systems using NIST AI RMF, MITRE ATLAS, and Google SAIF
- Agentic AI Security - Specialized rules for autonomous AI systems with tool use
- 100+ Rule Sets - Covering 12 languages, 5 backend frameworks, 11 AI/ML frameworks, 5 frontend frameworks, 51 RAG tools, IaC (Terraform/Pulumi), containers (Docker/K8s/Helm), and CI/CD (GitHub Actions/GitLab CI)
- Enforcement Levels - Strict, warning, and advisory modes for different risk levels
Quick Start
1. Clone the Repository
git clone https://github.com/yourusername/claude-secure-coding-rules.git
cd claude-secure-coding-rules
2. Copy Rules to Your Project
**Option A: Copy specific rules you need**
# Core rules (recommended for all projects)
cp rules/_core/*.md /path/to/your/project/.claude/
# Language-specific (e.g., Python)
cp rules/languages/python/CLAUDE.md /path/to/your/project/
# Framework-specific (e.g., FastAPI)
cp rules/backend/fastapi/CLAUDE.md /path/to/your/project/backend/
# RAG-specific (e.g., LlamaIndex + Pinecone)
cp -r rules/rag/_core /path/to/your/project/.claude/rag-core/
cp rules/rag/o
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development