Android Core Architecture

0•

Enforces essential Android architectural rules, state management, threading, and platform best practices for robust mobile applications.

Provides platform-agnostic architecture principles and strict operational rules for Android development regardless of whether you use Kotlin, Java, Jetpack Compose, or XML. It guides AI coding agents to maintain clean unidirectional dependencies (UI → domain → data), safeguard against process death with SavedStateHandle, ensure background durability with WorkManager, and eliminate main-thread bottlenecks that cause ANRs. Use this skill when structuring new features, managing complex lifecycles, or auditing Android code for edge-case platform defects.

Key Features

01Protects against process death and memory reclaim using proper SavedStateHandle patterns
02Enforces clean unidirectional architectural boundaries (UI → domain → data) with strict layer isolation
03Eliminates ANRs by keeping disk I/O, network calls, decoding, and cryptography off the main thread
040 GitHub stars
05Ensures durable background execution using WorkManager instead of fragile in-memory scopes
06Hardens app security through explicit component export declarations and log sanitization

Use Cases

01Architecting scalable, modular Android apps across modern and legacy UI toolkits
02Auditing Android codebases for main-thread blocking operations, security vulnerabilities, and accessibility defects
03Fixing lifecycle bugs, state loss during background process death, and screen rotation issues