kotlin-tooling-cocoapods-spm-migration
Skill4 starsChanged 34 days agoCC-BY-4.0View on GitHub
Migrate KMP projects from CocoaPods (kotlin("native.cocoapods")) to Swift Package Manager (swiftPMDependencies DSL) — replaces pod() with swiftPackage(), transforms cocoapods.* imports to swiftPMImport.*, and reconfigures the Xcode project.
- Deletes or force-pushes
3 other projects use a version of this, 1 of them edited; 1 of 1 edited versions we compared changed its rules; 0 new projects in the last 4 weeks, against 1 the 4 before.
How people change it
1 of 1 edited versions changed its rules.
Of the 1 edited version we compared: 1 made changes of their own.
Rules people drop
- If the user wants to skip the Xcode build or no Xcode project is found, proceed without it — the Kotlin compilation from step 2 is sufficient to continue.dropped by 1 of 1
- Read the current Kotlin version from
gradle/libs.versions.toml(orbuild.gradle.kts).dropped by 1 of 1 - Skip this step if the project already uses Kotlin 2.4.0-Beta2 or later (recorded in Phase 1.0a).dropped by 1 of 1
- Update to
2.4.0-Beta2(or the latest available release with Swift Import support) ingradle/libs.versions.toml:dropped by 1 of 1 - Version preservation: Do NOT bump dependency versions during migration. Use the exact same version that was specified in the
cocoapods {}block. …dropped by 1 of 1 - If the
cocoapods.framework {}block containedexport(project(...))ortransitiveExport = true, preserve these in the newbinaries.framework {}block — they are essential for multi-module projects where the framework exports child modules.dropped by 1 of 1 - Place this at the top of each
build.gradle.ktsfile that callsswiftPackage()orlocalSwiftPackage().dropped by 1 of 1 - When a consuming module had
pod("GoogleMaps") { linkOnly = true }because a child module provides the cinterop bindings:dropped by 1 of 1
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Cooling: 0 new projects took it in the last 4 weeks, 0× the 4 weeks before.thin data
Most recently taken up by
- TeddyAlbina/skillsword for word, first seen Nov 1, 2026
- Kotlin/kotlin-agent-skillsword for word, first seen Nov 1, 2026
- JetBrains/skillsedited, first seen Apr 28, 2026
Other versions3 projects use a version of this.
Word for word · 2
- Kotlin/kotlin-agent-skills★ 1.1k100% same
- TeddyAlbina/skills★ 2100% same
Edited · 1
- JetBrains/skills★ 38655% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
The file
Show its rules and text
We split this skill into the rules it gives an agent
39 rules. About 0 are common, 9 are distinctive, and 30 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
30
Very specific
Tied to their project's names, files or tools. Probably skip.
Licensed with conditions — read it at the source. We count its rules but don't quote them. Read them on GitHub.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

