kotlin-lib-mcp: Skill for Claude Code

.claude/skills/analysis-api-bump/SKILL.md

analysis-api-bump is a skill for Claude Code from aoreshkov/kotlin-lib-mcp. It costs 67 tokens per session (1,622 once invoked), scanned A, original, Apache-2.0.

A workflow for upgrading Kotlin together with its version-matched Analysis API libraries and related runtime dependencies. The Analysis API is the part of Kotlin tooling that understands code structure and types.

In plain words
What is it for?
Use it when changing Kotlin versions, fixing Analysis API dependency errors, checking version-locked pins, and verifying that source analysis still resolves types.
Why use it?
These components must use compatible versions; mismatches can cause missing classes, runtime errors, or incomplete type information even when compilation succeeds.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

This is aoreshkov/kotlin-lib-mcp's own configuration. It tells Claude Code how to work on kotlin-lib-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kotlin-lib-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to aoreshkov/kotlin-lib-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/aoreshkov/kotlin-lib-mcp/main/.claude/skills/analysis-api-bump/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/aoreshkov/kotlin-lib-mcp

Made for: Claude Code.

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 analysis-api-bump

README.md
[![agentmods](https://agentmods.dev/badge/skills/aoreshkov/kotlin-lib-mcp/analysis-api-bump/github.svg)](https://agentmods.dev/skills/aoreshkov/kotlin-lib-mcp/analysis-api-bump)
Your own site
<a href="https://agentmods.dev/skills/aoreshkov/kotlin-lib-mcp/analysis-api-bump"><img src="https://agentmods.dev/badge/skills/aoreshkov/kotlin-lib-mcp/analysis-api-bump/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 analysis-api-bump

Your own site · 80×15
<a href="https://agentmods.dev/skills/aoreshkov/kotlin-lib-mcp/analysis-api-bump"><img src="https://agentmods.dev/badge/skills/aoreshkov/kotlin-lib-mcp/analysis-api-bump.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,622 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.
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.00067 $0.01622
Opus 5.5 $0.00027 $0.00649
Sonnet 5.5 $0.00013 $0.00324
Haiku 4.5 $0.00007 $0.00162

Measured 5d ago against content hash be266e00fac7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analysis-api-bump 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 5d 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.

.claude/skills/analysis-api-bump/SKILL.md · 98 lines

How it starts

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

Bump Kotlin + Analysis API (version-locked)

The Analysis API (standalone K2/FIR) is the single most version-fragile part of this repo. Kotlin and every *-for-ide artifact must share the exact same version, and two runtime deps (caffeine, intellijCoroutines) are pinned to match what the bundled IntelliJ core expects. Getting this wrong shows up as NoSuchMethodError / NoClassDefFoundError at runtime or as silent loss of type resolution — never a clean compile error. Follow the steps; do not eyeball it.

1. Snapshot the current pins

Read gradle/libs.versions.toml and record:

  • kotlin — the shared version ref used by all of: analysisApi-standalone, analysisApi-highLevel, analysisApi-k2, analysisApi-lowLevelFir, analysisApi-implBase, analysisApi-platform, analysisApi-symbolLightClasses, kotlin-compiler, plus the kotlin-* / composeCompiler-* plugin artifacts.
  • caffeine (comment: "runtime dep of the Analysis API -for-ide jars; matches Kotlin's own pin").
  • intellijCoroutines (comment: "JetBrains coroutines fork the bundled IJ core expects (KT-81457)").
  • compose (comment: "aligned to Kotlin X.Y.Z") — Compose is Kotlin-coupled too.

Because every Analysis-API artifact uses version.ref = "kotlin", bumping the single kotlin entry moves them all. The risk is not forgetting one artifact — it's the three coupled satellites (caffeine, intellijCoroutines, compose) and undocumented API breaks.

2. Confirm the target and its coupled expectations (official sources)

For $ARGUMENTS (or the intended target Kotlin version), verify against official sources:

  • kotlinlang.org release notes / Kotlin GitHub release: is this a stable release? Any Analysis API / standalone breaking changes called out?
  • The -for-ide artifacts exist for this version in the IntelliJ dependencies repo (https://www.jetbrains.com/intellij-repository/), not just on Maven Central.
  • Does the new Kotlin change the caffeine version its -for-ide jars expect? (Check the Kotlin build's own bundled version.) If so, update the caffeine pin to match and update the comment.
  • Did the kotlin-compiler fat jar drop anything the -for-ide jars rely on? Kotlin moves modules between that jar and the -for-ide set (prepare/compiler vs prepare/ide-plugin-dependencies in its build), and the fat jar is ProGuard-shrunk against only what it contains. Diff the two versions' package lists (unzip -Z1 … | grep '\.class$' | sed 's|/[^/]*$||' | sort -u) before trusting a green compile. Known blocker for 2.4.20+: it moved the decompiler (org.jetbrains.kotlin.analysis.decompiler.*) out of kotlin-compiler into kotlin-compiler-common-for-ide, and the shrinker then stripped IntelliJ members only the decompiler used (FileType.getDefaultExtension()). Pulling kotlin-compiler-common-for-ide alongside the fat jar trades the NoClassDefFoundError: ClsKotlinBinaryClassCache for a NoSuchMethodError (tried, CI-verified). Getting past 2.4.10 needs an unshrunk classpath — the IntelliJ platform jars plus kotlin-compiler-*-for-ide instead of kotlin-compiler — or the org.jetbrains.kotlin:kotlin-analysis-api* artifacts 2.4.20's build defines (prepare/analysis-api/), once they are published. detekt hit the same wall (detekt/detekt#9734). Still true for 2.4.21 (checked 2026-10-16: no decompiler, analysis.utils or decompiled.light.classes packages in the fat jar, no kotlin-analysis-api* on Central), and its changelog is Wasm/JS/Native/scripting only. detekt's maintainers are skipping 2.4.20+ and going straight to 2.5.0, where they say a fix is coming — so the next target to try is 2.5.0 stable, not another 2.4.x patch.
  • Is KT-81457 fixed in this version, making the intellijCoroutines fork pin unnecessary? If yes, that's a chance to drop the fork; if not, keep the pin.
  • Compose Multiplatform ↔ Kotlin compatibility: pick the compose version aligned to the new Kotlin (JetBrains compatibility table) and update the # aligned to Kotlin … comment.

Read the full file on GitHub · 98 lines

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. 5d ago Changed · +4 lines be266e00fac7
  2. 20d ago Changed · +17 lines 963b605e4b65
  3. 1mo ago First seen · 77 lines · 67 tokens per session scan A 53f485ba7db1

Subscribe to this mod's changes

analysis-api-bump is a skill published in the GitHub repository aoreshkov/kotlin-lib-mcp (13 stars, last pushed 2d ago), licensed Apache-2.0. It adds 67 tokens to every session and 1,622 once invoked, about $0.0003 per session on Opus 5.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.

Related

Other skills, from other repositories

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

release-kotlin-library

Use when preparing, publishing, or checking readiness for a Kotlin library release, including verifying its gradle-maven-publish-plugin prerequisite, reconciling changelogs and API snapshots, and checking publication.

chrisbanes/skills · 46 tokens

using-chrisbanes-skills

Use when routing Kotlin or Jetpack Compose work, or physical Android benchmark evidence that needs a configuration decision, especially when several Kotlin or Compose concerns overlap.

chrisbanes/skills · 38 tokens

kotlin-concurrency-and-flow

Use when writing or reviewing Kotlin coroutine scope ownership, raw Thread or Executor work, init launches, non-suspending launch APIs, runBlocking, cancellation, StateFlow, SharedFlow, Channel, stateIn, SharingStarted, state updates, or one-shot events.

chrisbanes/skills · 60 tokens

kotlin-api-design

Use when designing or reviewing Kotlin function ownership, member or extension functions, factories, single-field domain types, value classes, data classes, Kotlin Multiplatform expect/actual declarations, or platform service boundaries.

chrisbanes/skills · 46 tokens