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/github.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/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 kotlin-lsp

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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.5 $0.00031 $0.00253
Sonnet 5.5 $0.00015 $0.00127
Haiku 4.5 $0.00008 $0.00063

Measured 3mo ago against content hash 8a2026409a3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 3mo 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. 3mo 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 (14 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 633 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

kotlin-lsp compared with skills from other repositories

kotlin-lsp next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kotlin-lspMSApps-Mobile/claude-pluginsSkill14yesterdayMITA77Claude Code
macos-appsckorhonen/claude-skillsSkill35todayMITA93Claude Code
swift-conventionstmj-90/gafferSkill1yesterdayApache-2.0A133Claude Code, Codex
kotlin-conventionstmj-90/gafferSkill1yesterdayApache-2.0A115Claude Code, Codex
migrating-to-swift-concurrencykylehughes/the-unofficial-swift-concurrency-migration-skillSkill5811mo agoMITA48Claude Code, Codex
programming-swiftShada01245/the-unofficial-swift-programming-language-skillSkill11mo agoMITA56Claude Code, Codex
swiftui-devOrkas-AI/OrkasSkill7.7ktodayMITA3Claude Code, Codex