django-architecture-enforcer
CommunityEnforce clean Django service layer architecture.
Software Engineering#code quality#architecture#refactoring#dependency injection#service layer#Django#DRF
AuthorMaciWP
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automatically enforces a clean service layer architecture in Django/DRF applications, preventing business logic from cluttering views and serializers, leading to more maintainable, testable, and scalable code.
Core Features & Use Cases
- Three-Layer Architecture: Guides and enforces strict separation between Views (HTTP), Services (Business Logic), and Models (Data).
- Violation Detection: Automatically identifies critical anti-patterns like ORM calls or email sending in views, and missing dependency injection in services.
- Use Case: Refactor a monolithic Django ViewSet that currently performs ORM operations and sends emails directly, moving all business logic to a new service layer with dependency injection and proper type hints.
Quick Start
Refactor a Django ViewSet that currently performs ORM operations and sends emails directly, moving all business logic to a new service layer with dependency injection.
Dependency Matrix
Required Modules
DjangoDjango REST Framework
Components
scriptsreferences
💻 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: django-architecture-enforcer Download link: https://github.com/MaciWP/CV_Astro/archive/main.zip#django-architecture-enforcer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.