standards-kotlin

standards-kotlin is a skill for Claude Code, Codex from b33eep/claude-code-setup. It costs 36 tokens per session (9,276 once invoked), scanned A, original, MIT.

A set of Kotlin coding rules for writing clear, modern applications. Kotlin is a programming language commonly used for Android and other software.

In plain words
What is it for?
Use it when creating or reviewing Kotlin classes, functions, data models, asynchronous code, or data streams. It also guides use of Kotlin 2.3.0 features and recommended tools.
Why use it?
It gives the coding agent consistent guidance on names, data types, safe handling of missing values, and simple code structure. This reduces inconsistent or overly complicated changes.

Skill for Claude CodeCodex

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

Good fit Use it when creating or reviewing Kotlin classes, functions, data models, asynchronous code, or data streams. It also guides use of Kotlin 2.3.0 features and recommended tools.

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

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 standards-kotlin

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/b33eep/claude-code-setup/standards-kotlin"><img src="https://agentmods.dev/badge/skills/b33eep/claude-code-setup/standards-kotlin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,276 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.00036 $0.09276
Opus 5.5 $0.00014 $0.03710
Sonnet 5.5 $0.00007 $0.01855
Haiku 4.5 $0.00004 $0.00928

Measured 1mo ago against content hash 9f10e47b2685, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

standards-kotlin 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 1mo 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/standards-kotlin/SKILL.md · 1,547 lines

How it starts

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

Kotlin Coding Standards

Core Principles

  1. Explicitness: Explicit code over implicit magic
  2. Readability: Readable code over clever tricks
  3. Null Safety: Embrace Kotlin's null safety system
  4. Immutability: Prefer val over var, immutable collections
  5. Expressiveness: Use Kotlin's expressive features (data classes, sealed classes)
  6. DRY: Don't Repeat Yourself - but keep it simple

General Rules

  • Prefer val over var: Immutability by default
  • Use data classes: For simple data holders
  • Sealed classes/interfaces: For type-safe state modeling
  • Early returns: Avoid deep nesting
  • Descriptive names: Clear, meaningful names
  • Minimal changes: Only change relevant code
  • No over-engineering: Keep it simple
  • Minimal comments: Self-explanatory code. Comments for "why", not "what"

Naming Conventions

Element Convention Example
Classes PascalCase UserService, OrderRepository
Interfaces PascalCase UserRepository, PaymentProcessor
Functions camelCase getUserById, calculateTotal
Properties camelCase firstName, totalAmount
Constants UPPER_SNAKE_CASE MAX_RETRY_COUNT, DEFAULT_TIMEOUT
Packages lowercase.dot.separated com.example.service, com.example.repository
Files PascalCase.kt UserService.kt, OrderRepository.kt
Test Classes ClassNameTest UserServiceTest, OrderRepositoryTest
Test Functions backtick names `should return user when id exists`

Project Structure

Gradle Kotlin DSL Project (Recommended)

myproject/
├── build.gradle.kts
├── settings.gradle.kts
├── gradle.properties
├── src/
│   ├── main/
│   │   ├── kotlin/
│   │   │   └── com/example/myapp/
│   │   │       ├── Application.kt          # Main entry point
│   │   │       ├── config/
│   │   │       │   └── AppConfig.kt        # Configuration
│   │   │       ├── domain/
│   │   │       │   └── User.kt             # Domain models
│   │   │       ├── repository/
│   │   │       │   └── UserRepository.kt   # Data access
│   │   │       ├── service/
│   │   │       │   └── UserService.kt      # Business logic
│   │   │       └── api/
│   │   │           └── UserController.kt   # REST endpoints
│   │   └── resources/
│   │       ├── application.conf
│   │       └── logback.xml
│   └── test/
│       ├── kotlin/
│       │   └── com/example/myapp/
│       │       ├── service/
│       │       │   └── UserServiceTest.kt
│       │       └── repository/
│       │           └── UserRepositoryTest.kt
│       └── resources/
│           └── application-test.conf
└── README.md

Read the full file on GitHub · 1,547 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. 1mo ago First seen · 1,547 lines · 36 tokens per session scan A 9f10e47b2685

Subscribe to this mod's changes

standards-kotlin is a skill published in the GitHub repository b33eep/claude-code-setup (57 stars, last pushed 13d ago), licensed MIT. It adds 36 tokens to every session and 9,276 once invoked, about $0.0001 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-30.

Related

Other skills, from other repositories

jetpack-compose-expert

Use when working in a native Android Jetpack Compose project - build.gradle.kts with androidx.compose BOM or org.jetbrains.kotlin.plugin.compose, .kt files containing @Composable functions, MainActivity with setContent, or mentions of Compose, Material 3, recomposition, ViewModel, StateFlow, Hilt, Room, or Navigation…

Aarvion-AI/stackwise-skills · 145 tokens

swiftui-expert

Use when working in a native iOS/SwiftUI project - .swift files, an .xcodeproj or Package.swift, Xcode schemes, or mentions of SwiftUI, Swift 6, @Observable, SwiftData, NavigationStack, actors, or Swift Testing. Builds views and features, wires Observation-based state, fixes Swift 6 strict-concurrency errors, models…

Aarvion-AI/stackwise-skills · 151 tokens

swift-patterns

Swift and SwiftUI development patterns for building native iOS/iPadOS applications. Use when implementing views, view models, data persistence, networking, concurrency, and navigation. Covers Swift 6.2, SwiftUI, SwiftData, iOS 26 features including Liquid Glass and Foundation Models.

shahtuyakov/claude-setup · 63 tokens

kotlin-testing

Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.

affaan-m/ECC · 38 tokens

kotlin-patterns

Idiomatic Kotlin patterns, best practices, and conventions for building robust, efficient, and maintainable Kotlin applications with coroutines, null safety, and DSL builders.

affaan-m/ECC · 37 tokens

build-android-binary

Compile a PAM control's Android Kotlin module into the runtime-loadable DEX for a .ppmplugin. Creates a staged Gradle build with the pinned wrapper and react-android compile dependency, verifies manifest/module/package alignment and runtime-loading constraints, builds the release AAR, then runs d8 --min-api 24. Writes…

microsoft/power-platform-skills · 150 tokens