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.
npx agentmods add skills/kvdm-co-pilot/create-cmp/cmp-upgradenpx skills add kvdm-co-pilot/create-cmp --skill cmp-upgradegit clone --depth 1 https://github.com/kvdm-co-pilot/create-cmpWrote 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/kvdm-co-pilot/create-cmp/cmp-upgrade)<a href="https://agentmods.dev/skills/kvdm-co-pilot/create-cmp/cmp-upgrade"><img src="https://agentmods.dev/badge/skills/kvdm-co-pilot/create-cmp/cmp-upgrade.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00205 | $0.01347 |
| Opus 5 | $0.00102 | $0.00674 |
| Sonnet 5 | $0.00041 | $0.00269 |
| Haiku 4.5 | $0.00020 | $0.00135 |
Grade A, and why
cmp-upgrade 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 4d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.
cmp-upgrade — move a KMP project to a proven-green version set
Your job: turn "upgrade my KMP versions" (or "my build broke after a version bump") into a project
sitting on a proven-green version set — one that is known to build on Android + iOS — without
hand-editing versions one at a time. You wrap the engine's upgrade command (exposed on the CLI as
the upgrade subcommand). Do not hand-edit libs.versions.toml yourself when the engine can do
it — the engine diffs, guards the lockstep, writes surgically, and backs up.
Why this exists. The recurring pain of KMP is that Kotlin / KSP / Compose / Room / AGP move in lockstep or the build dies. Upgrading "just Kotlin" is how projects break:
kspmust always be<kotlin>-<kspVersion>(e.g. kotlin2.2.20↔ ksp2.2.20-2.0.4), Room on iOS needsksp.useKSP2=true, and AGP pins a minimum Gradle wrapper. A proven-green set moves all of them together — one command instead of a day of dependency archaeology.
The workflow: diff → apply → verify
# 1. DIFF (safe, writes nothing) — show what the upgrade would change:
node <repo>/bin/create-cmp.mjs upgrade --dry-run
# (add --target-dir <dir> when not running from the project root,
# --set <id> to target a specific registry set instead of the latest)
# 2. APPLY — after the user has seen and accepted the diff:
node <repo>/bin/create-cmp.mjs upgrade --yes
# 3. VERIFY — prove the build is green (or chain it: upgrade --yes --verify):
node <repo>/bin/create-cmp.mjs verify
(If invoked from the published package: npx create-cmp-cli@latest upgrade ….)
What the engine does when applying:
- Rewrites only the changed version values in
gradle/libs.versions.toml— surgical line edits; comments, formatting, and every unrelated line are preserved byte-for-byte. - Adds/updates the
gradle.propertiesflags the set requires (e.g.ksp.useKSP2=true). - Updates the Gradle wrapper
distributionUrlwhen the set pins one. - Rewrites
compileSdk/targetSdkincomposeApp/build.gradle.ktswhen the set pins them (itsandroidSdkblock) — the Android SDK levels are coupled to the set (a newer AGP + newer androidx force a highercompileSdk), so the version set manages them too, not just the catalog. - Backs up every touched file as
<file>.bak-upgradebefore writing and prints the exactmvcommands to revert. - Versions the project declares that the set doesn't know are left untouched (and warned), so project-specific dependencies survive.
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.
- 4d ago First seen · 89 lines · 205 tokens per session scan A 3a599cd3fc31
cmp-upgrade is a skill published in the GitHub repository kvdm-co-pilot/create-cmp (0 stars, last pushed yesterday), licensed MIT. It adds 205 tokens to every session and 1,347 once invoked, about $0.0010 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-31.
Other skills, from other repositories
compose-multiplatform
Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…
mapkit
MapKit + CoreLocation for iOS (iOS 17–26 era). SwiftUI Map with MapContentBuilder (Marker / Annotation / MapPolyline / MapPolygon / MapCircle / UserAnnotation), MapCameraPosition & MapCamera with onMapCameraChange, mapStyle / mapControls / selection, MapReader + MapProxy coordinate conversion, and Look Around…
navigation
Navigation for Android and Kotlin Multiplatform/iOS apps - all three approaches in one place. (A) Jetpack Navigation Compose (androidx.navigation - NavController, NavHost, composable , type-safe @Serializable routes, nested graphs, bottom nav, deep links, results via SavedStateHandle). (B) Jetpack Navigation 3 / Nav3…
kmp-networking
Ktor HTTP client for Kotlin Multiplatform - shared API layer in commonMain with per-target engines (OkHttp/Android engine on Android, Darwin on iOS), kotlinx.serialization, and shared error handling. Use for multiplatform or shared networking. For an Android-only Ktor/OkHttp client use ktor-patterns. For deeper…
kmp-repositories
Repository pattern for Kotlin Multiplatform. Shared interfaces with platform-specific implementations, clean data layer architecture.
shared-coroutines
Coroutines and Flow in Kotlin Multiplatform shared code - expect/actual dispatchers, iOS main-thread/Darwin constraints, a CoroutineScope shared from commonMain, and exposing StateFlow/Flow to Swift (KMP-NativeCoroutines/SKIE). Use for commonMain/iosMain concurrency. For general, non-multiplatform coroutine and Flow…