python-backend-expert
БесплатноЗапускает вложенные скриптыНе проверенPython backend expert including Django, FastAPI, Flask, SQLAlchemy, and async patterns
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Python Backend Expert
alembic database migrations
When reviewing or writing code, apply these guidelines:
- Use alembic for database migrations.
django class based views for htmx
When reviewing or writing code, apply these guidelines:
- Use Django's class-based views for HTMX responses
django form handling
When reviewing or writing code, apply these guidelines:
- Implement Django forms for form handling
- Use Django's form validation for HTMX requests
django forms
When reviewing or writing code, apply these guidelines:
- Utilize Django's form and model form classes for form handling and validation.
- Use Django's validation framework to validate form and model data.
- Keep business logic in models and forms; keep views light and focused on request handling.
django framework rules
When reviewing or writing code, apply these guidelines:
- You always use the latest stable version of Django, and you are familiar with the latest features and best practices.
django middleware
When reviewing or writing code, apply these guidelines:
- Use middleware judiciously to handle cross-cutting concerns like authentication, logging, and caching.
- Use Django’s middleware for common tasks such as authentication, logging, and security.
django middleware for request response
When reviewing or writing code, apply these guidelines:
- Utilize Django's middleware for request/response processing
django models
When reviewing or writing code, apply these guidelines:
- Leverage Django’s ORM for database interactions; avoid raw SQL queries unless necessary for performance.
- Keep business logic in models and forms; keep views light and focused on request handling.
django orm for database operations
When reviewing or writing code, apply these guidelines:
- Implement Django ORM for database operations
django rest framework
When reviewing or writing code, apply these guidelines:
- Use Django templates for rendering HTML and DRF serializers for JSON responses
django 5.x features (2025+)
When reviewing or writing code, apply these guidelines:
- Django 5.2 is the current LTS (Long-Term Support) release; target it for new projects (supported until 2028)
- Use database-computed default values via
db_defaulton model fields (e.g.,db_default=Now()) instead of Python-side defaults where the database should own the value - Use facet filters in the Django admin (
ModelAdmin.show_facets) to get counts alongside filter options - Leverage improved async ORM support: Django 5.x expands
async-native queryset methods — preferawait qs.acount(),await qs.afirst(),async for obj in qsin async views - Use declarative middleware configuration with
MIDDLEWARElist; async-capable middleware is preferred for high-throughput ASGI deployments - Use
LoginRequiredMiddleware(Django 5.1+) instead of decorating every view when all views require authentication - Use
GeneratedFieldfor database-generated columns (computed from other columns at the DB level)
fastapi patterns (2025+)
When reviewing or writing code, apply these guidelines:
Use the
lifespancontext manager (not deprecated@app.on_event) for startup/shutdown resource management:from contextlib import asynccontextmanager from fastapi import FastAPI @asynccontextmanager async def lifespan(app: FastAPI): # startup: initialize DB pool, HTTP clients, caches app.state.db_pool = await create_pool() yield # shutdown: close resources await app.state.db_pool.close() app = FastAPI(lifespan=lifespan)Use Pydantic v2 models for all request/response schemas; Pydantic v2 is the default in FastAPI 0.100+. Use
model_config = ConfigDict(...)instead of the innerclass ConfigUse
pydantic-settings(BaseSettings) withlru_cachefor config management:from functools import lru_cache from pydantic_settings import BaseSettings class Settings(BaseSettings): database_url: str model_config = ConfigDict(env_prefix="APP_") @lru_cache def get_settings() -> Settings: return Settings()Scope dependencies correctly: per-request (DB sessions, auth), router-level (audit logging, namespace caches), application lifespan (Kafka producers, feature flag SDKs, tracing exporters)
Use
Annotatedtype hints withDependsfor cleaner dependency signatures:from t
Установить python-backend-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGrepGlobВложенные файлы
FAQ
Что делает скилл python-backend-expert?
Python backend expert including Django, FastAPI, Flask, SQLAlchemy, and async patterns
Как установить скилл python-backend-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл python-backend-expert запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic