What problem does it solve?
Kotlin/Native builds for iOS targets are often slow due to misconfigured caches, release artifacts built during local development loops, broad framework exports, and cold CI environments that re-download the Kotlin/Native toolchain. This Skill turns a vague "the iOS build is slow" complaint into a measured diagnosis and a small set of safe fixes that never compromise release behavior.
Core Features & Use Cases
- Static Build Audit: Runs a read-only shell script that scans Gradle properties, build scripts, and CI workflows for known performance problems such as disabled compiler daemons, missing configuration cache, transitiveExport usage, and uncached ~/.konan directories.
- Guided Diagnosis Workflow: Classifies the slow scenario by location (local/CI), build type (debug/release), state (cold/warm), and dominant phase, then maps symptoms in the build log to the right fix reference.
- Safe Fix Ordering: Applies fixes in a strict sequence — restore caching defaults, narrow local tasks to debug-only targets, cut export and KSP generated-code cost, and only then consider experimental switches with user agreement.
- Use Case: A developer waits 12 minutes for every shared-module change because their loop runs assembleXCFramework. The Skill identifies that ~690s goes to linkRelease tasks, replaces the local command with linkDebugFrameworkIosSimulatorArm64, enables the configuration cache, and cuts the warm loop to about 80 seconds while leaving CI release artifacts untouched.
Quick Start
Ask the agent to diagnose why your Kotlin Multiplatform iOS build is slow and have it run the audit script against your project root before proposing fixes.