analysis-api-bump

analysis-api-bump is a skill for Claude Code from aoreshkov/kotlin-lib-mcp. It costs 67 tokens per session (1,078 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.

Install

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.

agentmods
npx agentmods add skills/aoreshkov/kotlin-lib-mcp/analysis-api-bump
Any agent
npx skills add aoreshkov/kotlin-lib-mcp --skill analysis-api-bump
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.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.svg" alt="Measured on agentmods" 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,078 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.01078
Opus 5 $0.00034 $0.00539
Sonnet 5 $0.00013 $0.00216
Haiku 4.5 $0.00007 $0.00108

Measured 6d ago against content hash 53f485ba7db1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 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.
  • 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 · 77 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. 6d 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 (8 stars, last pushed yesterday), licensed Apache-2.0. It adds 67 tokens to every session and 1,078 once invoked, about $0.0003 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.

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

kotlin-control-flow

Use when writing or reviewing Kotlin branching and control flow: when expressions, guard conditions, sealed type exhaustiveness, smart casts, nullable branching, early returns, or replacing complex if/else chains.

chrisbanes/skills · 44 tokens

using-chrisbanes-skills

Use when debugging, benchmarking, or profiling leads into Kotlin or Jetpack Compose source before the cause is known, or when one task spans multiple Kotlin or Compose concerns, especially plain Kotlin Flow or navigation delivery plus sealed branching.

chrisbanes/skills · 52 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