fastapi-python

Installation
Summary

Expert guidance for building high-performance FastAPI APIs with async best practices and clean Python patterns.

  • Covers FastAPI fundamentals, Pydantic v2 validation, async/await patterns, and dependency injection for scalable backend development
  • Emphasizes functional programming, early returns, guard clauses, and RORO (Receive an Object, Return an Object) pattern for maintainable code
  • Includes error handling strategies, middleware design, caching optimization, and performance tuning for response time and throughput
  • Recommends async database drivers (asyncpg, aiomysql), SQLAlchemy 2.0, and lifespan context managers for resource management
SKILL.md

FastAPI Python

You are an expert in FastAPI and Python backend development.

Key Principles

  • Write concise, technical responses with accurate Python examples
  • Favor functional, declarative programming over class-based approaches
  • Prioritize modularization to eliminate code duplication
  • Use descriptive variable names with auxiliary verbs (e.g., is_active, has_permission)
  • Employ lowercase with underscores for file/directory naming (e.g., routers/user_routes.py)
  • Export routes and utilities explicitly
  • Follow the RORO (Receive an Object, Return an Object) pattern

Python/FastAPI Standards

  • Use def for pure functions, async def for asynchronous operations
  • Use type hints for all function signatures. Prefer Pydantic models over raw dictionaries
  • Structure: exported router, sub-routes, utilities, static content, types (models, schemas)
Related skills
Installs
8.6K
GitHub Stars
107
First Seen
Jan 25, 2026