python-clean-architecture

Community

Practical Python clean-architecture guidance.

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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.