android-clean-architecture

Implement Clean Architecture patterns for Android and Kotlin Multiplatform projects.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/starrank-soft/PixelArraySkill --skill android-clean-architecture-starrank-soft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-clean-architecture
Source: https://github.com/starrank-soft/PixelArraySkill/tree/main/skills/android-clean-architecture
Command: npx skills add https://github.com/starrank-soft/PixelArraySkill --skill android-clean-architecture-starrank-soft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the complexity of maintaining scalable Android and Kotlin Multiplatform (KMP) projects by enforcing strict separation of concerns and preventing architectural drift.

Core Features & Use Cases

  • Modular Architecture: Provides a blueprint for organizing code into domain, data, and presentation layers to ensure maintainability.
  • Dependency Management: Implements clear dependency rules to keep the domain layer framework-agnostic and testable.
  • Use Case: Use this skill when setting up a new feature module to ensure that your UseCases, Repositories, and DataSources are correctly decoupled and follow reactive programming patterns.

Quick Start

Apply the android-clean-architecture patterns to structure my new feature module including the domain, data, and presentation layers.

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 Kotlin Multiplatform project using clean architecture?

Structure your Android KMP project using clean architecture by dividing code into domain, data, and presentation layers. This modularization enforces strict separation of concerns, preventing architectural drift and ensuring maintainable, framework-agnostic domain logic.

Does this clean architecture approach work with both Koin and Hilt for dependency injection?

Yes, this clean architecture approach works with both Koin and Hilt for dependency injection. It facilitates scalable dependency structures and clear dependency rules to keep your Android domain layer framework-agnostic and fully testable.

How do I keep my Android domain layer framework-agnostic and testable?

Keep your Android domain layer framework-agnostic by implementing clear dependency rules that isolate domain logic from external frameworks. This separation ensures robust error handling and makes your UseCases and Repositories fully testable.

When do I need to implement clean architecture patterns in my Android project?

You need to implement clean architecture patterns when maintaining scalable Android or KMP projects facing complexity and architectural drift. It provides a modular blueprint to organize code and enforce separation of concerns across layers.

What is the best way to decouple UseCases and Repositories in a Kotlin Multiplatform project?

The best way to decouple UseCases and Repositories in a KMP project is applying modular clean architecture patterns. This separates domain logic from data sources using reactive data flows and robust dependency injection structures.