[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D4XNBEDQNJKAV9AK0TY4EQ":3,"skill-same:01M7D4XNBEDQNJKAV9AK0TY4EQ":90},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M7D4XNBEDQNJKAV9AK0TY4EQ","kotlin-tooling-agp9-migration",null,"Migrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+. Handles plugin replacement (com.android.kotlin.multiplatform.library), module splitting, DSL migration, and the new default project structure. Use when upgrading AGP, when build fails due to KMP+AGP incompatibility, or when the user mentions AGP 9.0, android multiplatform plugin, KMP migration, or com.android.kotlin.multiplatform.library.","Darshan8610\u002FDynamic-Island","Darshan8610","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F280662176?v=4","01M7D3NS7B63B86XTVEHZWQRM2","01M7D3NS8HT3SPCDXKS1VFAB0X",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: kotlin-tooling-agp9-migration\ndescription: >\n  Migrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+.\n  Handles plugin replacement (com.android.kotlin.multiplatform.library), module\n  splitting, DSL migration, and the new default project structure. Use when\n  upgrading AGP, when build fails due to KMP+AGP incompatibility, or when the\n  user mentions AGP 9.0, android multiplatform plugin, KMP migration, or\n  com.android.kotlin.multiplatform.library.\nlicense: Apache-2.0\nmetadata:\n  author: JetBrains\n  version: \"1.0.0\"\n---\n\n# KMP AGP 9.0 Migration\n\nAndroid Gradle Plugin 9.0 makes the Android application and library plugins incompatible\nwith the Kotlin Multiplatform plugin in the same module. This skill guides you through the\nmigration.\n\n## Step 0: Analyze the Project\n\nBefore making any changes, understand the project structure:\n1. Read `settings.gradle.kts` (or `.gradle`) to find all modules\n2. For each module, read its `build.gradle.kts` to identify which plugins are applied\n3. Check if the project uses a Gradle version catalog (`gradle\u002Flibs.versions.toml`). If it exists,\n   read it for current AGP\u002FGradle\u002FKotlin versions. If not, find versions directly in `build.gradle.kts`\n   files (typically in the root `buildscript {}` or `plugins {}` block). **Adapt all examples in this\n   guide accordingly** — version catalog examples use `alias(libs.plugins.xxx)` while direct usage\n   uses `id(\"plugin.id\") version \"x.y.z\"`\n4. Read `gradle\u002Fwrapper\u002Fgradle-wrapper.properties` for the Gradle version\n5. Check `gradle.properties` for any existing workarounds (`android.enableLegacyVariantApi`)\n6. Check for `org.jetbrains.kotlin.android` plugin usage — AGP 9.0 has built-in Kotlin and this plugin must be removed\n7. Check for `org.jetbrains.kotlin.kapt` plugin usage — incompatible with built-in Kotlin, must migrate to KSP or `com.android.legacy-kapt`\n8. Check for third-party plugins that may be incompatible with AGP 9.0 (see \"Plugin Compatibility\" section below)\n\nIf Bash is available, run `scripts\u002Fanalyze-project.sh` from this skill's directory to get a structured summary.\n\n### Classify Each Module\n\nFor each module, determine its type:\n\n| Current plugins                                                          | Migration path                              |\n|--------------------------------------------------------------------------|---------------------------------------------|\n| `kotlin.multiplatform` + `com.android.library`                           | **Path A** — Library plugin swap            |\n| `kotlin.multiplatform` + `com.android.application`                       | **Path B** — Mandatory Android split        |\n| `kotlin.multiplatform` with multiple platform entry points in one module | **Path C** — Full restructure (recommended) |\n| `com.android.application` or `com.android.library` (no KMP)              | See \"Pure Android Tips\" below               |\n\n### Determine Scope\n\n- **Path B is mandatory** for any module combining KMP + Android application plugin\n- **Path C is recommended** when the project has a monolithic `composeApp` (or similar) module\n  containing entry points for multiple platforms (Android, Desktop, Web). This aligns with the\n  new JetBrains default project structure where each platform gets its own app module.\n- **Ask the user** whether they want Path B only (minimum required) or Path C (recommended full restructure)\n\n## Path A: Library Module Migration\n\nUse this when a module applies `kotlin.multiplatform` + `com.android.library`.\n\nSee [references\u002FMIGRATION-LIBRARY.md](references\u002FMIGRATION-LIBRARY.md) for full before\u002Fafter code.\n\nSummary:\n\n1. **Replace plugin**: `com.android.library` → `com.android.kotlin.multiplatform.library`\n2. **Remove `org.jetbrains.kotlin.android`** plugin if present (AGP 9.0 has built-in Kotlin support)\n3. **Migrate DSL**: Move config from top-level `android {}` block into `kotlin { android {} }`:\n   ```kotlin\n   kotlin {\n       android {\n           namespace = \"com.example.lib\"\n           compileSdk = 35\n           minSdk = 24\n       }\n   }\n   ```\n4. **Rename source directories** (only if the module uses classic Android layout instead of KMP layout):\n   - `src\u002Fmain` → `src\u002FandroidMain`\n   - `src\u002Ftest` → `src\u002FandroidHostTest`\n   - `src\u002FandroidTest` → `src\u002FandroidDeviceTest`\n   - If the module already uses `src\u002FandroidMain\u002F`, no directory renames are needed\n5. **Move dependencies** from top-level `dependencies {}` into `sourceSets`:\n   ```kotlin\n   kotlin {\n       sourceSets {\n           androidMain.dependencies {\n               implementation(\"androidx.appcompat:appcompat:1.7.0\")\n           }\n       }\n   }\n   ```\n6. **Enable resources** explicitly if the module uses Android or Compose Multiplatform resources:\n   ```kotlin\n   kotlin {\n       android {\n           androidResources { enable = true }\n       }\n   }\n   ```\n7. **Enable Java** compilation if module has `.java` source files:\n   ```kotlin\n   kotlin {\n       android {\n           withJava()\n       }\n   }\n   ```\n8. **Enable tests** explicitly if the module has unit or instrumented tests:\n   ```kotlin\n   kotlin {\n       android {\n           withHostTest { isIncludeAndroidResources = true }\n           withDeviceTest {\n               instrumentationRunner = \"androidx.test.runner.AndroidJUnitRunner\"\n           }\n       }\n   }\n   ```\n9. **Update Compose tooling dependency**:\n   ```kotlin\n   \u002F\u002F Old: \n   debugImplementation(libs.androidx.compose.ui.tooling)\n   \u002F\u002F New:\n   androidRuntimeClasspath(libs.androidx.compose.ui.tooling)\n   ```\n10. **Publish consumer ProGuard rules** explicitly if applicable:\n    ```kotlin\n    kotlin {\n        android {\n            consumerProguardFiles.add(file(\"consumer-rules.pro\"))\n        }\n    }\n    ```\n11. **Resolve Sub-dependency Variants (Product Flavors \u002F Build Types)**:\n    Because the new KMP Android library plugin enforces a single-variant architecture, it does not natively understand how to resolve dependencies that publish multiple variants (like `debug`\u002F`release` build types, or product flavors like `free`\u002F`paid`). Configure fallback behaviors using `localDependencySelection`:\n    ```kotlin\n    kotlin {\n        android {\n            localDependencySelection {\n                \u002F\u002F Determine which build type to consume from Android library dependencies, in order of preference\n                selectBuildTypeFrom.set(listOf(\"debug\", \"release\"))\n                \n                \u002F\u002F If the dependency has a 'tier' dimension, select the 'free' flavor\n                productFlavorDimension(\"tier\") {\n                    selectFrom.set(listOf(\"free\"))\n                }\n            }\n        }\n    }\n    ```\n\n## Path B: Android App + Shared Module Split\n\nUse this when a module applies `kotlin.multiplatform` + `com.android.application`. This is **mandatory** for AGP 9.0 compatibility.\n\nSee [references\u002FMIGRATION-APP-SPLIT.md](references\u002FMIGRATION-APP-SPLIT.md) for full guide.\n\nSummary:\n\n1. **Create `androidApp` module** with its own `build.gradle.kts`:\n   ```kotlin\n   plugins {\n       alias(libs.plugins.androidApplication)\n       \u002F\u002F Do NOT apply kotlin-android — AGP 9.0 includes Kotlin support\n       alias(libs.plugins.composeMultiplatform)  \u002F\u002F if using Compose\n       alias(libs.plugins.composeCompiler)       \u002F\u002F if using Compose\n   }\n\n   android {\n       namespace = \"com.example.app\"\n       compileSdk = 35\n       defaultConfig {\n           applicationId = \"com.example.app\"\n           minSdk = 24\n           targetSdk = 35\n           versionCode = 1\n           versionName = \"1.0\"\n       }\n       buildFeatures { compose = true }\n   }\n\n   dependencies {\n       implementation(projects.shared)  \u002F\u002F or whatever the shared module is named\n       implementation(libs.androidx.activity.compose)\n   }\n   ```\n2. **Move Android entry point code** from `src\u002FandroidMain\u002F` to `androidApp\u002Fsrc\u002Fmain\u002F`:\n   - `MainActivity.kt` (and any other Activities\u002FFragments)\n   - `AndroidManifest.xml` (app-level manifest with `\u003Capplication>` and launcher `\u003Cactivity>`) — verify `android:name` on `\u003Cactivity>` uses the fully qualified class name in its new location\n   - Android Application class if present\n   - App-level resources (launcher icons, theme, etc.)\n3. **Add to `settings.gradle.kts`**: `include(\":androidApp\")`\n4. **Add to root `build.gradle.kts`**: plugin declarations with `apply false`\n5. **Convert original module** from application to library using Path A steps\n6. **Ensure different namespaces**: app module and library module must have distinct namespaces\n7. **Remove from shared module**: `applicationId`, `targetSdk`, `versionCode`, `versionName`\n8. **Update IDE run configurations**: change the module from the old module to `androidApp`\n\n## Path C: Full Restructure (Recommended)\n\nUse this when the project has a monolithic module (typically `composeApp`) containing entry\npoints for multiple platforms. This is optional but aligns with the new JetBrains default.\n\nSee [references\u002FMIGRATION-FULL-RESTRUCTURE.md](references\u002FMIGRATION-FULL-RESTRUCTURE.md) for full guide.\n\n### Target Structure\n\n```\nproject\u002F\n├── shared\u002F              ← KMP library (was composeApp), pure shared code\n├── androidApp\u002F          ← Android entry point only\n├── desktopApp\u002F          ← Desktop entry point only (if desktop target exists)\n├── webApp\u002F              ← Wasm\u002FJS entry point only (if web target exists)\n├── iosApp\u002F              ← iOS Xcode project (usually already separate)\n└── ...\n```\n\n### Steps\n\n1. **Apply Path B first** — extract `androidApp` (mandatory for AGP 9.0)\n2. **Extract `desktopApp`** (if desktop target exists):\n   - Create module with `org.jetbrains.compose` and `application {}` plugin\n   - Move `main()` function from `desktopMain` to `desktopApp\u002Fsrc\u002Fmain\u002Fkotlin\u002F`\n   - Move `compose.desktop { application { ... } }` config to `desktopApp\u002Fbuild.gradle.kts`\n   - Add dependency on `shared` module\n3. **Extract `webApp`** (if wasmJs\u002Fjs target exists):\n   - Create module with appropriate Kotlin\u002FJS or Kotlin\u002FWasm configuration\n   - Move web entry point from `wasmJsMain`\u002F`jsMain` to `webApp\u002Fsrc\u002FwasmJsMain\u002Fkotlin\u002F`\n   - Move browser\u002Fdistribution config to `webApp\u002Fbuild.gradle.kts`\n   - Add dependency on `shared` module\n4. **iOS** — typically already in a separate `iosApp` directory. Verify:\n   - Framework export config (`binaries.framework`) stays in `shared` module\n   - Xcode project references the correct framework path\n5. **Rename module** from `composeApp` to `shared`:\n   - Rename directory\n   - Update `settings.gradle.kts` include\n   - Update all dependency references across modules\n6. **Clean up shared module**: remove all platform entry point code and app-specific config\n   that was moved to the platform app modules\n\n### Variant: Native UI\n\nIf some platforms use native UI (e.g., SwiftUI for iOS), split `shared` into:\n- `sharedLogic` — business logic consumed by ALL platforms\n- `sharedUI` — Compose Multiplatform UI consumed only by platforms using shared UI\n\n### Variant: Server\n\nIf the project includes a server target:\n- Add `server` module at the root\n- Move all client modules under an `app\u002F` directory\n- Add `core` module for code shared between server and client (models, validation)\n\n## Version Updates\n\nThese are required regardless of migration path:\n\n1. **Gradle wrapper** — update to 9.1.0+:\n   ```properties\n   # gradle\u002Fwrapper\u002Fgradle-wrapper.properties\n   distributionUrl=https\\:\u002F\u002Fservices.gradle.org\u002Fdistributions\u002Fgradle-9.1.0-bin.zip\n   ```\n2. **AGP version** — update to 9.0.0+ and add the KMP library plugin.\n\n   With version catalog (`gradle\u002Flibs.versions.toml`):\n   ```toml\n   [versions]\n   agp = \"9.0.1\"\n\n   [plugins]\n   android-kotlin-multiplatform-library = { id = \"com.android.kotlin.multiplatform.library\", version.ref = \"agp\" }\n   ```\n\n   Without version catalog — update `com.android.*` plugin versions and add in root `build.gradle.kts`:\n   ```kotlin\n   plugins {\n       id(\"com.android.application\") version \"9.0.1\" apply false\n       id(\"com.android.kotlin.multiplatform.library\") version \"9.0.1\" apply false\n   }\n   ```\n3. **JDK** — ensure JDK 17+ is used (required by AGP 9.0)\n4. **SDK Build Tools** — update to 36.0.0:\n   ```\n   Install via SDK Manager or configure in android { buildToolsVersion = \"36.0.0\" }\n   ```\n5. **Review gradle.properties** — remove error-causing properties and review changed defaults (see \"Gradle Properties Default Changes\" section)\n\n## Built-in Kotlin Migration\n\nAGP 9.0 enables built-in Kotlin support by default for all `com.android.application` and `com.android.library`\nmodules. The `org.jetbrains.kotlin.android` plugin is no longer needed and will conflict if applied.\n\n**Important:** Built-in Kotlin does NOT replace KMP support. KMP library modules still need\n`org.jetbrains.kotlin.multiplatform` + `com.android.kotlin.multiplatform.library`.\n\n### Step 1: Remove kotlin-android Plugin\n\nRemove from **all** module-level and root-level build files:\n\n```kotlin\n\u002F\u002F Remove from module build.gradle.kts\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android)\n    \u002F\u002F REMOVE: id(\"org.jetbrains.kotlin.android\")\n}\n\n\u002F\u002F Remove from root build.gradle.kts\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android) apply false\n}\n```\n\nRemove from version catalog (`gradle\u002Flibs.versions.toml`):\n```toml\n[plugins]\n# REMOVE: kotlin-android = { id = \"org.jetbrains.kotlin.android\", version.ref = \"kotlin\" }\n```\n\n### Step 2: Migrate kapt to KSP or legacy-kapt\n\nThe `org.jetbrains.kotlin.kapt` plugin is **incompatible** with built-in Kotlin.\n\n**Preferred: Migrate to KSP** — see the KSP migration guide for each annotation processor.\n\n**Fallback: Use `com.android.legacy-kapt`** (same version as AGP):\n```toml\n# gradle\u002Flibs.versions.toml\n[plugins]\nlegacy-kapt = { id = \"com.android.legacy-kapt\", version.ref = \"agp\" }\n```\n```kotlin\n\u002F\u002F Module build.gradle.kts — replace kotlin-kapt with legacy-kapt\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.kapt)\n    alias(libs.plugins.legacy.kapt)\n}\n```\n\n### Step 3: Migrate kotlinOptions to compilerOptions\n\nFor pure Android modules (non-KMP), migrate `android.kotlinOptions {}` to the top-level\n`kotlin.compilerOptions {}`:\n```kotlin\n\u002F\u002F Old\nandroid {\n    kotlinOptions {\n        jvmTarget = \"11\"\n        languageVersion = \"2.0\"\n        freeCompilerArgs += listOf(\"-Xopt-in=kotlin.RequiresOptIn\")\n    }\n}\n\n\u002F\u002F New\nkotlin {\n    compilerOptions {\n        jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)\n        languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)\n        optIn.add(\"kotlin.RequiresOptIn\")\n    }\n}\n```\n\n**Note:** With built-in Kotlin, `jvmTarget` defaults to `android.compileOptions.targetCompatibility`, so it may be optional if you already set `compileOptions`.\n\n### Step 4: Migrate kotlin.sourceSets to android.sourceSets\n\nWith built-in Kotlin, only `android.sourceSets {}` with the `kotlin` set is supported:\n```kotlin\n\u002F\u002F NOT SUPPORTED with built-in Kotlin:\nkotlin.sourceSets.named(\"main\") {\n    kotlin.srcDir(\"additionalSourceDirectory\u002Fkotlin\")\n}\n\n\u002F\u002F Correct:\nandroid.sourceSets.named(\"main\") {\n    kotlin.directories += \"additionalSourceDirectory\u002Fkotlin\"\n}\n```\n\nFor generated sources, use the Variant API:\n```kotlin\nandroidComponents.onVariants { variant ->\n    variant.sources.kotlin!!.addStaticSourceDirectory(\"additionalSourceDirectory\u002Fkotlin\")\n}\n```\n\n### Per-Module Migration Strategy\n\nFor large projects, migrate module-by-module:\n\n1. Disable globally: `android.builtInKotlin=false` in `gradle.properties`\n2. Enable per migrated module by applying the opt-in plugin:\n   ```kotlin\n   plugins {\n       id(\"com.android.built-in-kotlin\") version \"AGP_VERSION\"\n   }\n   ```\n3. Follow Steps 1-4 for that module\n4. Once all modules are migrated, remove `android.builtInKotlin=false` and all `com.android.built-in-kotlin` plugins\n\n### Optional: Disable Kotlin for Non-Kotlin Modules\n\nFor modules that contain **no Kotlin sources**, disable built-in Kotlin to save build time:\n```kotlin\nandroid {\n    enableKotlin = false\n}\n```\n\n### Opt-Out (Temporary)\n\nIf blocked by plugin incompatibilities, opt out temporarily:\n```properties\n# gradle.properties\nandroid.builtInKotlin=false\nandroid.newDsl=false  # also required if using new DSL opt-out\n```\n\n**Warning:** Ask the user if they want to opt out, and if so, remind them this is a temporary measure.\n\n## Plugin Compatibility\n\nSee [references\u002FPLUGIN-COMPATIBILITY.md](references\u002FPLUGIN-COMPATIBILITY.md) for the full compatibility table with known compatible versions, opt-out flag workarounds, and broken plugins.\n\n**Before migrating**, inventory all plugins in the project and check each against that table. If any plugin is broken without workaround, inform the user. If plugins need opt-out flags, add them to`gradle.properties` and note them as temporary workarounds.\n\n## Gradle Properties Default Changes\n\nAGP 9.0 changes the defaults for many Gradle properties. Check `gradle.properties` for any explicitly set values that may now conflict. \nKey changes:\n\n| Property                                             | Old Default | New Default | Action                                            |\n|------------------------------------------------------|-------------|-------------|---------------------------------------------------|\n| `android.uniquePackageNames`                         | `false`     | `true`      | Ensure each library has a unique namespace        |\n| `android.enableAppCompileTimeRClass`                 | `false`     | `true`      | Refactor `switch` on R fields to `if\u002Felse`        |\n| `android.defaults.buildfeatures.resvalues`           | `true`      | `false`     | Enable `resValues = true` where needed            |\n| `android.defaults.buildfeatures.shaders`             | `true`      | `false`     | Enable shaders where needed                       |\n| `android.r8.optimizedResourceShrinking`              | `false`     | `true`      | Review R8 keep rules                              |\n| `android.r8.strictFullModeForKeepRules`              | `false`     | `true`      | Update keep rules to be explicit                  |\n| `android.proguard.failOnMissingFiles`                | `false`     | `true`      | Remove invalid ProGuard file references           |\n| `android.r8.proguardAndroidTxt.disallowed`           | `false`     | `true`      | Use `proguard-android-optimize.txt` only          |\n| `android.r8.globalOptionsInConsumerRules.disallowed` | `false`     | `true`      | Remove global options from library consumer rules |\n| `android.sourceset.disallowProvider`                 | `false`     | `true`      | Use `Sources` API on androidComponents            |\n| `android.sdk.defaultTargetSdkToCompileSdkIfUnset`    | `false`     | `true`      | Specify `targetSdk` explicitly                    |\n| `android.onlyEnableUnitTestForTheTestedBuildType`    | `false`     | `true`      | Only if testing non-default build types           |\n\nCheck for and remove properties that now cause errors:\n- `android.r8.integratedResourceShrinking` — removed, always on\n- `android.enableNewResourceShrinker.preciseShrinking` — removed, always on\n\n## Pure Android Tips\n\nFor non-KMP Android modules upgrading to AGP 9.0, follow the \"Built-in Kotlin Migration\" steps above,\nthen review the \"Gradle Properties Default Changes\" table. Additional changes:\n\n- **Review new DSL interfaces** — `BaseExtension` is removed; use `CommonExtension` or specific extension types\n- **Java default changed** from Java 8 to Java 11 — ensure `compileOptions` reflects this\n\n## Verification\n\nAfter migration, verify with the [checklist](assets\u002Fchecklist.md). Key checks:\n\n1. `.\u002Fgradlew build` succeeds with no errors\n2. All platform targets build successfully (Android, iOS via `xcodebuild`, Desktop, JS\u002FWasm)\n3. `.\u002Fgradlew :shared:allTests` and Android unit tests pass\n4. No `com.android.library` or `com.android.application` in KMP modules\n5. No `org.jetbrains.kotlin.android` in AGP 9.0 modules\n6. Source sets use correct names (`androidMain`, `androidHostTest`, `androidDeviceTest`)\n7. No deprecation warnings about variant API or DSL\n\n## Common Issues\n\nSee [references\u002FKNOWN-ISSUES.md](references\u002FKNOWN-ISSUES.md) for details. Key gotchas:\n\n### KMP Library Plugin Issues\n- **BuildConfig unavailable** in library modules — use DI\u002F`AppConfiguration` interface, or use [BuildKonfig](https:\u002F\u002Fgithub.com\u002Fyshrsmz\u002FBuildKonfig) or [gradle-buildconfig-plugin](https:\u002F\u002Fgithub.com\u002Fgmazzo\u002Fgradle-buildconfig-plugin) for compile-time constants\n- **No build variants** — single variant architecture; compile-time constants can use BuildKonfig\u002Fgradle-buildconfig-plugin flavors, but variant-specific dependencies\u002Fresources\u002Fsigning must move to app module\n- **NDK\u002FJNI unsupported** in new plugin — extract to separate `com.android.library` module\n- **Compose resources crash** without `androidResources { enable = true }`\n- **Consumer ProGuard rules silently dropped** if not migrated to `consumerProguardFiles.add(file(...))` in new DSL\n- **KSP** requires version 2.3.1+ for AGP 9.0 compatibility\n\n### AGP 9.0 General Issues\n- **BaseExtension removed** — convention plugins using old DSL types need rewriting to use `CommonExtension`\n- **Variant APIs removed** — `applicationVariants`, `libraryVariants`, `variantFilter` replaced by `androidComponents`\n- **Convention plugins** need refactoring — old `android {}` extension helpers are obsolete\n\n## Reference Files\n\n- [DSL Reference](references\u002FDSL-REFERENCE.md) — side-by-side old→new DSL mapping\n- [Version Matrix](references\u002FVERSION-MATRIX.md) — AGP\u002FGradle\u002FKGP\u002FCompose\u002FIDE compatibility\n- [Plugin Compatibility](references\u002FPLUGIN-COMPATIBILITY.md) — third-party plugin status and workarounds\n","# KMP AGP 9.0 Migration\n\nAndroid Gradle Plugin 9.0 makes the Android application and library plugins incompatible\nwith the Kotlin Multiplatform plugin in the same module. This skill guides you through the\nmigration.\n\n## Step 0: Analyze the Project\n\nBefore making any changes, understand the project structure:\n1. Read `settings.gradle.kts` (or `.gradle`) to find all modules\n2. For each module, read its `build.gradle.kts` to identify which plugins are applied\n3. Check if the project uses a Gradle version catalog (`gradle\u002Flibs.versions.toml`). If it exists,\n   read it for current AGP\u002FGradle\u002FKotlin versions. If not, find versions directly in `build.gradle.kts`\n   files (typically in the root `buildscript {}` or `plugins {}` block). **Adapt all examples in this\n   guide accordingly** — version catalog examples use `alias(libs.plugins.xxx)` while direct usage\n   uses `id(\"plugin.id\") version \"x.y.z\"`\n4. Read `gradle\u002Fwrapper\u002Fgradle-wrapper.properties` for the Gradle version\n5. Check `gradle.properties` for any existing workarounds (`android.enableLegacyVariantApi`)\n6. Check for `org.jetbrains.kotlin.android` plugin usage — AGP 9.0 has built-in Kotlin and this plugin must be removed\n7. Check for `org.jetbrains.kotlin.kapt` plugin usage — incompatible with built-in Kotlin, must migrate to KSP or `com.android.legacy-kapt`\n8. Check for third-party plugins that may be incompatible with AGP 9.0 (see \"Plugin Compatibility\" section below)\n\nIf Bash is available, run `scripts\u002Fanalyze-project.sh` from this skill's directory to get a structured summary.\n\n### Classify Each Module\n\nFor each module, determine its type:\n\n| Current plugins                                                          | Migration path                              |\n|--------------------------------------------------------------------------|---------------------------------------------|\n| `kotlin.multiplatform` + `com.android.library`                           | **Path A** — Library plugin swap            |\n| `kotlin.multiplatform` + `com.android.application`                       | **Path B** — Mandatory Android split        |\n| `kotlin.multiplatform` with multiple platform entry points in one module | **Path C** — Full restructure (recommended) |\n| `com.android.application` or `com.android.library` (no KMP)              | See \"Pure Android Tips\" below               |\n\n### Determine Scope\n\n- **Path B is mandatory** for any module combining KMP + Android application plugin\n- **Path C is recommended** when the project has a monolithic `composeApp` (or similar) module\n  containing entry points for multiple platforms (Android, Desktop, Web). This aligns with the\n  new JetBrains default project structure where each platform gets its own app module.\n- **Ask the user** whether they want Path B only (minimum required) or Path C (recommended full restructure)\n\n## Path A: Library Module Migration\n\nUse this when a module applies `kotlin.multiplatform` + `com.android.library`.\n\nSee [references\u002FMIGRATION-LIBRARY.md](references\u002FMIGRATION-LIBRARY.md) for full before\u002Fafter code.\n\nSummary:\n\n1. **Replace plugin**: `com.android.library` → `com.android.kotlin.multiplatform.library`\n2. **Remove `org.jetbrains.kotlin.android`** plugin if present (AGP 9.0 has built-in Kotlin support)\n3. **Migrate DSL**: Move config from top-level `android {}` block into `kotlin { android {} }`:\n   ```kotlin\n   kotlin {\n       android {\n           namespace = \"com.example.lib\"\n           compileSdk = 35\n           minSdk = 24\n       }\n   }\n   ```\n4. **Rename source directories** (only if the module uses classic Android layout instead of KMP layout):\n   - `src\u002Fmain` → `src\u002FandroidMain`\n   - `src\u002Ftest` → `src\u002FandroidHostTest`\n   - `src\u002FandroidTest` → `src\u002FandroidDeviceTest`\n   - If the module already uses `src\u002FandroidMain\u002F`, no directory renames are needed\n5. **Move dependencies** from top-level `dependencies {}` into `sourceSets`:\n   ```kotlin\n   kotlin {\n       sourceSets {\n           androidMain.dependencies {\n               implementation(\"androidx.appcompat:appcompat:1.7.0\")\n           }\n       }\n   }\n   ```\n6. **Enable resources** explicitly if the module uses Android or Compose Multiplatform resources:\n   ```kotlin\n   kotlin {\n       android {\n           androidResources { enable = true }\n       }\n   }\n   ```\n7. **Enable Java** compilation if module has `.java` source files:\n   ```kotlin\n   kotlin {\n       android {\n           withJava()\n       }\n   }\n   ```\n8. **Enable tests** explicitly if the module has unit or instrumented tests:\n   ```kotlin\n   kotlin {\n       android {\n           withHostTest { isIncludeAndroidResources = true }\n           withDeviceTest {\n               instrumentationRunner = \"androidx.test.runner.AndroidJUnitRunner\"\n           }\n       }\n   }\n   ```\n9. **Update Compose tooling dependency**:\n   ```kotlin\n   \u002F\u002F Old: \n   debugImplementation(libs.androidx.compose.ui.tooling)\n   \u002F\u002F New:\n   androidRuntimeClasspath(libs.androidx.compose.ui.tooling)\n   ```\n10. **Publish consumer ProGuard rules** explicitly if applicable:\n    ```kotlin\n    kotlin {\n        android {\n            consumerProguardFiles.add(file(\"consumer-rules.pro\"))\n        }\n    }\n    ```\n11. **Resolve Sub-dependency Variants (Product Flavors \u002F Build Types)**:\n    Because the new KMP Android library plugin enforces a single-variant architecture, it does not natively understand how to resolve dependencies that publish multiple variants (like `debug`\u002F`release` build types, or product flavors like `free`\u002F`paid`). Configure fallback behaviors using `localDependencySelection`:\n    ```kotlin\n    kotlin {\n        android {\n            localDependencySelection {\n                \u002F\u002F Determine which build type to consume from Android library dependencies, in order of preference\n                selectBuildTypeFrom.set(listOf(\"debug\", \"release\"))\n                \n                \u002F\u002F If the dependency has a 'tier' dimension, select the 'free' flavor\n                productFlavorDimension(\"tier\") {\n                    selectFrom.set(listOf(\"free\"))\n                }\n            }\n        }\n    }\n    ```\n\n## Path B: Android App + Shared Module Split\n\nUse this when a module applies `kotlin.multiplatform` + `com.android.application`. This is **mandatory** for AGP 9.0 compatibility.\n\nSee [references\u002FMIGRATION-APP-SPLIT.md](references\u002FMIGRATION-APP-SPLIT.md) for full guide.\n\nSummary:\n\n1. **Create `androidApp` module** with its own `build.gradle.kts`:\n   ```kotlin\n   plugins {\n       alias(libs.plugins.androidApplication)\n       \u002F\u002F Do NOT apply kotlin-android — AGP 9.0 includes Kotlin support\n       alias(libs.plugins.composeMultiplatform)  \u002F\u002F if using Compose\n       alias(libs.plugins.composeCompiler)       \u002F\u002F if using Compose\n   }\n\n   android {\n       namespace = \"com.example.app\"\n       compileSdk = 35\n       defaultConfig {\n           applicationId = \"com.example.app\"\n           minSdk = 24\n           targetSdk = 35\n           versionCode = 1\n           versionName = \"1.0\"\n       }\n       buildFeatures { compose = true }\n   }\n\n   dependencies {\n       implementation(projects.shared)  \u002F\u002F or whatever the shared module is named\n       implementation(libs.androidx.activity.compose)\n   }\n   ```\n2. **Move Android entry point code** from `src\u002FandroidMain\u002F` to `androidApp\u002Fsrc\u002Fmain\u002F`:\n   - `MainActivity.kt` (and any other Activities\u002FFragments)\n   - `AndroidManifest.xml` (app-level manifest with `\u003Capplication>` and launcher `\u003Cactivity>`) — verify `android:name` on `\u003Cactivity>` uses the fully qualified class name in its new location\n   - Android Application class if present\n   - App-level resources (launcher icons, theme, etc.)\n3. **Add to `settings.gradle.kts`**: `include(\":androidApp\")`\n4. **Add to root `build.gradle.kts`**: plugin declarations with `apply false`\n5. **Convert original module** from application to library using Path A steps\n6. **Ensure different namespaces**: app module and library module must have distinct namespaces\n7. **Remove from shared module**: `applicationId`, `targetSdk`, `versionCode`, `versionName`\n8. **Update IDE run configurations**: change the module from the old module to `androidApp`\n\n## Path C: Full Restructure (Recommended)\n\nUse this when the project has a monolithic module (typically `composeApp`) containing entry\npoints for multiple platforms. This is optional but aligns with the new JetBrains default.\n\nSee [references\u002FMIGRATION-FULL-RESTRUCTURE.md](references\u002FMIGRATION-FULL-RESTRUCTURE.md) for full guide.\n\n### Target Structure\n\n```\nproject\u002F\n├── shared\u002F              ← KMP library (was composeApp), pure shared code\n├── androidApp\u002F          ← Android entry point only\n├── desktopApp\u002F          ← Desktop entry point only (if desktop target exists)\n├── webApp\u002F              ← Wasm\u002FJS entry point only (if web target exists)\n├── iosApp\u002F              ← iOS Xcode project (usually already separate)\n└── ...\n```\n\n### Steps\n\n1. **Apply Path B first** — extract `androidApp` (mandatory for AGP 9.0)\n2. **Extract `desktopApp`** (if desktop target exists):\n   - Create module with `org.jetbrains.compose` and `application {}` plugin\n   - Move `main()` function from `desktopMain` to `desktopApp\u002Fsrc\u002Fmain\u002Fkotlin\u002F`\n   - Move `compose.desktop { application { ... } }` config to `desktopApp\u002Fbuild.gradle.kts`\n   - Add dependency on `shared` module\n3. **Extract `webApp`** (if wasmJs\u002Fjs target exists):\n   - Create module with appropriate Kotlin\u002FJS or Kotlin\u002FWasm configuration\n   - Move web entry point from `wasmJsMain`\u002F`jsMain` to `webApp\u002Fsrc\u002FwasmJsMain\u002Fkotlin\u002F`\n   - Move browser\u002Fdistribution config to `webApp\u002Fbuild.gradle.kts`\n   - Add dependency on `shared` module\n4. **iOS** — typically already in a separate `iosApp` directory. Verify:\n   - Framework export config (`binaries.framework`) stays in `shared` module\n   - Xcode project references the correct framework path\n5. **Rename module** from `composeApp` to `shared`:\n   - Rename directory\n   - Update `settings.gradle.kts` include\n   - Update all dependency references across modules\n6. **Clean up shared module**: remove all platform entry point code and app-specific config\n   that was moved to the platform app modules\n\n### Variant: Native UI\n\nIf some platforms use native UI (e.g., SwiftUI for iOS), split `shared` into:\n- `sharedLogic` — business logic consumed by ALL platforms\n- `sharedUI` — Compose Multiplatform UI consumed only by platforms using shared UI\n\n### Variant: Server\n\nIf the project includes a server target:\n- Add `server` module at the root\n- Move all client modules under an `app\u002F` directory\n- Add `core` module for code shared between server and client (models, validation)\n\n## Version Updates\n\nThese are required regardless of migration path:\n\n1. **Gradle wrapper** — update to 9.1.0+:\n   ```properties\n   # gradle\u002Fwrapper\u002Fgradle-wrapper.properties\n   distributionUrl=https\\:\u002F\u002Fservices.gradle.org\u002Fdistributions\u002Fgradle-9.1.0-bin.zip\n   ```\n2. **AGP version** — update to 9.0.0+ and add the KMP library plugin.\n\n   With version catalog (`gradle\u002Flibs.versions.toml`):\n   ```toml\n   [versions]\n   agp = \"9.0.1\"\n\n   [plugins]\n   android-kotlin-multiplatform-library = { id = \"com.android.kotlin.multiplatform.library\", version.ref = \"agp\" }\n   ```\n\n   Without version catalog — update `com.android.*` plugin versions and add in root `build.gradle.kts`:\n   ```kotlin\n   plugins {\n       id(\"com.android.application\") version \"9.0.1\" apply false\n       id(\"com.android.kotlin.multiplatform.library\") version \"9.0.1\" apply false\n   }\n   ```\n3. **JDK** — ensure JDK 17+ is used (required by AGP 9.0)\n4. **SDK Build Tools** — update to 36.0.0:\n   ```\n   Install via SDK Manager or configure in android { buildToolsVersion = \"36.0.0\" }\n   ```\n5. **Review gradle.properties** — remove error-causing properties and review changed defaults (see \"Gradle Properties Default Changes\" section)\n\n## Built-in Kotlin Migration\n\nAGP 9.0 enables built-in Kotlin support by default for all `com.android.application` and `com.android.library`\nmodules. The `org.jetbrains.kotlin.android` plugin is no longer needed and will conflict if applied.\n\n**Important:** Built-in Kotlin does NOT replace KMP support. KMP library modules still need\n`org.jetbrains.kotlin.multiplatform` + `com.android.kotlin.multiplatform.library`.\n\n### Step 1: Remove kotlin-android Plugin\n\nRemove from **all** module-level and root-level build files:\n\n```kotlin\n\u002F\u002F Remove from module build.gradle.kts\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android)\n    \u002F\u002F REMOVE: id(\"org.jetbrains.kotlin.android\")\n}\n\n\u002F\u002F Remove from root build.gradle.kts\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.android) apply false\n}\n```\n\nRemove from version catalog (`gradle\u002Flibs.versions.toml`):\n```toml\n[plugins]\n# REMOVE: kotlin-android = { id = \"org.jetbrains.kotlin.android\", version.ref = \"kotlin\" }\n```\n\n### Step 2: Migrate kapt to KSP or legacy-kapt\n\nThe `org.jetbrains.kotlin.kapt` plugin is **incompatible** with built-in Kotlin.\n\n**Preferred: Migrate to KSP** — see the KSP migration guide for each annotation processor.\n\n**Fallback: Use `com.android.legacy-kapt`** (same version as AGP):\n```toml\n# gradle\u002Flibs.versions.toml\n[plugins]\nlegacy-kapt = { id = \"com.android.legacy-kapt\", version.ref = \"agp\" }\n```\n```kotlin\n\u002F\u002F Module build.gradle.kts — replace kotlin-kapt with legacy-kapt\nplugins {\n    \u002F\u002F REMOVE: alias(libs.plugins.kotlin.kapt)\n    alias(libs.plugins.legacy.kapt)\n}\n```\n\n### Step 3: Migrate kotlinOptions to compilerOptions\n\nFor pure Android modules (non-KMP), migrate `android.kotlinOptions {}` to the top-level\n`kotlin.compilerOptions {}`:\n```kotlin\n\u002F\u002F Old\nandroid {\n    kotlinOptions {\n        jvmTarget = \"11\"\n        languageVersion = \"2.0\"\n        freeCompilerArgs += listOf(\"-Xopt-in=kotlin.RequiresOptIn\")\n    }\n}\n\n\u002F\u002F New\nkotlin {\n    compilerOptions {\n        jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)\n        languageVersion.set(org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_2_0)\n        optIn.add(\"kotlin.RequiresOptIn\")\n    }\n}\n```\n\n**Note:** With built-in Kotlin, `jvmTarget` defaults to `android.compileOptions.targetCompatibility`, so it may be optional if you already set `compileOptions`.\n\n### Step 4: Migrate kotlin.sourceSets to android.sourceSets\n\nWith built-in Kotlin, only `android.sourceSets {}` with the `kotlin` set is supported:\n```kotlin\n\u002F\u002F NOT SUPPORTED with built-in Kotlin:\nkotlin.sourceSets.named(\"main\") {\n    kotlin.srcDir(\"additionalSourceDirectory\u002Fkotlin\")\n}\n\n\u002F\u002F Correct:\nandroid.sourceSets.named(\"main\") {\n    kotlin.directories += \"additionalSourceDirectory\u002Fkotlin\"\n}\n```\n\nFor generated sources, use the Variant API:\n```kotlin\nandroidComponents.onVariants { variant ->\n    variant.sources.kotlin!!.addStaticSourceDirectory(\"additionalSourceDirectory\u002Fkotlin\")\n}\n```\n\n### Per-Module Migration Strategy\n\nFor large projects, migrate module-by-module:\n\n1. Disable globally: `android.builtInKotlin=false` in `gradle.properties`\n2. Enable per migrated module by applying the opt-in plugin:\n   ```kotlin\n   plugins {\n       id(\"com.android.built-in-kotlin\") version \"AGP_VERSION\"\n   }\n   ```\n3. Follow Steps 1-4 for that module\n4. Once all modules are migrated, remove `android.builtInKotlin=false` and all `com.android.built-in-kotlin` plugins\n\n### Optional: Disable Kotlin for Non-Kotlin Modules\n\nFor modules that contain **no Kotlin sources**, disable built-in Kotlin to save build time:\n```kotlin\nandroid {\n    enableKotlin = false\n}\n```\n\n### Opt-Out (Temporary)\n\nIf blocked by plugin incompatibilities, opt out temporarily:\n```properties\n# gradle.properties\nandroid.builtInKotlin=false\nandroid.newDsl=false  # also required if using new DSL opt-out\n```\n\n**Warning:** Ask the user if they want to opt out, and if so, remind them this is a temporary measure.\n\n## Plugin Compatibility\n\nSee [references\u002FPLUGIN-COMPATIBILITY.md](references\u002FPLUGIN-COMPATIBILITY.md) for the full compatibility table with known compatible versions, opt-out flag workarounds, and broken plugins.\n\n**Before migrating**, inventory all plugins in the project and check each against that table. If any plugin is broken without workaround, inform the user. If plugins need opt-out flags, add them to`gradle.properties` and note them as temporary workarounds.\n\n## Gradle Properties Default Changes\n\nAGP 9.0 changes the defaults for many Gradle properties. Check `gradle.properties` for any explicitly set values that may now conflict. \nKey changes:\n\n| Property                                             | Old Default | New Default | Action                                            |\n|------------------------------------------------------|-------------|-------------|---------------------------------------------------|\n| `android.uniquePackageNames`                         | `false`     | `true`      | Ensure each library has a unique namespace        |\n| `android.enableAppCompileTimeRClass`                 | `false`     | `true`      | Refactor `switch` on R fields to `if\u002Felse`        |\n| `android.defaults.buildfeatures.resvalues`           | `true`      | `false`     | Enable `resValues = true` where needed            |\n| `android.defaults.buildfeatures.shaders`             | `true`      | `false`     | Enable shaders where needed                       |\n| `android.r8.optimizedResourceShrinking`              | `false`     | `true`      | Review R8 keep rules                              |\n| `android.r8.strictFullModeForKeepRules`              | `false`     | `true`      | Update keep rules to be explicit                  |\n| `android.proguard.failOnMissingFiles`                | `false`     | `true`      | Remove invalid ProGuard file references           |\n| `android.r8.proguardAndroidTxt.disallowed`           | `false`     | `true`      | Use `proguard-android-optimize.txt` only          |\n| `android.r8.globalOptionsInConsumerRules.disallowed` | `false`     | `true`      | Remove global options from library consumer rules |\n| `android.sourceset.disallowProvider`                 | `false`     | `true`      | Use `Sources` API on androidComponents            |\n| `android.sdk.defaultTargetSdkToCompileSdkIfUnset`    | `false`     | `true`      | Specify `targetSdk` explicitly                    |\n| `android.onlyEnableUnitTestForTheTestedBuildType`    | `false`     | `true`      | Only if testing non-default build types           |\n\nCheck for and remove properties that now cause errors:\n- `android.r8.integratedResourceShrinking` — removed, always on\n- `android.enableNewResourceShrinker.preciseShrinking` — removed, always on\n\n## Pure Android Tips\n\nFor non-KMP Android modules upgrading to AGP 9.0, follow the \"Built-in Kotlin Migration\" steps above,\nthen review the \"Gradle Properties Default Changes\" table. Additional changes:\n\n- **Review new DSL interfaces** — `BaseExtension` is removed; use `CommonExtension` or specific extension types\n- **Java default changed** from Java 8 to Java 11 — ensure `compileOptions` reflects this\n\n## Verification\n\nAfter migration, verify with the [checklist](assets\u002Fchecklist.md). Key checks:\n\n1. `.\u002Fgradlew build` succeeds with no errors\n2. All platform targets build successfully (Android, iOS via `xcodebuild`, Desktop, JS\u002FWasm)\n3. `.\u002Fgradlew :shared:allTests` and Android unit tests pass\n4. No `com.android.library` or `com.android.application` in KMP modules\n5. No `org.jetbrains.kotlin.android` in AGP 9.0 modules\n6. Source sets use correct names (`androidMain`, `androidHostTest`, `androidDeviceTest`)\n7. No deprecation warnings about variant API or DSL\n\n## Common Issues\n\nSee [references\u002FKNOWN-ISSUES.md](references\u002FKNOWN-ISSUES.md) for details. Key gotchas:\n\n### KMP Library Plugin Issues\n- **BuildConfig unavailable** in library modules — use DI\u002F`AppConfiguration` interface, or use [BuildKonfig](https:\u002F\u002Fgithub.com\u002Fyshrsmz\u002FBuildKonfig) or [gradle-buildconfig-plugin](https:\u002F\u002Fgithub.com\u002Fgmazzo\u002Fgradle-buildconfig-plugin) for compile-time constants\n- **No build variants** — single variant architecture; compile-time constants can use BuildKonfig\u002Fgradle-buildconfig-plugin flavors, but variant-specific dependencies\u002Fresources\u002Fsigning must move to app module\n- **NDK\u002FJNI unsupported** in new plugin — extract to separate `com.android.library` module\n- **Compose resources crash** without `androidResources { enable = true }`\n- **Consumer ProGuard rules silently dropped** if not migrated to `consumerProguardFiles.add(file(...))` in new DSL\n- **KSP** requires version 2.3.1+ for AGP 9.0 compatibility\n\n### AGP 9.0 General Issues\n- **BaseExtension removed** — convention plugins using old DSL types need rewriting to use `CommonExtension`\n- **Variant APIs removed** — `applicationVariants`, `libraryVariants`, `variantFilter` replaced by `androidComponents`\n- **Convention plugins** need refactoring — old `android {}` extension helpers are obsolete\n\n## Reference Files\n\n- [DSL Reference](references\u002FDSL-REFERENCE.md) — side-by-side old→new DSL mapping\n- [Version Matrix](references\u002FVERSION-MATRIX.md) — AGP\u002FGradle\u002FKGP\u002FCompose\u002FIDE compatibility\n- [Plugin Compatibility](references\u002FPLUGIN-COMPATIBILITY.md) — third-party plugin status and workarounds\n",{"name":5,"license":14,"metadata":23,"description":26},{"author":24,"version":25},"JetBrains","1.0.0","Migrates Kotlin Multiplatform (KMP) projects to Android Gradle Plugin 9.0+. Handles plugin replacement (com.android.kotlin.multiplatform.library), module splitting, DSL migration, and the new default project structure. Use when upgrading AGP, when build fails due to KMP+AGP incompatibility, or when the user mentions AGP 9.0, android multiplatform plugin, KMP migration, or com.android.kotlin.multiplatform.library.\n","main","a22dccb577b5d59b83ac12e9e784b16d919df95d","used skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration",1,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island","https:\u002F\u002Fgithub.com\u002FDarshan8610","2026-10-31 11:29:16",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Darshan8610\u002FDynamic-Island --skill kotlin-tooling-agp9-migration",{"tool":40,"command":41},"bunx","bunx skills add Darshan8610\u002FDynamic-Island --skill kotlin-tooling-agp9-migration",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Darshan8610\u002FDynamic-Island --skill kotlin-tooling-agp9-migration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002FSKILL.md",true,[48,54,60,64,68,72,76,80,84],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fchecklist.md","ASSET","资产文件",3386,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002Fassets\u002Fchecklist.md",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002FDSL-REFERENCE.md","REFERENCE","参考文档",15974,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002Freferences\u002FDSL-REFERENCE.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002FKNOWN-ISSUES.md",18509,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002Freferences\u002FKNOWN-ISSUES.md",{"path":65,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002FMIGRATION-APP-SPLIT.md",14419,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002Freferences\u002FMIGRATION-APP-SPLIT.md",{"path":69,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002FMIGRATION-FULL-RESTRUCTURE.md",12514,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002Freferences\u002FMIGRATION-FULL-RESTRUCTURE.md",{"path":73,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002FMIGRATION-LIBRARY.md",14695,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002Freferences\u002FMIGRATION-LIBRARY.md",{"path":77,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002FPLUGIN-COMPATIBILITY.md",5443,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002Freferences\u002FPLUGIN-COMPATIBILITY.md",{"path":81,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002FVERSION-MATRIX.md",10341,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002Freferences\u002FVERSION-MATRIX.md",{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Fanalyze-project.sh","SCRIPT","脚本",8329,"https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F06-Kotlin-kotlin-agent-skills\u002Fskills\u002Fkotlin-tooling-agp9-migration\u002Fscripts\u002Fanalyze-project.sh",[91,100,107,116,123,131],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":95,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M7D6EQ4V97KQAAJDX03NH1PK","security-review","Security code review for vulnerabilities. Use when asked to \"security review\", \"find vulnerabilities\", \"check for security issues\", \"audit security\", \"OWASP review\", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.","CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F25-getsentry-skills\u002Fskills\u002Fsecurity-review\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F25-getsentry-skills\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M7D6EFH7JA3N91H85BMF90X5","security-model","Define, review, or update SECURITY_MODEL.md files that tell security review tools a repository's threat model, trust boundaries, invariants, reportable finding classes, and exclusions. Use when asked to \"write a security model\", \"threat model this repo for scanners\", \"define security review scope\", \"what counts as a vulnerability here\", \"update SECURITY_MODEL.md\", \"why did the scanner flag or miss this\", or to check whether existing security guidance still matches the code. Not for running a security review or editing the SECURITY.md disclosure policy.","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F25-getsentry-skills\u002Fskills\u002Fsecurity-model\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":111,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":18},"01M7D69FRBB22BSGEJBFH71JA4","mobile-harness","Portable Android and iOS device-control harness for agents. Use when an agent needs to control or automate Android\u002FiOS devices — tap, swipe, screenshot, app control — locally (ADB\u002FPortal\u002FSimulator) or on Mobilerun cloud devices.","MIT","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F23-droidrun-mobile-harness\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F23-droidrun-mobile-harness\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":111,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":18},"01M7D5Z37XC1K629HJP6DMA2CF","compose-agent","Helps AI coding assistants write modern Jetpack Compose: correct state, side effects, performance-aware modifiers, Navigation 3, Paging 3 in Compose, coroutines on lifecycle, animations, UI tests, focus\u002Fkeyboard navigation, Compose Multiplatform boundaries, idiomatic Kotlin, and well-shaped composable APIs. Targets the mistakes LLMs actually make in Compose code. Use when reading, writing, or reviewing Compose projects.","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F20-hamen-compose_skill\u002Fskills\u002Fcompose-agent\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":111,"licenseFileUrl":127,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":18},"01M7D5ABYRS59CE3SVC8DHC35F","material-design-3-ui","Design, redesign, review, or implement user interfaces using Google Material Design 3 (M3), Material You, and optional Material 3 Expressive principles. Use for UI\u002FUX screens, app flows, design systems, component selection, theming, responsive\u002Fadaptive layouts, accessibility audits, Figma-ready specifications, or developer handoff where Material Design 3 is required.","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F18-skydashnet-material-design-3-ui-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F18-skydashnet-material-design-3-ui-skill\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":111,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":18},"01M7D5A2RS4MAX9H0CGT60NQ1B","web-design-guidelines","Web platform design and accessibility guidelines. Use when building web interfaces, auditing accessibility, implementing responsive layouts, or reviewing web UI code. Triggers on tasks involving HTML, CSS, web components, WCAG compliance, responsive design, or web performance.","https:\u002F\u002Fgithub.com\u002FDarshan8610\u002FDynamic-Island\u002Fblob\u002Fmain\u002Fused skills\u002F17-ehmo-platform-design-skills\u002Fskills\u002Fweb\u002FSKILL.md",[],[]]