Install any skill in seconds. Free to start, no credit card required.
Get Started Free →vibeeval/kotlin-patterns
Coroutine patterns, Flow operators, Jetpack Compose state management, Ktor routing, and Kotlin Multiplatform shared code.
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
2 fixed18 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
I need a Kotlin repository function that accepts a flow of search query text and outputs a flow of product search results. Please provide the repository method using Flow operators to handle live search input efficiently (filtering out rapid keystrokes and overly brief queries) and gracefully handling backend network failures.
| Checked | Without skill | With skill |
|---|---|---|
| uses debounce to delay emissions from rapid query text changes | Passed | Passed |
| uses flatMapLatest to switch to the latest search query coroutine | Passed | Passed |
| catches exceptions in inner flow without swallowing coroutine cancellation | Missed | Passed |
The instructions your model reads when the skill loads.
Modern Kotlin patterns for Android, server-side, and multiplatform development.
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,
test cases passed, vs 18 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.