一键导入
fastapi-api-patterns
Apply typed FastAPI route patterns with clean dependency boundaries, stable error mapping, and test coverage for success/failure paths.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply typed FastAPI route patterns with clean dependency boundaries, stable error mapping, and test coverage for success/failure paths.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run and triage Python quality gates with minimal, root-cause fixes; use when validating feature work before completion.
Apply project testing standards for app/tests layout, naming, dependency overrides, and route/service coverage.
Author review-ready implementation plans grounded in real code, with a hard single-PR size gate and decomposition into safe incremental tasks when exceeded.
Apply partitioned settings and singleton provider patterns; use when adding or refactoring settings and provider wiring.
Operate Backlog.md tasks through the backlog CLI only; use when reading, planning, executing, or finalizing any task under backlog/tasks.
Apply pluggy registration and lifespan startup patterns for package discovery, initialization ordering, and testable startup behavior.
| name | fastapi-api-patterns |
| description | Apply typed FastAPI route patterns with clean dependency boundaries, stable error mapping, and test coverage for success/failure paths. |
Use this skill when implementing or reviewing API endpoints.
OperationResult objects from HTTP handlers.request.app.state inside handlers when a dependency can be injected.allow_origins on ENVIRONMENT/PREFIX) - use an explicit, settings-driven allow-list instead.CORSMiddleware with any of allow_origins, allow_methods, or allow_headers set to ["*"] while allow_credentials=True - browsers and Starlette both reject/forbid this combination; all three must be explicit lists when credentials are enabled.