kotlin-tooling-cocoapods-spm-migration

kotlin-tooling-cocoapods-spm-migration is a skill for Claude Code, Codex from Kotlin/kotlin-agent-skills. It costs 69 tokens per session (8,107 once invoked), scanned C, original, Apache-2.0.

A migration guide for Kotlin Multiplatform projects moving iOS dependencies from CocoaPods to Swift Package Manager, Apple’s system for adding Swift packages.

In plain words
What is it for?
Use it to update Gradle settings, replace dependency declarations and imports, reconfigure the Xcode project, remove CocoaPods, and verify both builds.
Why use it?
It provides an ordered transition so the project can test Swift Package Manager before removing the existing CocoaPods setup.

Skill for Claude CodeCodex

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is pod 'shared', :path => '../shared'.

Good fit Use it to update Gradle settings, replace dependency declarations and imports, reconfigure the Xcode project, remove CocoaPods, and verify both builds.

Compare 6 skills from other repositories ↓
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,044 stars · on GitHub · kotlinlang.org

Install

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.

Clone the repo
git clone --depth 1 https://github.com/Kotlin/kotlin-agent-skills
agentmods
npx agentmods add skills/kotlin/kotlin-agent-skills/kotlin-tooling-cocoapods-spm-migration

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-cocoapods-spm-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/kotlin/kotlin-agent-skills/kotlin-tooling-cocoapods-spm-migration/github.svg)](https://agentmods.dev/skills/kotlin/kotlin-agent-skills/kotlin-tooling-cocoapods-spm-migration)
Your own site
<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.

agentmods 80×15 button for kotlin-tooling-cocoapods-spm-migration

Your own site · 80×15
<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>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,107 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 24 Apr 2026
  • Snyk warn 24 Apr 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.00069 $0.08107
Opus 5 $0.00034 $0.04054
Sonnet 5 $0.00014 $0.01621
Haiku 4.5 $0.00007 $0.00811

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

Security

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/
skills/kotlin-tooling-cocoapods-spm-migration/SKILL.md · 524 lines

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 swiftPMDependencies support, 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.

  1. Find the module that uses CocoaPods — look for build.gradle.kts files containing cocoapods:

    grep -rl "cocoapods" --include="build.gradle.kts" .
    

    Extract the module name from the path (e.g., ./shared/build.gradle.kts → module name is shared). Note: multiple modules may use CocoaPods — record all of them. Typically only the module that produces the framework linked into the iOS app needs swiftPMDependencies; the others only need CocoaPods removed (Phase 6).

  2. Compile Kotlin code — run the Kotlin compilation task for that module to verify the Kotlin source compiles:

    ./gradlew :moduleName:compileKotlinIosSimulatorArm64
    

    Replace moduleName with the directory name of the module (e.g., :shared:compileKotlinIosSimulatorArm64). This is faster than a full build (which also runs release linkage) and sufficient to verify Kotlin code correctness.

Read the full file on GitHub · 524 lines

Files

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.

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. 13d ago First seen · 524 lines · 69 tokens per session scan C 06d75416ed87

Subscribe to this mod's changes

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.

Related

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"…

JosephSanjaya/skills · 145 tokens

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…

android/skills · 101 tokens

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.

chrisbanes/skills · 64 tokens

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.

chrisbanes/skills · 41 tokens

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…

Hessesian/kmp-lsp · 114 tokens

ios-swift-patterns

SwiftUI, UIKit, MVVM, Combine, async/await, Core Data, and App Store submission patterns.

cosmicstack-labs/mercury-agent-skills · 28 tokens