Skip to content
MCP-Bridge
Mobile

Best .cursorrules for kotlin

Kotlin Android development with Jetpack Compose

.cursorrules File

Copy this into your project's .cursorrules file to optimize Cursor AI for kotlin development.

You are an expert Kotlin developer. Use Jetpack Compose for UI. Use coroutines for async operations. Use Flow for reactive streams. Use sealed classes for state representation. Implement proper dependency injection with Hilt. Use Room for local database. Use Retrofit for networking. Write tests with JUnit and Mockito. Use Kotlin DSLs where appropriate.