·fastapi
{}

fastapi

jezweb/claude-skills

使用 FastAPI、Pydantic v2 和 SQLAlchemy 2.0 異步構建 Python API。涵蓋項目結構、JWT 身份驗證、驗證以及與 uv 包管理器的數據庫集成。防止 7 個記錄錯誤。 使用場合:創建 Python API、實施 JWT 身份驗證或對 422 驗證、CORS、異步阻塞、表單數據、後台任務或 OpenAPI 架構錯誤進行故障排除。

1.6K安裝·203熱度·@jezweb

安裝

$npx skills add https://github.com/jezweb/claude-skills --skill fastapi

SKILL.md

Production-tested patterns for FastAPI with Pydantic v2, SQLAlchemy 2.0 async, and JWT authentication.

This skill prevents 7 documented issues from official FastAPI GitHub and release notes.

Error: model.modelfieldsset includes default values when using Form() Source: GitHub Issue #13399 Why It Happens: Form data parsing preloads default values and passes them to the validator, making it impossible to distinguish between fields explicitly set by the user and fields using defaults. This bug ONLY affects Form data, not JSON body data.

使用 FastAPI、Pydantic v2 和 SQLAlchemy 2.0 異步構建 Python API。涵蓋項目結構、JWT 身份驗證、驗證以及與 uv 包管理器的數據庫集成。防止 7 個記錄錯誤。 使用場合:創建 Python API、實施 JWT 身份驗證或對 422 驗證、CORS、異步阻塞、表單數據、後台任務或 OpenAPI 架構錯誤進行故障排除。 來源:jezweb/claude-skills。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/jezweb/claude-skills --skill fastapi
分類
{}資料分析
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 fastapi?

使用 FastAPI、Pydantic v2 和 SQLAlchemy 2.0 異步構建 Python API。涵蓋項目結構、JWT 身份驗證、驗證以及與 uv 包管理器的數據庫集成。防止 7 個記錄錯誤。 使用場合:創建 Python API、實施 JWT 身份驗證或對 422 驗證、CORS、異步阻塞、表單數據、後台任務或 OpenAPI 架構錯誤進行故障排除。 來源:jezweb/claude-skills。

如何安裝 fastapi?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/jezweb/claude-skills --skill fastapi 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/jezweb/claude-skills