Claude Rules for Python
CLAUDE.md rules for Python development. Covers type hints, docstring conventions, framework-specific patterns for FastAPI and Django, and Python tooling (ruff, mypy, pytest).
50 rules matching Python
Python CLAUDE.md Rules
Python's flexibility makes consistency hard. Without explicit CLAUDE.md rules, Claude Code will switch between sync and async, mix `print` with `logging`, generate code with and without type hints, and reach for whichever package manager seems standard for the moment — pip, poetry, or uv. A good Python CLAUDE.md locks all of that down: which Python version the project targets, which formatter and linter to run (ruff, black, mypy, pyright), how docstrings are structured, which testing framework is in use, and project-specific patterns around dataclasses, error handling, and logging. The Python CLAUDE.md rules below come from real projects spanning FastAPI APIs, Django apps, data pipelines, and CLI tools — so you can see how teams encode their tooling choices and adapt those patterns to your stack. If you maintain a Python CLAUDE.md and skip nothing else, lock the Python version and the package manager — those two lines alone prevent half of Claude's most common mistakes on Python projects.
Mindx CLAUDE.md
by @DotNetAge
一个可自主进化的数字化分身
Teamster CLAUDE.md
by @TEAMSchools
A modern data stack for K-12 education
Tree Sitter Analyzer CLAUDE.md
by @aimasteracc
A scalable, multi-language code analysis framework based on Tree-sitter, usable both as a CLI tool and an MCP server.
Claude Codex Settings CLAUDE.md
by @fcakyon
My personal Claude Code and OpenAI Codex setup with battle-tested skills, plugins, hooks and agents that I use daily.
Awesome Claude Notes CLAUDE.md
by @loulanyue
🏄 帮助你快速搭建 Claude Code 与 AI Agent 生产力工作流的实战仓库 🏄 A practical toolkit to help you quickly build high-productivity workflows for Claude Code and AI agents
Bitsandbytes CLAUDE.md
by @bitsandbytes-foundation
Accessible large language models via k-bit quantization for PyTorch.
Lintel CLAUDE.md
by @bamdadd
lintel
Minimal Second Brain CLAUDE.md
by @gokhanarkan
A minimal, AI-native Obsidian vault template. 3 folders, manifest files for Claude/Copilot, automated maintenance.
Dotfiles CLAUDE.md
by @phatblat
CLAUDE.md for the Dotfiles project (Shell).
Claude Plugins CLAUDE.md
by @MSApps-Mobile
29 free, open-source plugins for Claude Code & Cowork — Google Drive, WhatsApp, YouTube, WordPress, Apollo & more. Built on the SOSA™ security framework.
Awesome PHM Paper Agent CLAUDE.md
by @PHMbench
APPA
Iam Policy Validator CLAUDE.md
by @boogy
⚡ Stop IAM misconfigurations before they become breaches — Catch overprivileged permissions, dangerous wildcards, and policy errors before deployment.
Ggsql CLAUDE.md
by @posit-dev
A SQL extension for declarative data visualisation based on the Grammar of Graphics.
Graphgrc CLAUDE.md
by @engseclabs
Build security program documentation using Git and Markdown
Interpreted Context Methdology CLAUDE.md
by @RinDig
Folder structure as agent architecture. ICM replaces framework-level orchestration with filesystem structure.
Flxify CLAUDE.md
by @ahmedeltaweel
Flxify is a Swiss Army knife for developers — a lightweight, privacy-first text transformation tool built with no frameworks and zero external dependencies.
Experimental Psychology CLAUDE.md
by @ContextLab
Course materials for PSYC 11: Laboratory in Psychological Science, Dartmouth College (Instructor: Jeremy Manning)
Workos Python CLAUDE.md
by @workos
Official Python SDK for interacting with the WorkOS API
Atlcli CLAUDE.md
by @BjoernSchotte
A blazingly fast CLI for Atlassian products. Sync Confluence pages as markdown, manage Jira issues from your terminal.
Claude Reflect CLAUDE.md
by @BayramAnnakov
A self-learning system for Claude Code that captures corrections, positive feedback, and preferences — then syncs them to CLAUDE.md and AGENTS.md.
Spec To Agents CLAUDE.md
by @microsoft
A multi-agent event planning workflow built with Microsoft Agent Framework - combining Semantic Kernel's enterprise orchestration with AutoGen's multi-agent pat
Cc Plugin Catalog CLAUDE.md
by @giginet
Static site generator for Claude Code Plugin Marketplace repositories
Llmitm V2 CLAUDE.md
by @cybersharkvin
Autonomous pentesting agent — Claude Code Hackathon (Feb 10-16, 2026). The LLM builds the automation that replaces itself.
Agents Js CLAUDE.md
by @livekit
Build realtime multimodal AI agents with Node.js
CCProxy CLAUDE.md
by @OCWorkforces
🌾 🥳 🌋 🏰 🌅 🌕 Claude Code Proxy 🌖 🌔 🌈 🏆 👑
Beyond Scale Language Data Diversity CLAUDE.md
by @alycialee
CLAUDE.md for the Beyond Scale Language Data Diversity project (Python).
Claude Skills CLAUDE.md
by @Jeffallan
66 Specialized Skills for Full-Stack Developers. Transform Claude Code into your expert pair programmer.
Dataops Observability Agents CLAUDE.md
by @DataKitchen
DataOps Observability Integration Agents are part of DataKitchen's Open Source Data Observability. They connect to various ETL, ELT, BI, data science, data visu
CodeScaleBench CLAUDE.md
by @sourcegraph
CLAUDE.md for the CodeScaleBench project (Shell).
PHM Vibench CLAUDE.md
by @PHMbench
CLAUDE.md for the PHM Vibench project (Jupyter Notebook).
Humanize CLAUDE.md
by @TianyiDataScience
CLAUDE.md for the Humanize project (Python).
Prql CLAUDE.md
by @PRQL
PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement
N8n Install CLAUDE.md
by @kossakovsky
🚀 Self-hosted AI automation platform. Deploy n8n, Ollama, Flowise, RAG, Supabase & 30+ tools with one command. Auto HTTPS. Free Zapier/Make alternative.
Archie CLAUDE.md
by @BitRaptors
Architecture rules your AI coding agent can't break — generates AGENTS.md, per-folder CLAUDE.md, and Claude Code hooks from your codebase.
Opentrace CLAUDE.md
by @opentrace
OpenTrace is a knowledge graph platform that maps system architecture, code structure, and service relationships giving you a visual, queryable map of how your
Tapo CLAUDE.md
by @mihai-dinculescu
🦀 Rust API, 🐍 Python API, and 🤖 MCP Server for TP-Link Tapo smart devices
Q Skills CLAUDE.md
by @TyrealQ
End-to-end skills for academic writing, data analysis, teaching, and research communication.
Nexent CLAUDE.md
by @ModelEngine-Group
Nexent is a zero-code platform for auto-generating production-grade AI agents using Harness Engineering principles — unified tools, skills, memory, and orchestr
Dspy Demo CLAUDE.md
by @mahm
CLAUDE.md for the Dspy Demo project (Python).
Quickwit CLAUDE.md
by @quickwit-oss
Cloud-native search engine for observability. An open-source alternative to Datadog, Elasticsearch, Loki, and Tempo.
Claude Skill Aso Appstore Screenshots CLAUDE.md
by @adamlyttleapps
CLAUDE.md for the Claude Skill Aso Appstore Screenshots project (Python).
Terraform Cloud Mcp CLAUDE.md
by @severity1
A Model Context Protocol (MCP) server that integrates AI assistants with the Terraform Cloud API, allowing you to manage your infrastructure through natural con
Repo Posts CLAUDE.md
by @tom-doerr
CLAUDE.md for the Repo Posts project (Python).
Blog CLAUDE.md
by @jxnl
CLAUDE.md for the Blog project (Python).
LabelU CLAUDE.md
by @opendatalab
Open-source multimodal data annotation platform with AI auto-annotation support.
Claude Homelab CLAUDE.md
by @jmagar
Comprehensive Agents, Commands, Hooks, and Skills for homelab service management - media automation, infrastructure monitoring, document management, and more
OmoiOS CLAUDE.md
by @kivo360
Spec-driven multi-agent orchestration — autonomous development workforce powered by Claude & OpenHands
Llm Driven System Design CLAUDE.md
by @evgenyvinnik
Collection of the system designs driven by LLMs
Slicc CLAUDE.md
by @ai-ecoverse
A browser-native AI agent (claw) for everyone that loves ice cream
VibeHub CLAUDE.md
by @mtunique
A macOS app that brings a Dynamic Island-style overlay for monitoring Claude Code and OpenCode CLI sessions. A claude island fork
Why add Python rules to your CLAUDE.md?
Python projects have their own set of conventions around type hints, docstrings, virtual environments, and which testing framework to use. CLAUDE.md rules for Python typically specify whether the project uses type annotations, which formatter (black, ruff), how to write docstrings, and framework-specific patterns — so Claude doesn't mix up Django ORM syntax with SQLAlchemy or forget to add type hints when the project requires them.