android-kmp-shared

android-kmp-shared is a skill for Claude Code, Codex from prasad-vennam/Awesome-Android-AI-Agent-Skills. It costs 32 tokens per session (801 once invoked), scanned A, original, MIT.

Guidance for Kotlin Multiplatform, which lets Android and iOS apps share Kotlin code while keeping platform-specific code where needed. It covers shared business logic, networking, databases, and dependency setup.

In plain words
What is it for?
Use it to share view models, use cases, data models, authentication, calculations, network access, or database logic between Android and iOS. It covers the shared, Android-specific, and iOS-specific source sets and tools such as Ktor, SQLDelight, and Koin.
Why use it?
Maintaining the same rules separately in Android and iOS apps can lead to duplicated work and inconsistent behavior. A shared module keeps common logic in one place while each platform supplies its own implementation when necessary.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to share view models, use cases, data models, authentication, calculations, network access, or database logic between Android and iOS. It covers the shared, Android-specific, and iOS-specific source sets and tools such as Ktor, SQLDelight, and Koin.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prasad-vennam/awesome-android-ai-agent-skills/android-kmp-shared
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add prasad-vennam/Awesome-Android-AI-Agent-Skills --skill android-kmp-shared
Clone the repo
git clone --depth 1 https://github.com/prasad-vennam/Awesome-Android-AI-Agent-Skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for android-kmp-shared

README.md
[![agentmods](https://agentmods.dev/badge/skills/prasad-vennam/awesome-android-ai-agent-skills/android-kmp-shared/github.svg)](https://agentmods.dev/skills/prasad-vennam/awesome-android-ai-agent-skills/android-kmp-shared)
Your own site
<a href="https://agentmods.dev/skills/prasad-vennam/awesome-android-ai-agent-skills/android-kmp-shared"><img src="https://agentmods.dev/badge/skills/prasad-vennam/awesome-android-ai-agent-skills/android-kmp-shared/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.

agentmods 80×15 button for android-kmp-shared

Your own site · 80×15
<a href="https://agentmods.dev/skills/prasad-vennam/awesome-android-ai-agent-skills/android-kmp-shared"><img src="https://agentmods.dev/badge/skills/prasad-vennam/awesome-android-ai-agent-skills/android-kmp-shared.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 801 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00801
Opus 5.5 $0.00013 $0.00320
Sonnet 5.5 $0.00006 $0.00160
Haiku 4.5 $0.00003 $0.00080

Measured 2mo ago against content hash 97170bc15242, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

android-kmp-shared 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 2mo 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.

skills/android-kmp-shared/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Android Kotlin Multiplatform (KMP) 🌍🤝

Professional patterns for sharing code between Android and iOS using the next-generation Kotlin Multiplatform technology.

⚡ When to Use

  • Shared Business Logic: Centralizing ViewModels, Use Cases, and Domain Models.
  • Data Layer Sharing: Using Ktor (Network) and SQLDelight (Database) across platforms.
  • Modularization: Creating a cross-platform library module.
  • Migration: Moving from 100% native to shared logic.
  • Validation: Building one logic for both apps (e.g., Auth, Calculations).

🏗️ The Multiplatform Architecture

  • commonMain: The heart of the app. Pure Kotlin code shared by all platforms.
  • androidMain: Platform-specific implementation for Android.
  • iosMain: Platform-specific implementation for iOS (via Kotlin/Native).

🛠️ Essential Shared Tools

1. Ktor (Networking)

  • Benefit: Async, multiplatform HTTP client.
  • Use ContentNegotiation and Serialization for shared DTOs.

2. SQLDelight (Local Persistence)

  • Benefit: Type-safe SQL queries that generate Kotlin code.
  • Shared schema, platform-specific drivers (SQLite for Android, Native for iOS).

3. Koin (Dependency Injection)

  • Benefit: Simple and lightweight DI that works across commonMain.

4. kotlinx-datetime

  • Use for consistent date/time logic without platform-specific issues (java.time vs NSDate).

🚀 The expect / actual Pattern

  • Use for platform-specific APIs when no shared library exists.
  • Rule: Avoid expect/actual if a shared library is available.
  • Bad: expect fun getPlatformName(): String
  • Good: Use interfaces and DI to provide platform-specific implementations.

🏁 Shared Logic Workflow

  • ViewModel Sharing: Use multiplatform-viewmodel library for consistent lifecycle mapping.
  • State Management: Use StateFlow in commonMain to expose UI state.
  • iOS Interoperability: Be aware of Swift/Kotlin memory management and @ObjCName for clean iOS APIs.

Read the full file on GitHub · 90 lines

Changes

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.

  1. 2mo ago First seen · 90 lines · 32 tokens per session scan A 97170bc15242

Subscribe to this mod's changes

android-kmp-shared is a skill published in the GitHub repository prasad-vennam/Awesome-Android-AI-Agent-Skills (11 stars, last pushed 7mo ago), licensed MIT. It adds 32 tokens to every session and 801 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

android-kmp-shared compared with skills from other repositories

android-kmp-shared next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
android-kmp-sharedprasad-vennam/Awesome-Android-AI-Agent-SkillsSkill117mo agoMITA32Claude Code, Codex
wear-compose-m3android/skillsSkill10kyesterdayApache-2.0A91Claude Code
ink-custom-brush-builderandroid/skillsSkill10kyesterdayApache-2.0A159Claude Code
kotlin-specialistJeffallan/claude-skillsSkill12k7d agoMITA86Claude Code
swiftui-devOrkas-AI/OrkasSkill9.0kyesterdayMITA3Claude Code, Codex
build-android-binarymicrosoft/power-platform-skillsSkill1.1kyesterdayMITA150Claude Code
kotlin-androidericrisco/rsc-harnessSkill5032d agoMITA78Claude Code, Codex