kotlin-compose-resources
Installation
SKILL.md
Compose Multiplatform Resources
Use this skill when implementing or reviewing user-facing resources in shared Compose UI (sharedUI / commonMain).
Goals
- No hardcoded user-facing strings or raw asset paths in shared UI
- Correct
composeResourceslayout and generatedResusage - Clear split vs platform-native resource systems
Prefer official defaults
- Put shared Compose resources under
src/commonMain/composeResources/(or the module’s documented composeResources root). - Access via generated
Res(stringResource(Res.string.*),painterResource(Res.drawable.*), etc.). - Use qualifiers (locale, theme, density) per Compose Multiplatform resources docs.
- Keep Android
res/and iOS asset catalogs for platform-only needs (launcher icons, system notifications, native screens).
Docs: https://kotlinlang.org/docs/multiplatform/compose-images-resources.html