一键导入
type-model-boundaries
Choose correct Python type boundaries (Protocol, dataclass, BaseModel, TypedDict) for maintainable FastAPI architecture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Choose correct Python type boundaries (Protocol, dataclass, BaseModel, TypedDict) for maintainable FastAPI architecture.
用 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.
Apply typed FastAPI route patterns with clean dependency boundaries, stable error mapping, and test coverage for success/failure paths.
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.
| name | type-model-boundaries |
| description | Choose correct Python type boundaries (Protocol, dataclass, BaseModel, TypedDict) for maintainable FastAPI architecture. |
Use this skill when introducing or refactoring interfaces, domain types, and transport models.
Protocol: behavior contracts between services/adapters.@dataclass(frozen=True): canonical internal entities/value objects.BaseModel: untrusted I/O boundaries and OpenAPI-facing models.TypedDict: dictionary semantics that must remain dict-shaped.Protocol with concrete OperationResult[T] generics).OperationResult vs OperationResult[T]) to prevent runtime unpacking mismatches.