This is a decision-making framework for Python development in 2025, not a pattern library to copy from. It walks you through choosing between FastAPI, Django, and Flask based on what you're actually building, explains when async makes sense versus when it's overkill, and covers project structure that scales with complexity. The philosophy is solid: ask about context, don't default to the same stack every time, understand I/O-bound versus CPU-bound work. Good for teams that keep bikeshedding architecture decisions or juniors who cargo-cult async everywhere. The type hints and testing sections are practical without being prescriptive.

skills.sh installs
359
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill python-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

Python Patterns

Python development principles and decision-making for 2025. Learn to THINK, not memorize patterns.


⚠️ How to Use This Skill

This skill teaches decision-making principles, not fixed code to copy.

  • ASK user for framework preference when unclear
  • Choose async vs sync based on CONTEXT
  • Don't default to same framework every time

1. Framework Selection (2025)

Decision Tree

What are you building?
│
├── API-first / Microservices
│   └── FastAPI (async, modern, fast)
│
├── Full-stack web / CMS / Admin
│   └── Django (batteries-included)
│
├── Simple / Script / Learning
│   └── Flask (minimal, flexible)
│
├── AI/ML API serving
│   └── FastAPI (Pydantic, async, uvicorn)
│
└── Background workers
    └── Celery + any framework

Comparison Principles

FactorFastAPIDjangoFlask
Best forAPIs, microservicesFull-stack, CMSSimple, learning
AsyncNativeDjango 5.0+Via extensions
AdminManualBuilt-inVia extensions
ORMChoose your ownDjango ORMChoose your own
Learning curveLowMediumLow

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Productivity & Planning, Python
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1awslabs avataraws-architecture-diagramawslabs/agent-pluginsGenerate validated AWS architecture diagrams as draw.io XML using official AWS4 icon libraries. Use this skill whenever the user wants to create, generate, or d358skills.sh installs
2pmprompt avatarpmf-surveypmprompt/claude-plugin-product-managementUse when asked to "PMF survey", "measure product-market fit", "40% rule", "Sean Ellis test", "Rahul Vohra method", or "how disappointed would you be". Helps qua358skills.sh installs
3davila7 avatarab-test-setupdavila7/claude-code-templatesWhen the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this 356skills.sh installs
4levnikolaevich avatarln-521-test-researcherlevnikolaevich/claude-code-skillsResearches real-world problems, competitor solutions, and customer complaints for a feature domain. Use before test planning to ground tests in actual user pain356skills.sh installs
5patricio0312rev avatarscalability-playbookpatricio0312rev/skillsIdentifies performance bottlenecks and provides ordered scaling strategies with triggers, phased plans, and cost implications. Use for "scalability planning", "355skills.sh installs
6pskoett avatardx-data-navigatorpskoett/pskoett-ai-skillsQuery Developer Experience (DX) data via the DX Data MCP server PostgreSQL database. Use this skill when analyzing developer productivity metrics, team performa355skills.sh installs