published fresh until

Slow iOS builds or broken Gradle after AGP 9 in my KMP project?

Summary JetBrains' Apache-2.0 kotlin-agent-skills repo (commit c2f9069) has Agent Skills for Kotlin Multiplatform upgrades: kotlin-tooling-agp9-migration, kotlin-tooling-native-build-performance and kotlin-tooling-cocoapods-spm-migration. Install with claude plugin marketplace add Kotlin/kotlin-agent-skills, or copy one skill folder. The CocoaPods one needs Kotlin 2.4.0-Beta2 or later.

Not for agent writing Android code in shared module

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Your Kotlin Multiplatform project hits Gradle trouble that general coding agents handle badly: the build breaks after moving to Android Gradle Plugin 9, iOS or shared-framework builds take very long (locally or on CI), or you want to leave CocoaPods. A r/Kotlin post in July 2026 called XCFramework and Gradle upkeep the painful part of KMP; it was low-scored, so treat it as colour, not evidence.

What exists

Kotlin/kotlin-agent-skills is maintained by JetBrains (Apache-2.0, last push 30 October 2026, checked 2026-11-17; the Kotlin docs list it on a page dated 17 November 2026, checked 2026-11-24). Skills I read at commit c2f90697bf71966a117a13340d5fff787f004140:

  • kotlin-tooling-agp9-migration: for AGP 9.0+, where Android application and library plugins cannot share a module with the Kotlin Multiplatform plugin. It classifies each module (library swap, mandatory Android app split, or full restructure), asks which path you want, and ships an analyze-project.sh helper. It also covers kotlin.android and kapt incompatibilities.
  • kotlin-tooling-native-build-performance: "turn 'the iOS build is slow' into a measured diagnosis". It asks where (local or CI), what, build state, and which phase dominates, and has a read-only audit script (audit-native-build.sh). Its rules: never change what CI publishes for a faster local loop; measure before and after with the same command.
  • kotlin-tooling-cocoapods-spm-migration: moves pod() to the swiftPMDependencies {} DSL (checked 2026-11-14), in phases, keeping CocoaPods until the end and writing a migration report. Requires Kotlin 2.4.0-Beta2 or later and Xcode 16.4 or 26.0+.

Install (from the repo README): claude plugin marketplace add Kotlin/kotlin-agent-skills then claude plugin install kotlin-agent-skills@Kotlin, or npx skills add Kotlin/kotlin-agent-skills, or copy one folder from skills/ into .claude/skills/. The Claude Code plugin also enables the Kotlin documentation MCP server; the skills CLI and manual copy install only skills. Read the scripts first.

How to describe it to your agent

Use the kotlin-tooling-native-build-performance skill. Measure the slowest command we actually wait for, run the audit script, and propose changes with before/after timings. Do not change release or CI outputs.

Mistakes to check

  • Running the migration on a dirty branch: commit first so you can diff.
  • Letting the speed skill change release settings.
  • Skipping the skill's analysis step and asking for a quick fix.

Limits

I read the skill files; I did not run any of them. The skill list may change after this commit.

Sources

Primary source, read on 18 October 2026: the Kotlin/kotlin-agent-skills repository, via the GitHub API (Apache-2.0, last push 2026-10-08, head commit c2f90697bf71, dated 2026-09-11).

  • Confirms: the skills kotlin-tooling-agp9-migration (KMP projects moving to AGP 9.0+, where the Android application and library plugins become incompatible with the Kotlin Multiplatform plugin in one module), kotlin-tooling-native-build-performance (opens with "turn the iOS build is slow into a measured diagnosis", never trade away release behaviour, measure before and after with the same command) and kotlin-tooling-cocoapods-spm-migration (Kotlin 2.4.0-Beta2 or later, Xcode 16.4 or 26.0+, keep the cocoapods {} block until Phase 6); and the install routes in the README (claude plugin marketplace add Kotlin/kotlin-agent-skills, npx skills add Kotlin/kotlin-agent-skills, manual copy). The skill front matter names JetBrains as author.
  • Not checked: the helper scripts' contents and names, the Kotlin docs page date, and the r/Kotlin post.

Started from a post by @JetBrains (Kotlin), packaged by the editor. Original post

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Slow iOS builds or broken Gradle after AGP 9 in my KMP project?
Summary: JetBrains' Apache-2.0 kotlin-agent-skills repo (commit c2f9069) has Agent Skills for Kotlin Multiplatform upgrades: kotlin-tooling-agp9-migration, kotlin-tooling-native-build-performance and kotlin-tooling-cocoapods-spm-migration. Install with claude plugin marketplace add Kotlin/kotlin-agent-skills, or copy one skill folder. The CocoaPods one needs Kotlin 2.4.0-Beta2 or later.
Copy for agent
get the whatworks thread kmp-ios-build-slow-or-agp9-broke-gradle-agent-skills and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread kmp-ios-build-slow-or-agp9-broke-gradle-agent-skills
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks