All skills
kotlin avatar

/kotlin-tooling-native-build-performance

@87bec33 official
by kotlinkotlin/kotlin-agent-skills1.1k stars
42

Diagnoses and fixes slow Kotlin/Native compilation and linking in Kotlin Multiplatform projects that target iOS. Use when the user reports slow iOS or shared-framework builds, long linkDebug*/linkRelease* or XCFramework tasks, cold CI builds that re-download the Kotlin/Native toolchain, KSP or other generated code on the native path, transitiveExport usage, or asks for a local-development versus CI build performance plan.

Use this Skill: https://skilld.dev/gh/kotlin/kotlin-agent-skills/kotlin-tooling-native-build-performance

This session only. Nothing lands on disk.

referencesexperimental.md

≈299 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Experimental Switches

Offer these last, label them experimental in the report, and keep them out of the default recommendation set. Get the user's agreement before enabling any of them.

Incremental compilation of klib artifacts

# gradle.properties
kotlin.incremental.native=true

Recompiles only the changed part of a klib into the final binary, which helps warm rebuilds after small edits. If it causes broken or inconsistent builds, revert it and file a YouTrack issue with a minimized reproducer.

smallBinary

The smallBinary binary option sets -Oz as the default LLVM optimization level to shrink release binaries and their link time. It can cost runtime performance, so verify hot paths before keeping it. It applies to release binaries — it is not a fix for slow debug loops.

LLVM backend customization

Customizing the LLVM backend is a last resort when nothing else helps, and is out of scope for a routine performance pass — point the user at the official documentation instead of improvising compiler flags.

Docs: https://kotlinlang.org/docs/native-binary-options.html and https://kotlinlang.org/docs/native-improving-compilation-time.html

Source: SKILL.md on GitHub

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a diagnostic framework and an audit script to optimize Kotlin/Native build performance. It is safe for its intended purpose, but it carries a low risk of indirect prompt injection due to the processing of untrusted project files during the analysis phase.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 87bec33. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 3 months ago
Other metadata
metadata
{
  "author": "JetBrains",
  "version": "1.0.0",
  "tested_models": "openai/gpt-5.5, openai/gpt-5.4-mini",
  "last_eval": "2026-07-06"
}

README badge

README badge for kotlin/kotlin-agent-skills/kotlin-tooling-native-build-performance