python-clean-architecture
CommunityPractical Python clean-architecture guidance.
Software Engineering#fastapi#python#protocol#design-patterns#clean-architecture#dependency-injection#three-layer
AuthorMKToronto
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provides practical guidance for applying Clean Architecture to Python and FastAPI projects, helping teams achieve clear separation of concerns, protocol-based DI, and scalable architecture decisions.
Core Features & Use Cases
- Scaffold new FastAPI projects with a strict three-layer structure (Routers → Operations → Database) and Protocol-based DI.
- Help refactor existing Python code to reduce coupling, increase cohesion, and promote testability.
- Support adding new components (endpoints, use cases, repositories, models) with consistent interfaces.
- Assist in code quality reviews, architecture decisions, and Pythonic pattern adoption (Protocol, Callable, DI, data-first design).
Quick Start
Scaffold a FastAPI project with a three-layer architecture and Protocol-based DI to begin practical development.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: python-clean-architecture Download link: https://github.com/MKToronto/python-clean-architecture-codex/archive/main.zip#python-clean-architecture Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.