backend-python
Deliver Python backends across async FastAPI and Django or Flask service styles while keeping API design, validation, auth, and service behavior explicit.
от HanTechnology★ 38 звёзд на GitHub
Установить backend-python в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Backend Python
Use this pack for Python backend work: REST APIs, service layers, auth flows, async I/O, model-serving edges, background work, and backend delivery patterns that live in the Python ecosystem.
Defer first-pass route choice and lane selection to ../../reference/routing-matrix.md.
This is the general Python backend pack for the repo. Use the overlays in reference/ to tune decisions for FastAPI or the Django and Flask family while preserving the same expectations for contracts, validation, documentation, and production behavior.
Setup posture
- Prefer modernizing, refining, or extending an existing project in place.
- Treat scaffold,
create,init, ornewflows as greenfield-only and explicit-request-only. Defer to.opencode/reference/project-setup-policy.md.
Core focus
- Design API contracts that are easy to reason about from schema model to handler to service layer.
- Keep request and response validation explicit with typed models, serializers, or forms that fit the framework.
- Choose authentication and authorization flows deliberately: OAuth2, JWTs, sessions, service credentials, or scoped policies.
- Be intentional about async behavior, database session lifecycle, background tasks, and queue boundaries.
- Keep documentation, configuration, and operational visibility close to the backend surface.
Shared Python backend standards
- Keep type hints, schema models, and domain boundaries readable instead of letting framework shortcuts blur them together.
- Separate API models from persistence models when that separation protects contract stability and security.
- Use explicit validation at every external boundary and keep sensitive fields filtered out of outward-facing models.
- Publish OpenAPI or equally clear endpoint documentation for shared services and public APIs.
- Choose async because the workload benefits from it, not because the framework makes it available.
- Make auth, permission checks, token refresh, and background processing visible in the code path rather than implied by defaults.
Default workflow
- Inspect the existing package layout, schema approach, and runtime model.
- Choose the closest overlay from
reference/fastapi.mdorreference/django-flask.md. - Define the contract surface, validation rules, auth flow, and sync or async behavior before expanding the service layer.
- Implement handlers, service boundaries, and documentation together so the backend remains understandable under change.
- Run
review-workafter substantial backend changes.
Collaboration in this repo
- Use
Explorebefore editing so the new work follows local module and service patterns. - Use
LibrarianorContext7for framework docs, protocol details, and library tradeoffs. - Pair with
architecture-integrationwhen the task is really about service boundaries, client contracts, or cross-system coordination.
Overlays
reference/fastapi.mdfor async-first APIs, Pydantic models, dependency-driven auth, and SQLAlchemy or async service patterns.reference/django-flask.mdfor Django or Flask services where batteries-included app structure or explicit extension-based composition shapes the backend.
Guardrails
- Do not force every Python backend into one async pattern when the runtime and workload do not need it.
- Do not leak ORM entities, request objects, or framework globals across the whole service layer.
- Do not let framework convenience hide contract drift, weak validation, or unsafe auth behavior.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- reference/django-flask.md
- reference/fastapi.md
FAQ
Что делает скилл backend-python?
Deliver Python backends across async FastAPI and Django or Flask service styles while keeping API design, validation, auth, and service behavior explicit.
Как установить скилл backend-python?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл backend-python запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…