Kmp modules

From championswimmer/TwoFac · View interactive version

Kmp modules is an AI agent skill from the GitHub repository championswimmer/TwoFac. Guidance on where to place different types of code in this Kotlin Multiplatform project.

How to use this skill

Skill file

Skill: Kotlin Multiplatform Layout

This repository follows standard Kotlin Multiplatform source-set conventions, organized into distinct modules, each serving a specific purpose.

Project Modules

The project is divided into three primary modules. Understanding their responsibilities and dependencies is key to placing code in the correct location.

1. `sharedLib` (Shared Logic)

This is the core module containing all business logic, data models, state management, and storage mechanisms.

2. `composeApp` (GUI Library)

This module contains most of the common Graphical User Interface (GUI) application code, built using Compose Multiplatform.

3. `androidApp` (Android App Entry Point)

This is a thin wrapper module that hosts the Android application entry point.

4. `cliApp` (Command Line Interface)

This module contains code specifically related to the Command Line Interface application.

Source-Set Mapping (within modules)

Within each Kotlin Multiplatform module (especially sharedLib and composeApp), the code is further organized by source sets:

Practical Reminders

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.