kmp-module-structure

Guide Kotlin Multiplatform project architecture with Gradle 9 and Compose Multiplatform.

6|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/PL-Coding-GmbH/Skills --skill kmp-module-structure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kmp-module-structure
Source: https://github.com/PL-Coding-GmbH/Skills/tree/main/skills/kmp-module-structure
Command: npx skills add https://github.com/PL-Coding-GmbH/Skills --skill kmp-module-structure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill unit provides guidance on structuring Kotlin Multiplatform (KMP) projects for optimal architecture, leveraging Gradle 9 conventions and Compose Multiplatform setup. It solves the challenge of choosing the right module locations, configuring Gradle plugins, and setting up project architecture for new KMP projects.

Core Features & Use Cases

  • Module Layout Guidelines: Offers a clear layout structure for modules, including core, domain, data, presentation, designsystem, feature subdirectories, and composeApp and androidApp modules.
  • Gradle Convention Plugins: Explains how to use and configure Gradle 9 convention plugins for KMP and Android-specific configurations.
  • Compose Multiplatform Setup: Provides instructions for setting up Compose Multiplatform in KMP projects, including handling Android preview issues.
  • Use Case: Ideal for project managers and developers when starting a new KMP project, deciding module locations, configuring plugins, or troubleshooting project architecture issues.

Quick Start

Trigger the kmp-module-structure skill by saying, "Set up the project for a new KMP module," or "How should I structure this feature module?"

Frequently Asked Questions about kmp-module-structure

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

FAQPage Schema
How do I structure a Kotlin Multiplatform project for clean architecture?

Structure a Kotlin Multiplatform project using feature-layered modularization by organizing directories into core, domain, data, presentation, designsystem, and feature subdirectories alongside composeApp and androidApp modules.

How do I set up Gradle 9 convention plugins for a Kotlin Multiplatform project?

Set up Gradle 9 convention plugins for Kotlin Multiplatform by configuring them to manage KMP and Android-specific build settings, ensuring consistent dependency rules and build configurations across feature and core modules.

Does Kotlin Multiplatform support Compose Multiplatform previews for Android?

Compose Multiplatform in Kotlin Multiplatform projects supports Android previews, but requires specific setup instructions to handle and resolve Android preview issues correctly within the project configuration.

What is the best way to organize feature modules in a Compose Multiplatform project?

The best way to organize feature modules in a Compose Multiplatform project is to apply clean architecture layers and dependency rules, separating features into distinct modules under a dedicated feature subdirectory.

Do I need prior Gradle experience to use convention plugins in KMP projects?

Using convention plugins in KMP projects requires prior knowledge of Kotlin Multiplatform and Gradle to effectively configure Gradle 9 conventions and manage complex dependency rules.

Why are Compose previews not working in my Kotlin Multiplatform setup?

Compose previews in Kotlin Multiplatform setups often face issues due to incorrect project architecture or missing configurations, which can be resolved by following specific Compose Multiplatform setup guidelines.