Clean Architecture

Use when a feature in any codebase — mobile app (Flutter, Android, iOS, React Native, KMP), web frontend, backend service, desktop app — must be implemented, extended, or refactored with Clean Architecture (layers, use cases, repositories, gateways, Uncle Bob structure), or when the work spans delivery (screens or endpoints), business rules, and data (API, database, cache) together. Its symptoms count as the same need — business logic piling up in widgets, screens, components, view models, controllers, or route handlers; UI or endpoints calling HTTP clients, databases, or storage directly; API, ORM, or database models leaking across layers; a feature needing offline support or sync. The project's stack, packages, and conventions are detected first and always win over this skill's defaults.

MuhammadBahaa 5974423 8 files · 54.4 KB Updated

File contents

MuhammadBahaa/majarrah-marketplace/tree/main/plugins/code-craft/skills/clean-architecture commit 5974423403

Frequently asked questions

npx skillmds@latest add muhammadbahaa/clean-architecture