compose-multiplatform-patterns

Provides reusable Compose Multiplatform UI patterns for Kotlin Multiplatform projects.

1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/aayushsoam/clawbot-plus --skill compose-multiplatform-patterns-aayushsoam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compose-multiplatform-patterns
Source: https://github.com/aayushsoam/clawbot-plus/tree/main/skills/compose-multiplatform-patterns
Command: npx skills add https://github.com/aayushsoam/clawbot-plus --skill compose-multiplatform-patterns-aayushsoam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compose Multiplatform Patterns addresses the challenge of building and maintaining cross-platform UI in Kotlin Multiplatform projects by providing reusable UI patterns and guidance.

Core Features & Use Cases

  • State management patterns for Compose Multiplatform (shared ViewModel, StateFlow)
  • Navigation and dialog patterns across Android, iOS, Desktop, and Web
  • Theming and design system guidance for consistent UX
  • Platform-specific UI integration and performance best practices Use cases include building a shared UI layer for a multiplatform app, accelerating feature delivery, and ensuring consistency across platforms.

Quick Start

Open the project and start integrating Compose Multiplatform patterns into your KMP UI module.

Frequently Asked Questions about compose-multiplatform-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I share state management and ViewModels across Android, iOS, Desktop, and Web in Kotlin Multiplatform?

Share state management in Kotlin Multiplatform by applying reusable Compose Multiplatform patterns for shared ViewModels and StateFlow. This approach ensures consistent state handling across Android, iOS, Desktop, and Web UI layers.

What is the best way to implement cross-platform navigation in a Compose Multiplatform project?

Implement cross-platform navigation using reusable Compose Multiplatform navigation and dialog patterns. These patterns provide consistent routing logic across Android, iOS, Desktop, and Web targets within KMP projects.

How do I build a consistent Material 3 theming system for a Kotlin Multiplatform UI?

Build a consistent Material 3 theming system in Kotlin Multiplatform using provided design system guidance and slot-based composables. This ensures unified UX theming across all target platforms.

Does this Compose Multiplatform patterns guidance support platform-specific UI integration?

Yes, Compose Multiplatform patterns include guidance for platform-specific UI integration alongside performance best practices. This allows tailored native implementations while maintaining a shared core UI layer.

Why use slot-based composables for cross-platform UI in Kotlin Multiplatform?

Use slot-based composables in Kotlin Multiplatform to create flexible and reusable UI components. This pattern standardizes UI structure and accelerates feature delivery across diverse platforms.

What are the performance best practices for Compose Multiplatform apps targeting multiple platforms?

Performance best practices for Compose Multiplatform involve optimizing shared state management, navigation, and slot-based composables. Following these patterns reduces recomposition overhead and ensures consistent UI responsiveness.