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.
Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Kotlin/kotlin-agent-skillsnpx agentmods add skills/kotlin/kotlin-agent-skills/kotlin-tooling-cocoapods-spm-migrationWrote 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.
[](https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-cocoapods-spm-migration)<a href="https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-cocoapods-spm-migration"><img src="https://agentmods.dev/badge/skills/kotlin/kotlin-agent-skills/kotlin-tooling-cocoapods-spm-migration/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.
<a href="https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-cocoapods-spm-migration"><img src="https://agentmods.dev/badge/skills/kotlin/kotlin-agent-skills/kotlin-tooling-cocoapods-spm-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk warn
- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.08107 |
| Opus 5 | $0.00034 | $0.04054 |
| Sonnet 5 | $0.00014 | $0.01621 |
| Haiku 4.5 | $0.00007 | $0.00811 |
Grade C, and why
kotlin-tooling-cocoapods-spm-migration scanned grade C with 1 finding 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 13d ago.
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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf Podfile Podfile.lock Pods/ How it starts
The opening of the file, as written. The whole thing — 524 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CocoaPods to SwiftPM Migration for KMP
Migrate Kotlin Multiplatform projects from kotlin("native.cocoapods") to swiftPMDependencies {} DSL.
Requirements
- Kotlin: 2.4.0-Beta2 or later (first public release with
swiftPMDependenciessupport, available on Maven Central) - Xcode: 16.4 or 26.0+
- iOS Deployment Target: 16.0+ recommended
Migration Overview
IMPORTANT: Keep the cocoapods {} block and plugin active until Phase 6. The migration adds swiftPMDependencies {} alongside the existing CocoaPods setup first, reconfigures Xcode, and only then removes CocoaPods.
| Phase | Action |
|---|---|
| 1 | Analyze existing CocoaPods configuration |
| 2 | Update Gradle configuration (repos, Kotlin version) |
| 3 | Add swiftPMDependencies {} alongside existing cocoapods {} |
| 4 | Transform Kotlin imports |
| 5 | Reconfigure iOS project and deintegrate CocoaPods |
| 6 | Remove CocoaPods plugin from Gradle |
| 7 | Verify Gradle build and Xcode project build |
| 8 | Write MIGRATION_REPORT.md |
Phase 1: Pre-Migration Analysis
1.0 Verify the project builds
Before starting migration, identify the module to migrate and confirm it compiles successfully.
-
Find the module that uses CocoaPods — look for
build.gradle.ktsfiles containingcocoapods:grep -rl "cocoapods" --include="build.gradle.kts" .Extract the module name from the path (e.g.,
./shared/build.gradle.kts→ module name isshared). Note: multiple modules may use CocoaPods — record all of them. Typically only the module that produces the framework linked into the iOS app needsswiftPMDependencies; the others only need CocoaPods removed (Phase 6). -
Compile Kotlin code — run the Kotlin compilation task for that module to verify the Kotlin source compiles:
./gradlew :moduleName:compileKotlinIosSimulatorArm64Replace
moduleNamewith the directory name of the module (e.g.,:shared:compileKotlinIosSimulatorArm64). This is faster than a fullbuild(which also runs release linkage) and sufficient to verify Kotlin code correctness.
What ships with it
5 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.
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.
- 13d ago First seen · 524 lines · 69 tokens per session scan C 06d75416ed87
kotlin-tooling-cocoapods-spm-migration is a skill published in the GitHub repository Kotlin/kotlin-agent-skills (1,044 stars, last pushed yesterday), licensed Apache-2.0. It adds 69 tokens to every session and 8,107 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
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"…
wear-compose-m3
Expert guidance for working with Wear OS Compose Material3. Use this skill when creating, updating, or migrating Wear OS projects. This includes the androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3 libraries. Also working with core components such as AppScaffold…
compose-animations
Use when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one state, switching composable content, or choosing between AnimatedVisibility, animateAsState, rememberTransition, AnimatedContent, and Crossfade.
compose-focus-navigation
Use when writing or reviewing Jetpack Compose UI for TV, keyboard, desktop, accessibility focus, D-pad navigation, FocusRequester, focusProperties, key events, or initial focus behavior.
kmp-lsp
Kotlin/Java/Swift LSP server for code navigation in Android and iOS codebases. Use when navigating Kotlin, Java, or Swift source files: finding class definitions, listing symbols, jumping to implementations, finding all usages, checking type signatures, or switching workspace between projects. Triggers for: "find this…
ios-swift-patterns
SwiftUI, UIKit, MVVM, Combine, async/await, Core Data, and App Store submission patterns.