beta

Kotlin Android AGENTS.md

Rules

Agent context for Kotlin Android projects with Jetpack Compose and Coroutines.

1603/26/2026
markdown1 file
AGENTS.md693 B

AGENTS.md

Language & Runtime

  • Kotlin 2.0+
  • Android SDK 35 (min SDK 26)
  • Jetpack Compose for UI

Build

./gradlew assembleDebug    # build debug
./gradlew test             # unit tests
./gradlew connectedTest    # instrumented tests

Architecture

  • MVVM with ViewModel + StateFlow
  • Repository pattern for data layer
  • Hilt for dependency injection
  • Room for local database

Conventions

  • Kotlin coroutines for async (no RxJava)
  • Compose for all new UI (no XML layouts)
  • Material 3 design system
  • Sealed classes for UI state
  • Data classes for models

Testing

  • JUnit 5 + Turbine for Flow testing
  • MockK for mocking
  • Compose UI testing with ComposeTestRule