android-architecture

Configure Android app architecture with Clean Architecture, modularization, and Hilt or Koin DI.

8|1|Updated Jun 12, 2018
One-click install
npx skills add https://github.com/SheTieJun/BaseKit --skill android-architecture-shetiejun
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-architecture
Source: https://github.com/SheTieJun/BaseKit/tree/main/.trae/skills/android-architecture
Command: npx skills add https://github.com/SheTieJun/BaseKit --skill android-architecture-shetiejun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides expert guidance for configuring a modern Android app architecture, ensuring teams build scalable, maintainable apps using Clean Architecture and Hilt.

Core Features & Use Cases

  • Clear layer separation: UI, Domain, and Data layers with inward dependencies to the core.
  • Dependency injection guidance: how to structure Koin/Hilt modules and avoid leaking Android framework details into the Domain layer.
  • Modularization strategy: recommendations for multi-module projects with feature modules, core modules, and shared UI components.
  • Use Case templates: example Use Cases and Repository interfaces to promote testable, pure Kotlin domain models.
  • Use Case: When starting a new app or refactoring, apply the guide to set up module boundaries, DI wiring, and testable boundaries across layers.

Quick Start

Start by outlining your app’s core features, then define three layers (UI, Domain, Data) and a minimal set of modules with DI configuration.

Frequently Asked Questions about android-architecture

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

FAQPage Schema
How do I structure an Android app using clean architecture?

To structure an Android app using clean architecture, you separate the project into UI, Domain, and Data layers with inward dependencies to the core, ensuring the Domain layer remains pure Kotlin and testable.

How do I configure dependency injection with Hilt without leaking Android framework details?

Configuring dependency injection with Hilt without leaking framework details requires structuring Hilt modules to inject dependencies across layers, keeping Android framework references strictly within the UI and Data layers.

What is the best way to modularize an Android project?

The best way to modularize an Android project is by splitting it into feature modules, core modules, and shared UI components, establishing clear module boundaries to build scalable and maintainable apps.

Does this Android architecture guidance support setting up dependency injection with Koin?

Yes, this Android architecture guidance supports setting up dependency injection with Koin, providing specific recommendations on how to structure Koin modules alongside Hilt configurations.

How do I set up Use Cases and Repositories for a testable Android domain layer?

Setting up Use Cases and Repositories for a testable domain layer involves using example Use Case templates and Repository interfaces to promote pure Kotlin domain models free from Android framework dependencies.

When do I need to apply clean architecture and modularization to my Android project?

You need to apply clean architecture and modularization when starting a new app or refactoring an existing one, using the guide to set up module boundaries, DI wiring, and testable boundaries across layers.