Best Claude Rules
Claude Code uses CLAUDE.md files to understand your project context, coding standards, and development workflow. It reads these files automatically on startup.
Add these rules to your CLAUDE.md file to get better AI code generation.
15 rules available
Python Claude Rules
Claude AI coding rules for Python. Add to CLAUDE.md to get type-safe, Pythonic, and well-tested Python code from Claude.
TypeScript Claude Rules
Claude rules for TypeScript: enforce strict types, functional patterns, and modern TypeScript in your CLAUDE.md file.
React Claude Rules
Claude rules for React: component design, state patterns, performance, and testing conventions in CLAUDE.md.
Next.js Claude Rules
Claude rules for Next.js App Router: streaming, server actions, caching, and production deployment patterns.
Go Claude Rules
Claude rules for Go: project structure, error handling, testing, and idiomatic Go patterns.
Rust Claude Rules
Claude rules for Rust: zero-cost abstractions, async with Tokio, error types, and high-performance Rust patterns.
SQL Claude Rules
Claude rules for SQL and database design: schema conventions, query patterns, and migration safety.
Docker Claude Rules
Claude rules for Docker: layer caching, multi-stage builds, image security, and container optimization.
Security Claude Rules
Security-focused Claude rules for any codebase: OWASP top 10, secrets management, auth, and vulnerability prevention.
Testing Claude Rules
Claude rules for writing high-quality tests: test pyramid strategy, mocking principles, and CI integration.
Vue.js Claude Rules
Claude rules for Vue 3: Composition API, Pinia, performance, and Vue ecosystem best practices.
Django Claude Rules
Claude rules for Django: project structure, DRF patterns, Celery, and production Django best practices.
FastAPI Claude Rules
Claude rules for FastAPI: project structure, async SQLAlchemy, testing, and production patterns.
Performance Claude Rules
Claude rules for performance optimization: profiling workflow, caching patterns, database optimization, and frontend performance.
Documentation Claude Rules
Claude rules for writing excellent documentation: README structure, API docs, code comments, and architecture docs.