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

ClaudePython

Claude AI coding rules for Python. Add to CLAUDE.md to get type-safe, Pythonic, and well-tested Python code from Claude.

Code Style
python · claudeCopy Ready

TypeScript Claude Rules

ClaudeTypeScript

Claude rules for TypeScript: enforce strict types, functional patterns, and modern TypeScript in your CLAUDE.md file.

Code Style
typescript · claudeCopy Ready

React Claude Rules

ClaudeReact

Claude rules for React: component design, state patterns, performance, and testing conventions in CLAUDE.md.

Architecture
react · claudeCopy Ready

Next.js Claude Rules

ClaudeNext.js

Claude rules for Next.js App Router: streaming, server actions, caching, and production deployment patterns.

Architecture
nextjs · claudeCopy Ready

Go Claude Rules

ClaudeGo

Claude rules for Go: project structure, error handling, testing, and idiomatic Go patterns.

Architecture
go · golangCopy Ready

Rust Claude Rules

ClaudeRust

Claude rules for Rust: zero-cost abstractions, async with Tokio, error types, and high-performance Rust patterns.

Performance
rust · tokioCopy Ready

SQL Claude Rules

ClaudeSQL

Claude rules for SQL and database design: schema conventions, query patterns, and migration safety.

Database
sql · databaseCopy Ready

Docker Claude Rules

ClaudeDocker

Claude rules for Docker: layer caching, multi-stage builds, image security, and container optimization.

Performance
docker · containersCopy Ready

Security Claude Rules

Claudesecurity

Security-focused Claude rules for any codebase: OWASP top 10, secrets management, auth, and vulnerability prevention.

Security
security · claudeCopy Ready

Testing Claude Rules

Claudetesting

Claude rules for writing high-quality tests: test pyramid strategy, mocking principles, and CI integration.

Testing
testing · claudeCopy Ready

Vue.js Claude Rules

ClaudeVue

Claude rules for Vue 3: Composition API, Pinia, performance, and Vue ecosystem best practices.

Code Style
vue · piniaCopy Ready

Django Claude Rules

ClaudeDjango

Claude rules for Django: project structure, DRF patterns, Celery, and production Django best practices.

Architecture
django · drfCopy Ready

FastAPI Claude Rules

ClaudeFastAPI

Claude rules for FastAPI: project structure, async SQLAlchemy, testing, and production patterns.

API Design
fastapi · sqlalchemyCopy Ready

Performance Claude Rules

Claudeperformance

Claude rules for performance optimization: profiling workflow, caching patterns, database optimization, and frontend performance.

Performance
performance · claudeCopy Ready

Documentation Claude Rules

Claudedocumentation

Claude rules for writing excellent documentation: README structure, API docs, code comments, and architecture docs.

Documentation
documentation · claudeCopy Ready