·python-backend-expert
</>

python-backend-expert

hieutrtr/ai1-skills

具有 SQLAlchemy 2.0、Pydantic v2 和异步模式的 FastAPI 应用程序的 Python 后端实现模式。在实现阶段创建或修改 FastAPI 端点、Pydantic 模型、SQLAlchemy 模型、服务层或存储库类时使用。涵盖异步会话管理、通过 Depends() 进行依赖注入、分层错误处理和 Alembic 迁移。不涵盖测试(使用 pytest-patterns)、部署(使用部署管道)或 FastAPI 框架机制,如中间件和 WebSocket(使用 fastapi-patterns)。

19安装·3热度·@hieutrtr

安装

$npx skills add https://github.com/hieutrtr/ai1-skills --skill python-backend-expert

SKILL.md

This allows services to raise domain exceptions without knowing about HTTP, and routes don't need try/except blocks.

If the email is duplicate, the service raises ConflictError, the global exception handler returns 409 Conflict. No try/except needed in the route.

See references/sqlalchemy-patterns.md for advanced query optimization patterns.

具有 SQLAlchemy 2.0、Pydantic v2 和异步模式的 FastAPI 应用程序的 Python 后端实现模式。在实现阶段创建或修改 FastAPI 端点、Pydantic 模型、SQLAlchemy 模型、服务层或存储库类时使用。涵盖异步会话管理、通过 Depends() 进行依赖注入、分层错误处理和 Alembic 迁移。不涵盖测试(使用 pytest-patterns)、部署(使用部署管道)或 FastAPI 框架机制,如中间件和 WebSocket(使用 fastapi-patterns)。 来源:hieutrtr/ai1-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/hieutrtr/ai1-skills --skill python-backend-expert
分类
</>开发工具
认证
收录时间
2026-02-05
更新时间
2026-02-18

快速解答

什么是 python-backend-expert?

具有 SQLAlchemy 2.0、Pydantic v2 和异步模式的 FastAPI 应用程序的 Python 后端实现模式。在实现阶段创建或修改 FastAPI 端点、Pydantic 模型、SQLAlchemy 模型、服务层或存储库类时使用。涵盖异步会话管理、通过 Depends() 进行依赖注入、分层错误处理和 Alembic 迁移。不涵盖测试(使用 pytest-patterns)、部署(使用部署管道)或 FastAPI 框架机制,如中间件和 WebSocket(使用 fastapi-patterns)。 来源:hieutrtr/ai1-skills。

如何安装 python-backend-expert?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/hieutrtr/ai1-skills --skill python-backend-expert 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/hieutrtr/ai1-skills