android-clean-architecture

Defines modular Clean Architecture layers and dependency rules for Android and Kotlin Multiplatform projects.

2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill android-clean-architecture-multiplex-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-clean-architecture
Source: https://github.com/multiplex-ai/muggle-ai-teams/tree/main/skills/android-clean-architecture
Command: npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill android-clean-architecture-multiplex-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides teams to structure Android and Kotlin Multiplatform projects using Clean Architecture, preventing layer violations and enabling scalable, testable code.

Core Features & Use Cases

  • Clear module boundaries and dependency rules for Android and KMM projects
  • Domain-driven design patterns with UseCases, Repositories, and DataSources
  • DI-friendly architecture with options for Koin or Hilt and testable boundaries

Quick Start

Describe your Android project and I will generate a clean-architecture blueprint.

Frequently Asked Questions about android-clean-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure an Android project using clean architecture to prevent layer violations?

To structure an Android project with clean architecture, define modular layers with clear dependency rules to isolate the domain. This approach prevents layer violations by applying UseCase and Repository patterns, enabling scalable and testable code across your app.

What is the best way to set up module boundaries in a Kotlin Multiplatform app?

Setting up module boundaries in a Kotlin Multiplatform app involves defining explicit dependency constraints between layers. This isolates the domain logic and ensures testable boundaries, preventing architectural drift across shared KMM modules.

Does this clean architecture approach work with dependency injection frameworks like Hilt or Koin?

Yes, this clean architecture approach is DI-friendly and supports setups using either Hilt or Koin. It defines testable boundaries that integrate seamlessly with your chosen dependency injection framework across Android and KMM projects.

How do I apply UseCase and Repository patterns to separate my data layer in Android?

You apply UseCase and Repository patterns to separate the data layer by defining strict module boundaries and dependency rules. This domain-driven design isolates business logic from DataSources, ensuring your Android architecture remains testable and scalable.

When do I need clean architecture for my Android or Kotlin Multiplatform project?

You need clean architecture for Android or Kotlin Multiplatform projects when experiencing architectural drift or struggling with testability. It solves these issues by enforcing domain isolation, explicit dependency constraints, and modular design across your codebase.

Can I generate a clean architecture blueprint for an existing Android project?

Yes, you can generate a clean architecture blueprint for an existing Android project. By describing your project setup, the Skill scaffolds modular layers, UseCase and Repository patterns, and DI configurations to refactor and enforce clear boundaries.