Borrowing it
Nothing to install: this file belongs to ahmed3elshaer/everything-claude-code-mobile. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ahmed3elshaer/everything-claude-code-mobile/main/.opencode/skills/kmp-navigation/SKILL.mdgit clone --depth 1 https://github.com/ahmed3elshaer/everything-claude-code-mobileWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ahmed3elshaer/everything-claude-code-mobile/kmp-navigation)<a href="https://agentmods.dev/skills/ahmed3elshaer/everything-claude-code-mobile/kmp-navigation"><img src="https://agentmods.dev/badge/skills/ahmed3elshaer/everything-claude-code-mobile/kmp-navigation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ahmed3elshaer/everything-claude-code-mobile/kmp-navigation"><img src="https://agentmods.dev/badge/skills/ahmed3elshaer/everything-claude-code-mobile/kmp-navigation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00026 | $0.01482 |
| Opus 5 | $0.00013 | $0.00741 |
| Sonnet 5 | $0.00005 | $0.00296 |
| Haiku 4.5 | $0.00003 | $0.00148 |
Grade A, and why
kmp-navigation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.
KMP Navigation
Cross-platform navigation strategies for Kotlin Multiplatform.
Navigation Options
1. Voyager (Recommended)
// build.gradle.kts
dependencies {
implementation("cafe.adriel.voyager:voyager-navigator:1.0.0")
implementation("cafe.adriel.voyager:voyager-screen-model:1.0.0")
}
// commonMain/kotlin/navigation/VoyagerNavigation.kt
@Serializable
data object HomeScreen : Screen
@Serializable
data class DetailScreen(val id: String) : Screen
@Composable
fun AppNavigation() {
Navigator(HomeScreen) { navigator ->
VoyagerNavigation(
navigator = navigator,
screenModels = { rememberScreenModel { AppScreenModel() } }
)
}
}
@Composable
fun HomeScreen() {
Screen { // Voyager's Screen composable
val navigator = LocalNavigator.currentOrThrow
Button(onClick = { navigator.push(DetailScreen("123")) }) {
Text("Go to Detail")
}
}
}
2. Decompose
// build.gradle.kts
dependencies {
implementation("com.arkivanov.decompose:decompose:2.1.0")
implementation("com.arkivanov.decompose:extensions-compose-jetpack:2.1.0")
}
// commonMain/kotlin/navigation/DecomposeNavigation.kt
sealed class Config : Parcelable {
@Parcelize
data object Home : Config()
@Parcelize
data class Detail(val id: String) : Config()
}
@Composable
fun AppNavigation() {
val navigator = rememberNavigator()
Decomanavigation(
navigator = navigator,
initialConfiguration = Config.Home
) {
when (val config = it.configuration) {
is Config.Home -> HomeScreen(
onNavigateToDetail = { navigator.push(Config.Detail(it)) }
)
is Config.Detail -> DetailScreen(
id = config.id,
onBack = { navigator.pop() }
)
}
}
}
3. Platform-Native Bridge
// commonMain/kotlin/navigation/Navigator.kt
sealed class Screen : Parcelable {
@Parcelize
data object Home : Screen()
@Parcelize
data class Detail(val id: String) : Screen()
}
interface Navigator {
val navigationStack: StateFlow<List<Screen>>
fun navigateTo(screen: Screen)
fun navigateBack()
}
expect class Navigator() : Navigator
// androidMain - Compose Navigation
actual class Navigator : Navigator {
private val _stack = MutableStateFlow(listOf(Screen.Home))
override val navigationStack: StateFlow<List<Screen>> = _stack.asStateFlow()
@Composable
fun SetupNavigation() {
val navController = rememberNavController()
NavHost(navController, startDestination = "home") {
composable("home") {
HomeScreen(
onNavigateToDetail = { navController.navigate("detail/$it") }
)
}
composable("detail/{id}") { backStackEntry ->
val id = backStackEntry.arguments?.getString("id") ?: ""
DetailScreen(id, onBack = { navController.popBackStack() })
}
}
}
}
// iosMain - SwiftUI Navigation wrapper
actual class Navigator : Navigator {
private val _stack = MutableStateFlow(listOf(Screen.Home))
override val navigationStack: StateFlow<List<Screen>> = _stack.asStateFlow()
fun toSwiftUI() -> some View {
// Bridge to SwiftUI NavigationStack
}
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 297 lines · 26 tokens per session scan A 94b22b0f4c09
kmp-navigation is a skill published in the GitHub repository ahmed3elshaer/everything-claude-code-mobile (66 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 1,482 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
compose-animations
Use when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one state, switching composable content, or choosing between AnimatedVisibility, animateAsState, rememberTransition, AnimatedContent, and Crossfade.
compose-focus-navigation
Use when writing or reviewing Jetpack Compose UI for TV, keyboard, desktop, accessibility focus, D-pad navigation, FocusRequester, focusProperties, key events, or initial focus behavior.
kmp-lsp
Kotlin/Java/Swift LSP server for code navigation in Android and iOS codebases. Use when navigating Kotlin, Java, or Swift source files: finding class definitions, listing symbols, jumping to implementations, finding all usages, checking type signatures, or switching workspace between projects. Triggers for: "find this…
compose-multiplatform
Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…
swift-kmp
KMP bridge standards for iOS. USE FOR: structuring a bridge layer between Kotlin Multiplatform (KMP) and Swift; integrating KMP iOS framework APIs in a Swift app (direct integration or SwiftPM); handling SKIE flows and sealed classes; mapping Kotlin models/errors to Swift domain types; keeping KMP imports confined to…
kotlin-control-flow
Use when writing or reviewing Kotlin branching and control flow: when expressions, guard conditions, sealed type exhaustiveness, smart casts, nullable branching, early returns, or replacing complex if/else chains.