android-kotlin

Orchestrate Kotlin Android scaffolding with Compose UI, Hilt, Flow, and MockK.

Updated Mar 20, 2026
One-click install
npx skills add https://github.com/hightemp/offline_tube --skill android-kotlin-hightemp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-kotlin
Source: https://github.com/hightemp/offline_tube/tree/main/.agents/skills/android-kotlin
Command: npx skills add https://github.com/hightemp/offline_tube --skill android-kotlin-hightemp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Android Kotlin teams often struggle to align Compose UI, coroutine state management, and Hilt dependency injection into a cohesive workflow, which can lead to brittle ViewModels and unreliable tests.

Core Features & Use Cases

  • Project Blueprint: Outlines a layered architecture with domain models, repositories, use cases, Hilt modules, Compose feature screens, and navigation-aware ViewModels to standardize data flow.
  • Production Tooling: Details Kotlin DSL Gradle settings, Compose BOM, Detekt/Ktlint, Room persistence, remote services, and GitHub Actions to ensure consistent builds and verifiable releases.
  • Testing & State Handling: Describes StateFlow-backed ViewModels, sealed result wrappers, coroutine dispatcher injection, and MockK/Turbine tests for robust asynchronous UI updates.

Quick Start

Compose a screen that uses hiltViewModel to expose a StateFlow-backed UiState, collects it with collectAsStateWithLifecycle, and refreshes with a coroutine-aware action.

Frequently Asked Questions about android-kotlin

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

FAQPage Schema
How do I structure an Android Kotlin project with Jetpack Compose and Hilt?

Structure an Android Kotlin project by outlining a layered architecture with domain models, repositories, use cases, Hilt modules, Compose feature screens, and navigation-aware ViewModels to standardize data flow across your application.

How do I test StateFlow in ViewModels using coroutines and MockK?

Test StateFlow in ViewModels by using MockK for mocking dependencies and Turbine for testing asynchronous coroutine flows, ensuring robust UI updates through sealed result wrappers and coroutine dispatcher injection.

What's the best way to configure Gradle for an Android app using Compose BOM and Room?

Configure Gradle for an Android app by using Kotlin DSL settings to manage the Compose BOM, Room persistence, Hilt/KSP dependencies, and remote services, ensuring consistent and verifiable builds across your project.

How do I expose UI state in Compose using Hilt and StateFlow?

Expose UI state in Compose by using hiltViewModel to provide a StateFlow-backed UiState, collecting it with collectAsStateWithLifecycle, and refreshing data through a coroutine-aware action.

Can I integrate Detekt and Ktlint into GitHub Actions for Android Kotlin CI?

Yes, you can integrate Detekt and Ktlint into GitHub Actions to establish CI workflows that enforce consistent code quality and verifiable releases for your Android Kotlin application.

Why do ViewModels become brittle when combining Compose UI and coroutine state management?

ViewModels become brittle when Android Kotlin teams fail to align Compose UI, coroutine state management, and Hilt dependency injection into a cohesive workflow, which this project scaffolding approach resolves.