python-fastapi

Generates modular FastAPI/SQLAlchemy/Alembic project skeletons with automated tests using uv.

Updated Dec 22, 2025
One-click install
npx skills add https://github.com/0xkynz/codekit --skill python-fastapi-0xkynz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-fastapi
Source: https://github.com/0xkynz/codekit/tree/main/templates/skills/python-fastapi
Command: npx skills add https://github.com/0xkynz/codekit --skill python-fastapi-0xkynz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python teams building APIs face challenges in achieving scalable, maintainable architectures with consistent tooling and deployment patterns.

Core Features & Use Cases

  • Modular project structure organized by domain with an async FastAPI app and SQLAlchemy ORM integration.
  • End-to-end setup including migrations (Alembic), configuration management, testing, and CI-ready patterns.
  • Use Case: Create a production-grade API for a microservice with domain-driven design, automatic migrations, and test coverage.

Quick Start

Create a new modular FastAPI project skeleton using uv, SQLAlchemy, and Alembic following the described architecture.

Frequently Asked Questions about python-fastapi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a production-ready FastAPI project with SQLAlchemy?

A production-ready FastAPI project uses a domain-driven modular layout with async SQLAlchemy ORM, Pydantic models, and Alembic migrations. This structure organizes features by domain to ensure scalability and maintainability for API development.

What is domain-driven design in FastAPI and when do I need it?

Domain-driven design in FastAPI organizes project modules by business domain rather than technical function. You need it when building scalable microservices or APIs to maintain team velocity and keep code modular.

Do I need uv to manage a Python FastAPI application?

Yes, this FastAPI architecture requires uv as the project manager. It handles dependencies and environment setup for Python 3.12+ applications using async SQLAlchemy and Alembic.

How do I set up Alembic migrations with async SQLAlchemy in FastAPI?

Setting up Alembic migrations with async SQLAlchemy involves configuring the migration environment to recognize async database engines. This enables automatic schema migrations within a modular FastAPI project.

Can I use this FastAPI architecture for a microservice with automated tests?

Yes, this architecture is designed for microservices with domain-driven design, automatic Alembic migrations, and automated test coverage. It provides CI-ready patterns for production-grade APIs.

What's the best way to configure a modular FastAPI app?

The best way to configure a modular FastAPI app is through centralized configuration management integrated with Pydantic models. This ensures environment variables and settings are validated across domain modules.