android-clean-architecture

Structure Android and Kotlin Multiplatform projects with clean architecture patterns.

2|Updated May 11, 2026
One-click install
npx skills add https://github.com/himanshu231204/AI_Research_agent --skill android-clean-architecture-himanshu231204
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-clean-architecture
Source: https://github.com/himanshu231204/AI_Research_agent/tree/main/.opencode/skills/android-clean-architecture
Command: npx skills add https://github.com/himanshu231204/AI_Research_agent --skill android-clean-architecture-himanshu231204

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the common pain points of unmaintainable Android and Kotlin Multiplatform codebases caused by inconsistent project structure, poor separation of concerns, and tangled dependencies that lead to technical debt and difficult testing.

Core Features & Use Cases

  • Modular Project Structuring: Enforces clear, scalable module boundaries (domain, data, presentation, core) to separate business logic from platform and UI code.
  • Dependency Rule Enforcement: Prevents circular dependencies and keeps the domain layer pure, free of Android or KMP framework dependencies.
  • Cross-Platform Pattern Support: Includes implementation patterns for both native Android and Kotlin Multiplatform projects, with guidance for Room, SQLDelight, Ktor, Koin, and Hilt.
  • Use Case Example: A team building a cross-platform fitness tracking app can use this Skill to standardize module structure across iOS and Android, implement reusable UseCases for workout logic, and wire up dependency injection to reduce boilerplate and improve test coverage.

Quick Start

Use the android-clean-architecture skill to set up a new Kotlin Multiplatform project module structure with proper dependency rules and domain layer UseCases for your task management app.

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

Define clear module boundaries across domain, data, presentation, and core layers to separate business logic from platform and UI code. This enforces unidirectional dependency flow, keeping the domain layer pure and free of framework dependencies for maintainable codebases.

How do I enforce dependency rules to keep the domain layer pure in Android?

Prevent circular dependencies and ensure the domain layer contains no Android or Kotlin Multiplatform framework references. This maintains a pure domain layer, enabling highly testable, maintainable, and scalable mobile application code.

Can I use Koin or Hilt for dependency injection in a Kotlin Multiplatform clean architecture?

Yes, you can use Koin or Hilt for dependency injection setup in a clean architecture project. The Skill provides implementation patterns for both native Android and Kotlin Multiplatform environments to wire up dependencies and reduce boilerplate.

What is the best way to implement the repository pattern with Room and SQLDelight in Android?

Design a data layer with Room, SQLDelight, and Ktor, utilizing mappable data models to implement the repository pattern. This standardizes data access and separates data sources from the pure domain layer effectively.

How do I implement UseCases for reusable business logic in a cross-platform app?

Implement UseCases within the pure domain layer to encapsulate reusable business logic across iOS and Android. This standardizes task execution, reduces boilerplate, and significantly improves test coverage for cross-platform applications.