| name | module-routing |
| description | Guidelines for where to place different types of code in a Kotlin Multiplatform project. |
Skill: Module Routing
Use this when deciding where a change belongs.
Rules
- Put reusable OTP/business logic in
sharedLib.
- Put cross-platform UI in
composeApp/src/commonMain.
- Put platform-specific shared code (DI modules, biometrics, wear sync, storage) in
composeApp/src/<platform>Main.
- Put Android app entry point (Application, Activity, manifest, icons) in
androidApp.
- Put terminal UX and command wiring in
cliApp.
- Put Wear-only UI and Android watch integration in
watchApp.