fastapi-best-practices

Installation
SKILL.md

Use this skill when you are developing a FastAPI application and want to ensure that you are following best practices for project structure, code organization, and common patterns. This skill can help you create maintainable and scalable FastAPI projects by providing guidelines and recommendations.

Skill: FastAPI DDD & Hexagonal Architecture Standard Guide

이 가이드는 FastAPI 프레임워크 기반 프로젝트에서 도메인 주도 설계(DDD) 및 헥사고날 아키텍처(Hexagonal Architecture)를 일관성 있게 적용하기 위한 표준 가이드라인을 제공합니다.

0. 프로젝트 구조 (Standard Project Structure)

app/
├── main.py
├── settings.py                 # pydantic-settings 기반 환경 설정
├── libs/                       # [SHARED] 공통 의존성 (DI Container, Global Exceptions)
│   ├── containers.py           # Dependency Injection (dependency-injector) 설정
│   └── exceptions.py           # 전역 예외 및 에러 핸들러
└── routes/                     # [DOMAINS] 도메인 기반 API 라우트
    └── {domain_name}/          # 개별 도메인 단위 (예: users, orders, products)
        ├── interface/          # [IN] Entry Points (Controller, Request/Response Schema)
        │   ├── controller.py
Related skills

More from datamktkorea/agent-skills

Installs
3
First Seen
Feb 20, 2026