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

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/b33eep/claude-code-setup/standards-kotlin
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.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.svg" alt="Measured on agentmods" 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. 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 $0.00036 $0.09276
Opus 5 $0.00018 $0.04638
Sonnet 5 $0.00007 $0.01855
Haiku 4.5 $0.00004 $0.00928

Measured 4d ago against content hash 9f10e47b2685, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (56 stars, last pushed 3mo ago), licensed MIT. It adds 36 tokens to every session and 9,276 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

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

kotlin-dev

Use when implementing any feature or bugfix in a Kotlin/Spring Boot service, covers layer conventions, idioms, testing, and observability.

pranav8494/team-of-agents · 32 tokens

kotlin-reviewer

Use when reviewing a Kotlin/Spring Boot pull request, systematic checklist covering architecture, idioms, testing, security, and observability.

pranav8494/team-of-agents · 31 tokens

swiftui-expert

This skill should be used when the user is building, reviewing, or debugging SwiftUI views and apps. Detects iOS and Swift version from the project. Covers creating views, state management with @Observable, NavigationStack routing, animations, accessibility, performance optimization, Liquid Glass adoption, design…

mathisk2095/jko-claude-plugins · 162 tokens

swiftui-max

Expert SwiftUI guidance for building UI on iOS, iPadOS, macOS, watchOS, tvOS, and visionOS. Use whenever writing, reviewing, refactoring, or debugging ANY SwiftUI code — views, view modifiers, layout, navigation (NavigationStack/SplitView, deep links), lists and scrolling, animation and transitions, state management…

Dev869/swift-tothemax · 271 tokens

swift-language

Comprehensive modern Swift (6.x) language expertise — concurrency, generics, ownership/performance, macros, API design, error handling, SwiftPM, C/C++/ObjC interop, cross-platform (Linux/Android/embedded/server), and Swift Testing. Use this skill whenever writing, reviewing, refactoring, or debugging ANY Swift code …

Dev869/swift-tothemax · 167 tokens