一键导入
fastapi-validate
Scan a FastAPI project for Pydantic v1 leftovers, async anti-patterns, missing response models, database session issues, and security gaps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scan a FastAPI project for Pydantic v1 leftovers, async anti-patterns, missing response models, database session issues, and security gaps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a complete FastAPI CRUD endpoint with Pydantic v2 schemas, async SQLAlchemy queries, dependency injection, response models, and error handling.
Generate a SQLAlchemy model with matching Pydantic v2 schemas for FastAPI. Includes relationships, indexes, and the correct from_attributes configuration.
Set up pydantic-settings configuration for a FastAPI project with environment variables, .env file support, and dependency injection.
| name | fastapi-validate |
| description | Scan a FastAPI project for Pydantic v1 leftovers, async anti-patterns, missing response models, database session issues, and security gaps. |
Use this skill when auditing a FastAPI project for quality, performance, or security issues.
Check for Pydantic v1 patterns:
.dict(), .json(), .parse_obj(), .parse_raw(), .__fields__@validator, @root_validatorclass Config: with orm_modeconint, constr, confloat constrained typesfrom pydantic import BaseSettings (moved to pydantic-settings)Check for async anti-patterns:
requests.* in async def endpointstime.sleep() in async def endpointsopen() file I/O in async def endpointsawait on async callsrun_in_executorCheck for missing response models:
response_model parameterCheck for database issues:
expire_on_commit=False on async sessionspool_pre_ping=True on engineCheck for security issues:
allow_origins=["*"] in productionException caught and details exposed to clientCheck for deprecated patterns:
@app.on_event("startup"/"shutdown") (use lifespan)Depends() instead of AnnotatedProduce a summary report with issue count, severity, file locations, and fixes.