SKILL

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

Target: Cloud, operations & security. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • FastAPI Patterns
  • When to Use
  • How It Works
  • Project Layout
  • Application Factory
  • Pydantic Schemas
  • Dependencies
  • Async Endpoints

Production-oriented patterns for FastAPI services. Building or reviewing a FastAPI app. Splitting routers, schemas, dependencies, and database access. Writing async endpoints that call a database or external service. Adding authentication, authorization, OpenAPI docs, tests, or deployment settings. Checking a FastAPI PR for copy-pasteable examples and production risks. Treat the FastAPI app as a thin HTTP layer over explicit dependencies and service code: main.py owns app construction, middleware, exception handlers, and router registration. schemas/ owns Pydantic request and response models. dependencies.py owns database, auth, pagination, and request-scoped dependencies. services/ or crud/ owns business and persistence operations. tests/ overrides dependencies instead of opening production resources. Prefer small routers and explicit responsemodel declarations. Keep raw ORM objects, secrets, and framework globals out of response schemas. Use a factory so tests and workers can build the app with controlled settings. Do not use alloworigins=[""] with allowcredentials=True; browsers reject that combination and Starlette disallows it for credentialed requests. Keep request, update, a

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
affaan-m/ECC
Source file
.kiro/skills/fastapi-patterns/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:48.593Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.