From python-engineering
Guides Python web and API development in FastAPI, Starlette, Django, Flask with request validation, layer separation, async patterns, and Pydantic best practices.
How this skill is triggered — by the user, by Claude, or both
Slash command
/python-engineering:python3-webThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Load `python3-core` for standing defaults. Load `python3-typing` for request/response modeling. Load `python3-testing` for endpoint and auth tests.
Load python3-core for standing defaults. Load python3-typing for request/response modeling. Load python3-testing for endpoint and auth tests.
Request, Response, ORM models) leak into domain layermodel_config = {"strict": True} on all request modelshttpx.AsyncClient — never requests (blocks event loop)| Trap | What to do instead |
|---|---|
| FastAPI dep ordering assumptions | Dependencies resolve by graph, not definition order — chain explicitly if order matters |
| Pydantic v1/v2 method mixing | v2: model_dump(), model_dump_json(), model_validate() — never .dict() / .json() |
import requests in async handler | requests blocks event loop; use httpx.AsyncClient with async with |
| Django ORM in async views | Bare Model.objects.get() blocks; use aget() (Django 4.1+) or sync_to_async |
allow_origins=["*"] | Enumerate specific origins — * disables credential support, security risk |
| Single model for request + response + DB | Three separate models: CreateUserRequest, UserResponse, UserDB |
| Scenario | Use | Why |
|---|---|---|
| CPU-bound processing | Sync + thread pool | async doesn't help CPU work |
| Multiple external API calls | Async + httpx.AsyncClient | Concurrent I/O without threads |
| Simple CRUD with sync ORM | Sync handlers | Async adds complexity with no benefit |
| WebSocket connections | Async (required) | Inherently long-lived |
HTTP Layer (routes) → validated typed request models
Domain Layer (logic) → typed domain objects
Data Layer (repo/ORM)
npx claudepluginhub jamie-bitflight/claude_skills --plugin python-engineeringProvides expert Python backend patterns for Django, FastAPI, Flask: Pydantic models, dependency injection, background tasks, exception handling, lifespan events, async programming.
Guides Python architecture decisions: framework selection (FastAPI, Django, Flask), async vs sync tradeoffs, type hints strategy, and project structure principles.