python-backend-expert
✓具有 SQLAlchemy 2.0、Pydantic v2 和異步模式的 FastAPI 應用程序的 Python 後端實現模式。在實現階段創建或修改 FastAPI 端點、Pydantic 模型、SQLAlchemy 模型、服務層或存儲庫類時使用。涵蓋異步會話管理、通過 Depends() 進行依賴注入、分層錯誤處理和 Alembic 遷移。不涵蓋測試(使用 pytest-patterns)、部署(使用部署管道)或 FastAPI 框架機制,如中間件和 WebSocket(使用 fastapi-patterns)。
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
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-05