AcademyRulesDevelopment

Android Jetpack Compose Cursor rules

Mobile development teams building Android apps in Kotlin who want consistent Compose code from Cursor.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/android-jetpack-compose-cursorrules-prompt-file.mdc -o .cursor/rules/android-jetpack-compose.mdc
android-jetpack-compose.mdc

Loading the file...

What it does

A Cursor rules file with best practices for Android apps built with Jetpack Compose. It covers Material Design 3, clean architecture layers, Kotlin coroutines and Flow, Hilt, ViewModel state and Compose navigation, and asks the AI to adapt to the structure you already have.

Use cases

  1. 01Generate a new screen with a ViewModel and UI state
  2. 02Keep data, domain and presentation layers separate
  3. 03Add dependency injection with Hilt to a feature

Questions about
Android Jetpack Compose Cursor rules.

What is Android Jetpack Compose Cursor rules used for?

Mobile development teams building Android apps in Kotlin who want consistent Compose code from Cursor. A Cursor rules file with best practices for Android apps built with Jetpack Compose. It covers Material Design 3, clean architecture layers, Kotlin coroutines and Flow, Hilt, ViewModel state and Compose navigation, and asks the AI to adapt to the structure you already have.

How do I install Android Jetpack Compose Cursor rules?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/android-jetpack-compose-cursorrules-prompt-file.mdc -o .cursor/rules/android-jetpack-compose.mdc

Is Android Jetpack Compose Cursor rules open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is Android Jetpack Compose Cursor rules safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.