android-clean-architecture

Implement Clean Architecture patterns for Android and Kotlin Multiplatform projects.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/thangvawn/agent_financial --skill android-clean-architecture-thangvawn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-clean-architecture
Source: https://github.com/thangvawn/agent_financial/tree/main/.cursor/skills/android-clean-architecture
Command: npx skills add https://github.com/thangvawn/agent_financial --skill android-clean-architecture-thangvawn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires koin, hilt, room, sqldelight, ktor, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers implement a robust and maintainable architecture for Android and Kotlin Multiplatform projects by providing guidelines and patterns for structuring code, managing dependencies, and designing data flow.

Core Features & Use Cases

  • Module Structure: Defines a recommended directory layout and dependency rules for modular development.
  • UseCase and Repository Patterns: Provides guidance on implementing business logic and data access layers.
  • Data Layer Design: Covers data storage solutions like Room, SQLDelight, and Ktor.
  • Dependency Injection: Offers examples using Koin and Hilt for managing dependencies.
  • Error Handling: Explains how to handle errors using the Result/Try pattern.
  • Use Case: For a new Android project, use this Skill to set up a clean architecture foundation that can scale and adapt to future changes.

Quick Start

Use the android-clean-architecture skill to define the structure of your new Android project with Clean Architecture patterns.

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?

Structure an Android project using clean architecture by defining a modular directory layout with strict dependency rules. This Skill provides guidance on separating layers for scalable and maintainable code organization.

What is the best way to implement UseCase and Repository patterns in Kotlin?

The best way to implement UseCase and Repository patterns in Kotlin is by isolating business logic and data access layers. This Skill provides guidance on designing these patterns to ensure robust data flow.

Can I use Hilt and Koin for dependency injection in a Kotlin Multiplatform project?

Yes, you can use Hilt and Koin for dependency injection. This Skill offers examples for managing dependencies using both frameworks to establish a clean architecture foundation for Android and KMP projects.

How do I handle data layer design with Room and SQLDelight in Android?

Handle data layer design with Room and SQLDelight by following the provided guidelines for data storage solutions. This Skill covers integrating these local databases alongside Ktor for network data fetching.

Do I need to know Kotlin before implementing clean architecture in an Android app?

Yes, you need knowledge of Android development and Kotlin before implementing clean architecture. This Skill provides structural patterns and dependency management guidelines rather than teaching the underlying programming languages.

How does error handling work with the Result pattern in Android clean architecture?

Error handling with the Result pattern works by catching exceptions across architectural layers. This Skill explains how to implement the Result or Try pattern to manage errors safely within your data flow.