kotlin-lsp

kotlin-lsp is a skill for Claude Code from MSApps-Mobile/claude-plugins. It costs 77 tokens per session (633 once invoked), scanned A, original, MIT.

A read-only Kotlin code analysis connection that reports errors, warnings, type information, definitions, and references while files are being edited. Kotlin is a programming language commonly used for Android and other applications.

In plain words
What is it for?
Use it when working with .kt or .kts files to check diagnostics, understand types, jump to definitions, and find where code is referenced.
Why use it?
It helps identify existing problems and possible regressions while changing Kotlin code, without modifying files itself.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kotlin-lsp plugin — 1 skill shipped together

Good fit Use it when working with .kt or .kts files to check diagnostics, understand types, jump to definitions, and find where code is referenced.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/msapps-mobile/claude-plugins/kotlin-lsp
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.

Any agent
npx skills add MSApps-Mobile/claude-plugins --skill kotlin-lsp
Clone the repo
git clone --depth 1 https://github.com/MSApps-Mobile/claude-plugins

Made for: Claude Code.

Or install kotlin-lsp, the plugin that ships this one along with the rest of its 1 skill.

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-lsp

README.md
[![agentmods](https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/kotlin-lsp.svg)](https://agentmods.dev/skills/msapps-mobile/claude-plugins/kotlin-lsp)
Your own site
<a href="https://agentmods.dev/skills/msapps-mobile/claude-plugins/kotlin-lsp"><img src="https://agentmods.dev/badge/skills/msapps-mobile/claude-plugins/kotlin-lsp.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 633 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.00077 $0.00633
Opus 5 $0.00039 $0.00316
Sonnet 5 $0.00015 $0.00127
Haiku 4.5 $0.00008 $0.00063

Measured 7d ago against content hash 8a2026409a3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

kotlin-lsp 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 7d 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.

plugins/kotlin-lsp/skills/kotlin-lsp/SKILL.md · 84 lines

How it starts

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

Kotlin LSP — kotlin-language-server Integration

Role and Purpose

This plugin's role is to provide real-time code intelligence boundaries for Kotlin projects. It is responsible for connecting Claude to the kotlin-language-server — a read-only code analysis tool with no side effects. Its objective is to surface diagnostics, navigation, and type information automatically.

Workflow

Step 1 — Plan Phase

Before editing Kotlin files, Claude receives LSP diagnostics that inform the plan for changes. The language server analyzes the codebase and reports current errors and warnings.

Step 2 — Act Phase

When Claude writes or edits .kt or .kts files, the LSP server processes changes and returns updated diagnostics in structured JSON output via the LSP protocol.

Step 3 — Verify Phase

After each edit, Claude reviews the LSP diagnostics to confirm the change didn't introduce regressions. If errors appear, Claude uses the fallback of reverting or correcting the edit — a fail-safe error handling procedure.

Confirmation Policy

This plugin requires no human confirmation or approval gates because it is a purely read-only analysis tool — it cannot modify files, make network calls, or produce any side effects. All actions are autonomous and safe by design.

Prerequisites

Install the kotlin-language-server tool:

Option 1: Homebrew (macOS)

brew install kotlin-language-server

Option 2: SDKMAN

sdk install kls

Option 3: From GitHub Releases

Download the latest release from fwcd/kotlin-language-server, extract, and add the bin/ directory to your PATH.

Verify the integration is available:

kotlin-language-server --version

Supported File Types

Extension Language ID
.kt kotlin
.kts kotlin

Troubleshooting

  • "Executable not found in $PATH" — Install via Homebrew, SDKMAN, or GitHub releases
  • No diagnostics appearing — Ensure the project has a build.gradle.kts or build.gradle
  • Slow startup — First launch indexes and downloads Gradle dependencies; startupTimeout is 30s. Escalation: restart the server if it hangs.
  • Out of memory — For large Android projects, set JAVA_OPTS=-Xmx4g as a fallback

Read the full file on GitHub · 84 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. 7d ago First seen · 84 lines · 77 tokens per session scan A 8a2026409a3b

Subscribe to this mod's changes

kotlin-lsp is a skill published in the GitHub repository MSApps-Mobile/claude-plugins (9 stars, last pushed 11d ago), licensed MIT. It adds 77 tokens to every session and 633 once invoked, about $0.0004 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

programming-swift

Provides the complete content of 'The Swift Programming Language (6.4 beta)' book by Apple. Use this skill when you need to verify Swift syntax, look up language features, understand concurrency, resolve compiler errors, or consult the formal language reference.

kylehughes/the-unofficial-swift-programming-language-skill · 55 tokens

macos-apps

Build professional native macOS apps in Swift with SwiftUI and AppKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode. Use when asked to: create macOS apps, build Swift apps, develop SwiftUI interfaces, fix macOS app issues, add macOS app features, or when user says 'build a Mac app', 'create…

ckorhonen/claude-skills · 93 tokens

migrating-to-swift-concurrency

Provides the complete Swift Concurrency Migration Guide. Use when migrating to Swift 6, resolving data-race safety errors, understanding Sendable and actor isolation, or incrementally adopting async/await.

kylehughes/the-unofficial-swift-concurrency-migration-skill · 48 tokens

programming-swift

Provides the complete content of 'The Swift Programming Language (6.2.1)' book by Apple. Use this skill when you need to verify Swift syntax, look up language features, understand concurrency, resolve compiler errors, or consult the formal language reference.

Shada01245/the-unofficial-swift-programming-language-skill · 56 tokens

swiftui-dev

Use this skill for SwiftUI development, architecture, structure, performance, and Apple native app profiling. It combines.

Orkas-AI/Orkas · 3 tokens

axiom-concurrency

Use when writing ANY async code, actors, threads, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.

CharlesWiltgen/Axiom · 43 tokens