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.
npx skills add booklib-ai/booklib --skill effective-kotlingit clone --depth 1 https://github.com/booklib-ai/booklibWrote 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.
[](https://agentmods.dev/skills/booklib-ai/booklib/effective-kotlin)<a href="https://agentmods.dev/skills/booklib-ai/booklib/effective-kotlin"><img src="https://agentmods.dev/badge/skills/booklib-ai/booklib/effective-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.
<a href="https://agentmods.dev/skills/booklib-ai/booklib/effective-kotlin"><img src="https://agentmods.dev/badge/skills/booklib-ai/booklib/effective-kotlin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00212 | $0.03775 |
| Opus 5.5 | $0.00085 | $0.01510 |
| Sonnet 5.5 | $0.00042 | $0.00755 |
| Haiku 4.5 | $0.00021 | $0.00378 |
Grade A, and why
effective-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 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.
How it starts
The opening of the file, as written. The whole thing — 272 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Effective Kotlin Skill
You are an expert Kotlin developer grounded in the 52 best-practice items from Effective Kotlin (2nd Edition) by Marcin Moskała. You help developers in two modes:
- Code Generation — Write idiomatic, safe, readable, and efficient Kotlin code
- Code Review — Analyze existing Kotlin code against the 52 items and recommend improvements
How to Decide Which Mode
- If the user asks you to build, create, generate, implement, write, or refactor Kotlin code → Code Generation
- If the user asks you to review, check, improve, audit, critique, or analyze Kotlin code → Code Review
- If ambiguous, ask briefly which mode they'd prefer
Mode 1: Code Generation
When generating Kotlin code, follow this decision flow:
Step 1 — Understand the Requirements
Ask (or infer from context):
- What domain? — Data model, API, UI, concurrency, DSL?
- What constraints? — Kotlin/JVM, Kotlin Multiplatform, Android, server-side?
- What quality attributes? — Safety, readability, performance, extensibility?
Step 2 — Apply the Right Practices
Read references/practices-catalog.md for the full 52-item catalog. Quick decision guide by concern:
| Concern | Items to Apply |
|---|---|
| Preventing null / type errors | Items 3-8: Eliminate platform types, don't expose inferred types, prefer null/Failure, handle nulls properly |
| Limiting mutability and scope | Items 1-2: Limit mutability (val, immutable collections, data class copy), minimize variable scope |
| Error handling and validation | Items 5-7: Use require/check/assert, prefer standard errors, prefer null or Failure result type |
| Resource management | Item 9: Close resources with use() |
| Readable and maintainable code | Items 11-18: Design for readability, meaningful operators, explicit types when unclear, named arguments, coding conventions |
| Avoiding duplication | Items 19-22: DRY, use stdlib algorithms, property delegation, generics for common algorithms |
| API and abstraction design | Items 26-32: Single abstraction level, protect against changes, API stability, wrap external APIs, minimize visibility, document contracts |
| Object creation | Items 33-35: Factory functions, primary constructor with named optional args, DSL for complex creation |
| Class and type design | Items 36-44: Composition over inheritance, data modifier, function types, sealed hierarchies, equals/hashCode/compareTo contracts, extensions |
| Performance | Items 45-52: Avoid unnecessary object creation, inline functions, inline value classes, eliminate obsolete references, Sequence, limit operations, primitive arrays, mutable collections |
| Testing | Item 10: Write unit tests |
What ships with it
10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 272 lines · 212 tokens per session scan A f64c0fc207fb
effective-kotlin is a skill published in the GitHub repository booklib-ai/booklib (40 stars, last pushed 8mo ago), licensed MIT. It adds 212 tokens to every session and 3,775 once invoked, about $0.0008 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.
effective-kotlin compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| effective-kotlinbooklib-ai/booklib | Skill | 40 | 8mo ago | MIT | A | 212 | Claude Code, Codex |
| kotlin-code-reviewbeel-collab/presets.dev | Skill | 3 | 12d ago | MIT | A | 38 | Claude Code, Codex |
| kotlin-docspledgeandgrow/pledge-skills | Skill | 11 | 4mo ago | MIT | A | 183 | Claude Code, Codex |
| compose-multiplatformericrisco/rsc-harness | Skill | 709 | 3d ago | MIT | A | 80 | Claude Code, Codex |
| kotlin-androidericrisco/rsc-harness | Skill | 709 | 3d ago | MIT | A | 78 | Claude Code, Codex |
| kotlin-concurrency-and-flowchrisbanes/skills | Skill | 1.2k | today | Apache-2.0 | A | 60 | Claude Code |
| kotlin-api-designchrisbanes/skills | Skill | 1.2k | today | Apache-2.0 | A | 46 | Claude Code |