An agent skill to help you write smarter, simpler, and more modern Jetpack Compose code, including guidance on API usage, design, performance, and accessibility.
The skill brings years of knowledge and practical experience into your coding agent of choice in just a few minutes. It uses the Agent Skills format, so it will work smoothly with Claude Code, Codex, Gemini, Cursor, and more.
You can install this skill into Claude, Codex, Gemini, Cursor, and more by using npx:
npx skills add https://github.com/BreakZero/Compose-Agent-Skill --skill compose-proIf you get the error npx: command not found, it means you don't currently have Node installed. You need to run this command to install Node:
# macOS
brew install node
# Windows
choco install nodejs
# Linux (Ubuntu/Debian)
sudo apt install nodejs npmWhen using npx, you can select exactly which agents you want to use during the installation. You can also select whether the skill should be installed just for one project, or whether it should be made available for all your projects.
Alternatively, you can clone this whole repository and install it however you want.
The skill is called Compose Pro, and can be triggered in various ways. For example, in Claude Code you would use this:
/compose-pro
- Material 3 vs Material 2 guidance
- Modern Modifier APIs
- State APIs (remember, rememberSaveable, collectAsStateWithLifecycle)
- Animation APIs
- Window Insets handling
- Deprecated patterns to avoid
- Composable structure and organization
- Slot APIs for reusable components
- Preview best practices
- Recomposition optimization
- Animation patterns
- Lazy lists optimization
- ViewModel and state holder patterns
- StateFlow vs LiveData
- Remember APIs
- Derived state
- Snapshot state APIs
- State hoisting
- CompositionLocal usage
- Navigation Compose setup
- Type-safe navigation with Kotlin Serialization
- Deep links
- Bottom navigation
- Dialogs and bottom sheets
- Result handling
- Material 3 design system
- Color usage and theming
- Elevation and shadows
- Spacing and layout
- Shape system
- Responsive design
- Dark theme support
- TalkBack support
- Semantic properties
- Touch targets
- Font scaling
- Color contrast
- Reduce motion
- Keyboard navigation
- Recomposition optimization
- Stability annotations
- Lazy lists performance
- Modifier order
- Graphics performance
- Image loading
- State read optimization
- Baseline profiles
- Modern Kotlin features
- Null safety
- Coroutines and Flow
- Data classes
- Sealed classes
- Extension functions
- Scope functions
- Collection operations
- Project structure
- Naming conventions
- Documentation
- Secrets management
- Static analysis (Detekt, KtLint)
- Testing strategies
- CI/CD best practices
compose-pro/
├── SKILL.md # Main skill definition
├── agents/
│ └── openai.yaml # Agent configuration
├── references/
│ ├── api.md # API best practices
│ ├── components.md # Component patterns
│ ├── state.md # State management
│ ├── navigation.md # Navigation patterns
│ ├── design.md # Design guidelines
│ ├── accessibility.md # Accessibility
│ ├── performance.md # Performance optimization
│ ├── kotlin.md # Kotlin best practices
│ └── hygiene.md # Code hygiene
└── assets/ # Icons and images
- Inspired by SwiftUI Agent Skill by Paul Hudson
- Thanks to the Jetpack Compose team at Google
- Thanks to the Android developer community