kotlin-tooling-native-build-performance

kotlin-tooling-native-build-performance is a skill for Claude Code, Codex from Kotlin/kotlin-agent-skills. It costs 96 tokens per session (1,875 once invoked), scanned A, original, Apache-2.0.

Build-performance diagnosis for Kotlin Multiplatform projects that compile shared Kotlin code for iOS. Kotlin/Native is the technology that turns Kotlin into native iOS code.

In plain words
What is it for?
Use it to investigate slow debug or release builds, long framework-linking tasks, repeated toolchain downloads, configuration delays, and builds that compile more iOS targets than needed.
Why use it?
It helps identify which build phase is slow before changing configuration. This can shorten local feedback and CI build times without changing required release output.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate slow debug or release builds, long framework-linking tasks, repeated toolchain downloads, configuration delays, and builds that compile more iOS targets than needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kotlin/kotlin-agent-skills/kotlin-tooling-native-build-performance
About the project

Kotlin/kotlin-agent-skills is a collection of packaged instructions, scripts, and resources that help coding agents handle projects written in Kotlin. It is for developers using Kotlin, with skills covering areas such as backend frameworks and build tooling. The catalogue entries are the individual Kotlin-focused skills distributed from the repository.

Kotlin/kotlin-agent-skills · 1,039 stars · on GitHub · kotlinlang.org

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Kotlin/kotlin-agent-skills --skill kotlin-tooling-native-build-performance
Clone the repo
git clone --depth 1 https://github.com/Kotlin/kotlin-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kotlin-tooling-native-build-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/kotlin/kotlin-agent-skills/kotlin-tooling-native-build-performance/github.svg)](https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-native-build-performance)
Your own site
<a href="https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-native-build-performance"><img src="https://agentmods.dev/badge/skills/kotlin/kotlin-agent-skills/kotlin-tooling-native-build-performance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kotlin-tooling-native-build-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-native-build-performance"><img src="https://agentmods.dev/badge/skills/kotlin/kotlin-agent-skills/kotlin-tooling-native-build-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,875 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 16 Jul 2026
  • Snyk pass 16 Jul 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.01875
Opus 5 $0.00048 $0.00937
Sonnet 5 $0.00019 $0.00375
Haiku 4.5 $0.00010 $0.00187

Measured 12d ago against content hash 948fcecafa9f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

kotlin-tooling-native-build-performance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/audit-native-build.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kotlin-tooling-native-build-performance/SKILL.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kotlin/Native Build Performance

Turn "the iOS build is slow" into a measured diagnosis and a small set of safe fixes. Two rules apply throughout:

  1. Never trade away required release behavior. A faster local loop must not change what CI publishes.
  2. Measure before and after with the same command and the same build state. An unmeasured fix is a guess.

Step 0: Classify the Slow Scenario

Establish four facts before editing anything: where (local or CI), what (debug feedback loop or release/distribution artifact), state (first build, clean, warm, or no-op), and phase (which tasks dominate the log). Then match the dominant symptom:

Symptom in the build log Likely cause Read
linkRelease* or *ReleaseXCFramework tasks in a local development loop Building distribution artifacts for development artifacts-and-targets
Kotlin/Native compiler distribution downloaded on every CI run ~/.konan not preserved between runs caching-and-gradle
Long pause before the first task starts Configuration phase, no configuration cache caching-and-gradle
All iOS targets build when only one simulator is needed Broad task (build, assemble, assemble*XCFramework) or unused targets artifacts-and-targets
ksp* tasks ahead of compileKotlinIos* Generated-code work on the native path exports-and-generated-code
Small source edit recompiles and relinks everything Compiler caches disabled, or missing incrementality caching-and-gradle, experimental
Machine overloaded while several link* tasks run at once Parallel native linking caching-and-gradle, worker-limit caveat

Step 1: Audit and Measure

Read the full file on GitHub · 155 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 155 lines · 96 tokens per session scan A 948fcecafa9f

Subscribe to this mod's changes

kotlin-tooling-native-build-performance is a skill published in the GitHub repository Kotlin/kotlin-agent-skills (1,039 stars, last pushed 18d ago), licensed Apache-2.0. It adds 96 tokens to every session and 1,875 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

xcode-compilation-analyzer

Analyze Swift and mixed-language compile hotspots using build timing summaries and Swift frontend diagnostics, then produce a recommend-first source-level optimization plan. Use when a developer reports slow compilation, type-checking warnings, expensive clean-build compile phases, long CompileSwiftSources tasks…

AvdLee/Xcode-Build-Optimization-Agent-Skill · 74 tokens

dagger-hilt-expert

Expert guidance for Dagger and Hilt dependency injection in Android. Use when implementing DI, creating modules, configuring scopes, optimizing performance, testing with Hilt, setting up multi-module architecture, using assisted injection, or debugging DI issues. Triggers on "dagger", "hilt", "dependency injection"…

JosephSanjaya/skills · 145 tokens

kotlin-mcp-server-expert

Expert guidance for building production-grade MCP (Model Context Protocol) servers in Kotlin using the official Kotlin Multiplatform SDK. Use this skill whenever the user is building, designing, debugging, or improving an MCP server in Kotlin — including tool registration, resource templates, prompt handling…

JosephSanjaya/skills · 169 tokens

koog-expert

Expert guide for JetBrains Koog (Kotlin AI agents). Use whenever the user mentions Koog, AIAgent, ToolRegistry, strategy graphs, koog-ktor, history compression, MCP tools, structured LLM output, or building agents in a Ktor backend, Spring Boot service, Android/iOS/desktop KMP app, JS, or WasmJS. Also use for…

JosephSanjaya/skills · 122 tokens

kotlin-coroutine-expert

Expert guidance on Kotlin Coroutines — structured concurrency, dispatcher selection, race condition prevention (Mutex/Channel/StateFlow), error propagation, Flow patterns, testing with runTest/TestDispatcher, and production optimization. Use this skill whenever the user writes coroutine code, asks about async Kotlin…

JosephSanjaya/skills · 89 tokens

kotlin-k2-expert

Expert knowledge for Kotlin K2 compiler plugin development, architecture, optimization, and Kotlin 2.4.0 compatibility. Use when: building K2 compiler plugins (FIR + IR), debugging FIR/IR generation issues, implementing FirDeclarationGenerationExtension or IrGenerationExtension, migrating K1 plugins to K2…

JosephSanjaya/skills · 193 tokens