Compose Multiplatform Patterns
Patterns for shared Compose UI covering state, navigation, theming, and recomposition performance.
- CCM score
- 73 of 100
- skills.sh installs
- 12.2K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers state management, type-safe navigation, slot-based composable design, and expect/actual platform UI across Android, iOS, Desktop, and Web
- Includes a ViewModel with a single immutable state object, a sealed event sink, and
@Serializableroute definitions for Compose Navigation 2.8+ - Enforces stateless composables,
@Immutablemodels, stable lazy-list keys, andderivedStateOfto limit unnecessary recomposition - Designed for KMP and Android projects building Compose or Jetpack Compose UI, state, navigation, or Material 3 theming
Install
$ npx -y skills add affaan-m/ecc --skill compose-multiplatform-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Compose Multiplatform Patterns
Patterns for building shared UI across Android, iOS, Desktop, and Web using Compose Multiplatform and Jetpack Compose. Covers state management, navigation, theming, and performance.
When to Activate
- Building Compose UI (Jetpack Compose or Compose Multiplatform)
- Managing UI state with ViewModels and Compose state
- Implementing navigation in KMP or Android projects
- Designing reusable composables and design systems
- Optimizing recomposition and rendering performance
State Management
ViewModel + Single State Object
Use a single data class for screen state. Expose it as StateFlow and collect in Compose:
data class ItemListState(
val items: List<Item> = emptyList(),
val isLoading: Boolean = false,
val error: String? = null,
val searchQuery: String = ""
)
class ItemListViewModel(
private val getItems: GetItemsUseCase
) : ViewModel() {
private val _state = MutableStateFlow(ItemListState())
val state: StateFlow<ItemListState> = _state.asStateFlow()
fun onSearch(query: String) {
_state.update { it.copy(searchQuery = query) }
loadItems(query)
}
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Mobile Apps, Frontend & UI Code
- First seen
- Jul 14, 2026
Questions
What is compose-multiplatform-patterns and what does it cover?
compose-multiplatform-patterns is an agent skill with patterns for building shared UI across Android, iOS, Desktop and Web using Compose Multiplatform and Jetpack Compose. It covers state management with ViewModels, type-safe navigation, theming, composable design and recomposition performance.
How do I install the compose-multiplatform-patterns skill?
Run npx -y skills add affaan-m/ecc --skill compose-multiplatform-patterns -y in your project. Once installed, the agent can help you write Compose UI, state handling, navigation and theming in a KMP project.
Where does compose-multiplatform-patterns rank in the Mobile Apps category?
compose-multiplatform-patterns is in the Mobile Apps category on Claude Marketplaces and ranks in the top 100 there. It focuses on Compose UI patterns for KMP projects, including platform-specific composables via expect and actual.
More from affaan-m/ecc
All 257- Continuous Agent Loop12.2K
- Content Hash Cache Pattern12.1K
- Kotlin Testing12.1K
- Ai Regression Testing12.1K
- Browser Qa12.1K
- Design System12.1K
- Jira Integration12K
- Investor Outreach12K
- Documentation Lookup12K
- Remotion Video Creation12K
- Swift Actor Persistence12K
- Swift Protocol Di Testing12K
- Blueprint12K
- Git Workflow11.9K
- Foundation Models On Device11.9K
- Exa Search11.9K
- Swift Concurrency 6 211.9K
- Nestjs Patterns11.9K
- Data Scraper Agent11.9K
- Hexagonal Architecture11.9K
- Mcp Server Patterns11.9K
- Plankton Code Quality11.9K
- Fal Ai Media11.8K
- Visa Doc Translate11.8K
Similar to Compose Multiplatform Patterns
More Mobile Appsmobile-android-designwshobson/agents27K installsPractical Material Design 3 and Jetpack Compose guidance for building adaptive, accessible native Android interfaces.
android-jetpack-compose-expertsickn33/agentic-awesome-skills163 installsExpert Compose guidance for state management, type-safe navigation, and recomposition performance on Android.
android-jetpack-composethebushidocollective/han2.3K installsGuidance for building declarative Android UIs with Jetpack Compose and state management.
compose-uinew-silvermoon/awesome-android-agent-skills796 installsBest practices for Jetpack Compose UI covering state hoisting, recomposition performance, and theming.
swiftui-patternsaffaan-m/ecc12.4K installsSwiftUI architecture patterns with @Observable state, type-safe navigation, and render performance guidance for Apple platforms.
compose-navigationnew-silvermoon/awesome-android-agent-skills436 installsNavigation 3 skill for Jetpack Compose covering state-driven back stacks, ViewModel scoping, and Navigation Compose migration.