python-backend-expert

Solid

This skill should be used when the user is writing, reviewing, debugging, or architecting Python backend services (FastAPI + SQLAlchemy 2.0 async + Pydantic v2) or long-running runtime processes (workers, ETL, daemons, CLI tools). Assumes Python 3.13+/3.14; detects installed libraries from pyproject.toml/uv.lock and adapts. Covers async correctness, dependency injection with Annotated[T, Depends], N+1 and MissingGreenlet, lifecycle and graceful shutdown, signals/subprocess/atomic writes, project structure, validation, testing, and AI-generated anti-patterns. Trigger phrases include "critique my FastAPI backend", "why am I getting MissingGreenlet", "is this blocking the event loop", "fix N+1 query", "structure my FastAPI project", "review my Pydantic models", "write a Python worker", "subprocess deadlock", and "process keeps growing in memory". Not for Django or Flask apps, notebooks, or data-science scripts — those stacks have different idioms this skill would misapply.

Code & Development 11 stars 0 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
36
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

This skill guides expert Python development for two project shapes: **web backends** (FastAPI + SQLAlchemy 2.0 + Pydantic v2) and **runtime processes** (workers, CLIs, ETL, daemons, scheduled jobs). The patterns differ; classify the project first, apply the right subset. Assume Python 3.13+ for all new code unless the project explicitly pins lower. 3.14 is the current production-recommended release (free-threaded build, deferred annotations, asyncio introspection). The skill notes when a feature requires a specific version. Detect the actual version from `requires-python` in `pyproject.toml` before recommending a feature. Do not invent APIs. Verify a method or pattern exists in the project's installed library versions before suggesting it. Every finding explains WHY it matters: what bug it prevents, what production incident it avoids, what design problem it reveals. ## First, Classify the Project Different defaults apply to different project shapes. Detect from the project before applying rules. | Signal | Project shape | Apply | | --- | --- | --- | | Imports `fastapi` or `starlette`; has `app = FastAPI(...)` | **Web backend** | All references below | | Has `pydantic-settings` and `sqlalchemy[asyncio]` and an HTTP framework | **Web backend** | Same | | `[project.scripts]` entry point + no HTTP framework | **CLI / runtime** | Skip `fastapi.md` and `lifecycle.md`. Use `runtimes.md`. | | Long-running script with `signal.signal`, `multiprocessing`, file processing, scheduled...

Details

Author
johnkozaris
Repository
johnkozaris/jko-claude-plugins
Created
4 months ago
Last Updated
yesterday
Language
Rust
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Listed

python-backend-expert

This skill should be used when the user is writing, reviewing, debugging, or architecting Python backend code using Litestar or FastAPI with SQLAlchemy or Advanced Alchemy. Provides expert critique covering SOLID principles, hexagonal architecture, repository/service patterns, dependency injection, async correctness, ORM usage, API design, anti-pattern detection, and modern Python patterns for mature production backends. Use when the user asks "critique my Python backend", "review this controller", "fix my SQLAlchemy query", "structure my project", "is this SOLID", "review my repository", "optimize my API", "design my service layer", "help with dependency injection", "set up a Litestar project", "set up a FastAPI project", "create a repository pattern", "fix my async code", "review my database models", or "fix N+1 query".

4 Updated today
mathisk2095
API & Backend Listed

fastapi-patterns

FastAPI patterns, Pydantic schemas, dependency injection, async correctness, response models, error handling, OpenAPI, and auth. Use whenever the project contains `fastapi` in dependencies, files importing from `fastapi`, `@app.get`/`@router.get` decorators, Pydantic BaseModel subclasses used as request/response types, OR the user asks about FastAPI, Pydantic v2, Depends(), HTTPException, OAuth2PasswordBearer, APIKeyHeader, response_model, even if FastAPI is not mentioned by name.

0 Updated today
ku5ic
AI & Automation Solid

neo-python

Use this skill when writing, reviewing, debugging, or architecting Python 3.10+ code, including type hints, structural pattern matching, dataclasses, async/task groups, packaging-aware project structure, testability, and maintainability.

7 Updated today
Benknightdark