What problem does it solve?
Architect fixes risky, “vibe-coded” Django/DRF projects by enforcing a safe, testable separation between models, services/selectors, and thin API views. It helps prevent fragile refactors where business logic is scattered across Model.save(), serializers, or views, making behavior unpredictable and hard to change.
Core Features & Use Cases
- Layered architecture blueprint: Defines a services/selectors pattern with required files for models, write operations, read-only queries, DRF API views, and URL routing.
- Phased refactoring guardrails: Guides a coding agent to reorganize code into the correct layer boundaries while preserving behavior, including explicit rules for error handling and security.
- Concrete anti-pattern detection: Flags critical issues like orchestration inside Model.save()/delete and raw ORM queries inside views, steering fixes toward services and selectors instead.
Use Case: You inherit a Django REST API where endpoints contain ORM logic, serializers trigger side effects, and domain rules are hidden in model methods; use this Skill to restructure into thin views, explicit services, and reusable selectors with consistent errors and permissions.
Quick Start
Provide your project’s Django entry points and run an agent plan that rewrites each app to match the required structure (models.py, services.py, selectors.py, apis.py, and urls.py) while moving business logic out of models/serializers and into services.