kotlin-docs

kotlin-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 183 tokens per session (2,315 once invoked), scanned A, original, MIT.

A reference guide to Kotlin 2.4.0, a programming language used for applications and shared code across platforms. It covers syntax, classes, collections, null safety, coroutines, serialization, and Java interoperability.

In plain words
What is it for?
Use it to look up Kotlin syntax, object-oriented features, collection handling, asynchronous coroutines, generic types, Kotlin Multiplatform code, data formats, and Java integration.
Why use it?
It puts Kotlin language rules and common patterns in one place, reducing the need to search through separate documentation while writing or reviewing Kotlin code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to look up Kotlin syntax, object-oriented features, collection handling, asynchronous coroutines, generic types, Kotlin Multiplatform code, data formats, and Java integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/kotlin
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 pledgeandgrow/pledge-skills --skill kotlin
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/kotlin/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/kotlin)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/kotlin"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/kotlin/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-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/kotlin"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/kotlin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,315 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.00183 $0.02315
Opus 5 $0.00092 $0.01157
Sonnet 5 $0.00037 $0.00463
Haiku 4.5 $0.00018 $0.00231

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

Security

Grade A, and why

kotlin-docs 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 12d 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.

skills/kotlin/SKILL.md · 287 lines

How it starts

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

Kotlin Expert (v2.4.0)

Official Documentation: https://kotlinlang.org/docs/home.html

Quick Reference

Topic File
Variables, basic types, strings, control flow, ranges, when basics-syntax.md
Functions, named args, defaults, lambdas, function types, inline functions-lambdas.md
Classes, constructors, properties, inheritance, interfaces, data/sealed/enum classes, objects classes-objects.md
List, Set, Map, sequences, collection operations, functional API collections.md
Nullable types, safe calls, Elvis, smart casts, not-null assertion null-safety.md
Suspending functions, launch, async, Flow, StateFlow, channels, dispatchers coroutines.md
Variance, reified type parameters, star projections, type bounds generics.md
DSLs, type-safe builders, scope functions, extension functions, delegation dsl-builders.md
Kotlin Multiplatform (KMP), expect/actual, platform-specific code, sharing logic multiplatform.md
@Serializable, JSON, ProtoBuf, polymorphism, custom serializers serialization.md
Java interop, migration guides, Kotlin/Java differences, JSpecify java-interop.md
JUnit 5, assertions, parameterized tests, coroutine testing, mocking testing.md
Gradle, Kotlin Gradle Plugin, Maven, compiler options, KSP build-tools.md
Idiomatic Kotlin patterns, coding conventions, best practices idioms-best-practices.md
Kotlin 2.4.0 features, language changes, stdlib additions, migration whats-new.md
Reflection, KClass, callable references, property/constructor references reflection.md
Exceptions, try-catch-finally, precondition functions, Nothing type, custom exceptions exceptions.md
Annotations, use-site targets, @Target, @Retention, @Repeatable, Java annotations annotations.md
Type checks (is/!is), smart casts, as/as?, structural vs referential equality, floating-point type-casts-equality.md

Core Philosophy

Read the full file on GitHub · 287 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. 12d ago First seen · 287 lines · 183 tokens per session scan A becbc0c1ff11

Subscribe to this mod's changes

kotlin-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 183 tokens to every session and 2,315 once invoked, about $0.0009 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

kotlin-expert

Expert-level Kotlin development, Android, coroutines, and multiplatform. Use when the user mentions Android, coroutines, multiplatform, or JVM, or when the task involves Kotlin Fundamentals, Android Development, Kotlin Multiplatform, or Kotlin Style.

personamanagmentlayer/pcl · 55 tokens

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

release-kotlin-library

Use when preparing, publishing, or checking readiness for a new Kotlin library version in a repository using gradle-maven-publish-plugin, including release changelog reconciliation, API snapshots, and publication verification.

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