kotlin-patterns
Coroutine patterns, Flow operators, Jetpack Compose state management, Ktor routing, and Kotlin Multiplatform shared code.
Profile →npx skills add vibeeval/vibecosystem --skill kotlin-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Kotlin Patterns Modern Kotlin patterns for Android, server-side, and multiplatform development. ## Coroutine Patterns ```kotlin import kotlinx.coroutines.* // Structured concurrency: child failures cancel siblings suspend fun loadDashboard(): Dashboard = coroutineScope { val profile = async { api.fetchProfile() } val orders = async { api.fetchRecentOrders() } val stats = async { api.fetchStats() } // All run concurrently; if one fails, others are cancelled Dashboard( profile = profile.await(), orders = orders.await(), stats = stats.await() ) } // SupervisorScope: child failures don't cancel siblings suspend fun loadOptionalData(): HomeScreen = supervisorScope { val required = async { api.fetchRequiredData() } val optional = async { try { api.fetchRecommendations() } catch (e: Exception) { emptyList() } // Graceful fallback } HomeScreen( data = required.await(), recommendations = optional.await() ) } // Retry with exponential backoff suspend fun <T> retryWithBackoff( maxRetries: Int = 3, initialDelayMs: Long = 1000, factor: Double = 2.0, block: suspend () -> T ): T { var currentDelay = initialDelayMs repeat(maxRetries - 1) { attempt -> try { return block() } catch (e: Exception) {
- Coroutine Patterns
- Flow Operators
- Jetpack Compose State
- Ktor Server Routing
- Kotlin Multiplatform Shared Code
- Checklist
- Anti-Patterns
What does the kotlin-patterns skill do?
Coroutine patterns, Flow operators, Jetpack Compose state management, Ktor routing, and Kotlin Multiplatform shared code.
How do I install it?
Run `npx skills add vibeeval/vibecosystem --skill kotlin-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From vibeeval/vibecosystem, a repository with 521 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.