Kotlin Multiplatform
Generates Kotlin Multiplatform code for shared mobile, desktop, and server backends, optimizing cross-platform development.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add kotlin-multiplatform npx -- -y @trustedskills/kotlin-multiplatform
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"kotlin-multiplatform": {
"command": "npx",
"args": [
"-y",
"@trustedskills/kotlin-multiplatform"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
The Kotlin Multiplatform skill enables AI agents to write and execute code that shares business logic across multiple platforms, including Android, iOS, Web, and Desktop. It allows a single codebase to target different operating systems while maintaining native performance through Kotlin/Native compilation.
When to use it
- You need to share business logic between mobile (iOS/Android) and web applications without duplicating code.
- Your project requires high-performance native execution on specific devices rather than relying solely on JavaScript bridges.
- You want to leverage a single language ecosystem for cross-platform development while targeting diverse hardware architectures.
- You are building backend services or shared libraries that must run efficiently on various client-side environments.
Key capabilities
- Shares business logic across Android, iOS, Web, and Desktop platforms using a single codebase.
- Compiles to native machine code via Kotlin/Native for optimal performance on each target platform.
- Supports interoperability with existing Java, Swift, Objective-C, and C++ codebases.
- Enables development of shared libraries that can be consumed by different build systems simultaneously.
Example prompts
- "Create a Kotlin Multiplatform module to handle user authentication logic that works on both iOS and Android."
- "Write a shared data model in Kotlin that serializes JSON responses for a web frontend and native mobile apps."
- "Generate a cross-platform utility function to format dates consistently across all supported platforms."
Tips & gotchas
Ensure your AI agent understands the distinction between common code (shared logic) and platform-specific implementations when generating multiplatform projects. Be aware that while business logic is shared, UI code typically remains separate for each target platform to leverage native capabilities.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.