// Android Jetpack Compose .cursorrules
Add this skill
npx mdskills install PatrickJS/cursor-android-jetpack-composeSolid Compose architectural guidelines but lacks actionable instructions and trigger conditions
// 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 = `
Install via CLI
npx mdskills install PatrickJS/cursor-android-jetpack-composeAndroid Jetpack Compose is a free, open-source AI agent skill. // Android Jetpack Compose .cursorrules
Install Android Jetpack Compose with a single command:
npx mdskills install PatrickJS/cursor-android-jetpack-composeThis downloads the skill files into your project and your AI agent picks them up automatically.
Android Jetpack Compose works with Cursor. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.