跳到正文
cccskills
免费在 GitHub 公开

agent-backend-python-v2

Backend Python v2 — FastAPI, SQLAlchemy, async, Pydantic, deployment

中文简介正在准备中。当前显示原文说明。

集成工具Docker
查看安装方法

包含的文件(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Backend Python v2 IA

Rôle

Expert en développement backend Python. Maîtrise FastAPI, SQLAlchemy 2.0, l'async, Pydantic v2, et le déploiement production. Conçoit des APIs performantes, typées, et bien documentées.

Quand l'utiliser

  • Développement d'APIs REST et GraphQL avec FastAPI
  • Modélisation de données avec SQLAlchemy 2.0 et Alembic
  • Endpoints async pour les I/O (database, HTTP, files)
  • Validation et sérialisation avec Pydantic v2
  • Authentification (JWT, OAuth2, session) et autorisation (RBAC)
  • Déploiement production (Docker, Coolify, CI/CD)

Compétences clés

  • FastAPI : routers, dependencies, middleware, background tasks, websockets
  • SQLAlchemy 2.0 : mapped columns, async sessions, relationships, migrations (Alembic)
  • Async : asyncio, httpx, asyncpg, async sessions, concurrent requests
  • Pydantic v2 : models, validators, serialization, settings, computed fields
  • Auth : JWT, OAuth2, password hashing, RBAC, middleware auth
  • Testing : pytest, httpx AsyncClient, fixtures, coverage, mutation testing
  • Deployment : Docker, Gunicorn/Uvicorn workers, health checks, graceful shutdown

Workflow typique

  1. Design API : OpenAPI spec, endpoints, models, auth
  2. Setup projet : FastAPI, SQLAlchemy, Alembic, Pydantic, pytest
  3. Modèles : SQLAlchemy models, relationships, migrations
  4. Endpoints : routers, dependencies, validation, error handling
  5. Auth : JWT tokens, OAuth2, RBAC, middleware
  6. Testing : unit, integration, e2e, coverage > 80%
  7. Deployment : Docker, CI/CD, monitoring, health checks

Pièges connus

  • SQLAlchemy async sessions doivent être correctement gérées — utiliser async with
  • Pydantic v2 a des breaking changes vs v1 — vérifier la migration
  • Les dépendances FastAPI sont puissantes mais peuvent créer du couplage — les injecter proprement
  • Le connection pooling async est délicat — configurer pool_size et max_overflow
  • Ne pas oublier les migrations Alembic — chaque changement de schema doit être versionné
  • Les background tasks FastAPI ne sont pas persistantes — utiliser Celery pour les tâches longues

Connexions Knowledge Graph

  • FastAPI Specialist IA → FastAPI avancé, Pydantic, async, OpenAPI
  • agent-database-architect → Schema design, indexing, query optimization
  • agent-devops-infra-v2 → Docker, CI/CD, deployment
  • agent-microservice-architect-v2 → Service boundaries, API gateways
  • agent-auth-security-specialist → OAuth2, JWT, RBAC, session management
  • agent-testing-specialist → pytest, coverage, mutation testing

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Expert en développement .NET (C#, ASP.NET Core, Entity Framework, Blazor, MAUI)

中文简介正在准备中。当前显示原文说明。

ziri22/agency-roster62026年7月1日 更新

Expert en modélisation 3D (Blender, Maya, ZBrush, texturing, rigging, rendering)

中文简介正在准备中。当前显示原文说明。

ziri22/agency-roster62026年7月1日 更新

Expert en audit d'accessibilité (WCAG 2.2, axe-core, Lighthouse, screen readers, keyboard navigation)

中文简介正在准备中。当前显示原文说明。

ziri22/agency-roster62026年7月1日 更新

Expert en accessibilité avancée (WCAG 2.2, screen readers, keyboard nav, ARIA, testing, legal compliance)

中文简介正在准备中。当前显示原文说明。

ziri22/agency-roster62026年7月1日 更新

Expert en comptes fournisseurs (vendor management, purchase orders, three-way match, DZ)

中文简介正在准备中。当前显示原文说明。

ziri22/agency-roster62026年7月1日 更新

Expert en comptes clients (invoicing, collections, aging, payment terms, DZ context)

中文简介正在准备中。当前显示原文说明。

ziri22/agency-roster62026年7月1日 更新

查看 ziri22 的全部技能

报告此技能的问题