Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Cursor rules for Android development with Jetpack Compose integration.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-15 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 3% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 25% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 25% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 11% | 0% |
Cursor rules for Android development with Jetpack Compose integration.
Synced from https://github.com/PatrickJS/awesome-cursorrules/tree/main/rules/android-jetpack-compose-cursorrules-prompt-file.mdc.
// Android Jetpack Compose .cursorrules
// Flexibility Notice
// Note: This is a recommended project structure, but be flexible and adapt to existing project structures. // Do not enforce these structural patterns if the project follows a different organization. // Focus on maintaining consistency with the existing project architecture while applying Jetpack Compose best practices.
// Project Architecture and Best Practices
const androidJetpackComposeBestPractices = "Adapt to existing project architecture while maintaining clean code principles", "Follow Material Design 3 guidelines and components", "Implement clean architecture with domain, data, and presentation layers", "Use Kotlin coroutines and Flow for asynchronous operations", "Implement dependency injection using Hilt", "Follow unidirectional data flow with ViewModel and UI State", "Use Compose navigation for screen management", "Implement proper state hoisting and composition", ];
// Folder Structure
// Note: This is a reference structure. Adapt to the project's existing organization
const projectStructure = app/ src/ main/ java/com/package/ data/ repository/ datasource/ models/ domain/ usecases/ models/ repository/ presentation/ screens/ components/ theme/ viewmodels/ di/ utils/ res/ values/ drawable/ mipmap/ test/ androidTest/ ;
// Compose UI Guidelines
const composeGuidelines =
;
// Testing Guidelines
const testingGuidelines =
;
// Performance Guidelines
const performanceGuidelines =
;
Other measured skills in the registry, with their headline benchmark lift.