kmp

Scaffold Kotlin Multiplatform projects with Gradle and expect/actual patterns.

4|1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/AndVl1/claude-plugin --skill kmp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kmp
Source: https://github.com/AndVl1/claude-plugin/tree/main/skills/kmp
Command: npx skills add https://github.com/AndVl1/claude-plugin --skill kmp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kotlin Multiplatform projects often require boilerplate setup, architecture decisions, and platform-specific patterns that slow startup. This skill provides a clear, reusable blueprint to scaffold KMP projects, enabling rapid setup and consistent architecture.

Core Features & Use Cases

  • Shared code architecture: establishes a common module with expect/actual patterns and clearly defined source sets.
  • Platform separation: demonstrates how to structure Android, iOS, desktop, and web modules and coordinate dependencies.
  • Getting started: supplies a ready-to-use Gradle configuration and project skeleton for quick Start.

Quick Start

Initialize a new Kotlin Multiplatform project with a shared codebase and platform-specific modules using the kmp skill.

Frequently Asked Questions about kmp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Kotlin Multiplatform project with shared code?

To set up a Kotlin Multiplatform project, you need a canonical Gradle configuration with root and module setup to establish a shared codebase across Android, iOS, Desktop, and Web modules. This provides a ready-to-use project skeleton for rapid startup.

How does expect and actual work in Kotlin Multiplatform architecture?

Expect and actual patterns in Kotlin Multiplatform architecture define expected declarations in shared source sets and provide actual implementations in platform-specific branches like Android or iOS. This allows calling platform-specific code from the common module.

Can I use Kotlin Multiplatform for both Android and iOS modules?

Yes, Kotlin Multiplatform supports multi-module projects spanning Android and iOS. The architecture separates shared code into a common module while coordinating dependencies and defining platform-specific source sets for each target environment.

What is the best way to organize shared and platform-specific code in KMP?

The best way to organize KMP code is establishing a common module with clearly defined source sets for shared logic, while placing platform-specific implementations into separate Android, iOS, desktop, and web modules using expect/actual patterns.

Does this Kotlin Multiplatform setup include Gradle configuration for multiple modules?

Yes, the setup implements a canonical Gradle configuration covering both root and module-level settings. It coordinates dependencies across Android, iOS, Desktop, and Web targets to ensure proper multi-module project compilation and structure.