Backend Architecture Enforcer
Enforces FastAPI Clean Architecture by validating layer separation and dependency injection patterns in real-time.
This skill acts as a strict architectural guardian for FastAPI projects, ensuring codebases adhere to the router-service-repository pattern. It prevents common anti-patterns such as performing database operations in route handlers or raising HTTP exceptions within service layers. By enforcing strict file naming conventions and mandatory dependency injection using FastAPI's Depends() pattern, it helps developers maintain a highly testable, scalable, and modular backend structure while proactively catching async/sync mismatches.
주요 기능
01Mandatory FastAPI dependency injection validation to prevent direct instantiation
02Blocking validation for layer separation across routers, services, and repositories
03Automatic detection of sync-in-async blocking calls for performance optimization
04Strict file naming convention enforcement for consistent codebase organization
05Domain exception pattern enforcement to keep business logic HTTP-agnostic
0629 GitHub stars
사용 사례
01Refactoring legacy monolithic backend scripts into a modular, testable clean architecture
02Scaling large FastAPI codebases with multiple contributors while maintaining architectural integrity
03Onboarding developers to a project by automating the enforcement of architectural standards