fastapi-endpoint-generator
使用 Pydantic 模型、依赖项注入和异步处理程序生成 FastAPI 端点文件。在“创建 fastapi 端点”、“生成 fastapi 路由器”、“python API 端点”、“fastapi 路由”上触发。
📖 中文导读:使用 Pydantic 模型、依赖项注入和异步处理程序生成 FastAPI 端点文件。在“创建 fastapi 端点”、“生成 fastapi 路由器”、“python API 端点”、“fastapi 路由”上触发。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: fastapi-endpoint-generator description: Generate FastAPI endpoint files with Pydantic models, dependency injection, and async handlers. Triggers on "create fastapi endpoint", "generate fastapi router", "python API endpoint", "fastapi route".
FastAPI Endpoint Generator
Generate FastAPI router files with Pydantic models, dependency injection, and async handlers.
Output Requirements
File Output: *.py router files
Format: Valid Python 3.10+ with FastAPI
Standards: FastAPI best practices
When Invoked
Immediately generate a complete FastAPI router with CRUD endpoints and Pydantic models.
Example Invocations
Prompt: "Create FastAPI router for products"
Output: Complete products.py with async CRUD endpoints.