Agent skill · software engineering · aiskillstore
python-patterns
Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying.
Why this skill is useful
Provides decision-making frameworks and principles for selecting Python frameworks and structuring projects that the AI wouldn't reliably generate on its own.
What it needs
About 5k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
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 Comparison Principles Factor FastAPI Django Flask -------- --------- -------- ------- Best for APIs, microservices Full-stack, CMS Simple, learning Async Native Django 5.0+ Via extensions Admin Manual Built-in Via extensions ORM Choose your own Django ORM Choose your own Learning curve Low Medium Low Selection Questions to Ask: 1. Is this API-only or full-stack? 2. Need admin interface? 3. Team familiar with async? 4. Existing infrastructure? --- 2. Async vs Sync Decision When to Use Async The Golden Rule Async Library Selection Need Async Library ------ --------------- HTTP client httpx PostgreSQL asyncpg Redis aioredis / redis-py async File I/O aiofiles Database ORM SQLAlchemy 2.0 async, Tortoise --- 3. Type Hints Strategy When to Type Common Type Patterns Pydantic for Validation --- 4. Project Structure Principles Structure Selection FastAPI Structure Principles --- 5. Django Principles (2025) Django Async (Django 5.0+) Django Best Practices --- 6. FastAPI Principles async def vs def in FastAPI Dependency Injection Pydantic v2 Integration --- 7. Background Tasks Selection Guide Solution Best For ---------- ---------- BackgroundTasks Simple, in-process tasks Celery Distributed, complex workflows ARQ Async, Redis-based RQ Simple Redis queue Dramatiq Actor-based, simpler than Celery When to Use Each --- 8. Error Handling Principles Exception Strategy Error Response Philosophy --- 9. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/python-patterns