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 softspark/ai-toolkit --skill kotlin-rulesgit clone --depth 1 https://github.com/softspark/ai-toolkitWrote 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/softspark/ai-toolkit/kotlin-rules)<a href="https://agentmods.dev/skills/softspark/ai-toolkit/kotlin-rules"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/kotlin-rules/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/softspark/ai-toolkit/kotlin-rules"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/kotlin-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00045 | $0.03046 |
| Opus 5 | $0.00023 | $0.01523 |
| Sonnet 5 | $0.00009 | $0.00609 |
| Haiku 4.5 | $0.00005 | $0.00305 |
Grade A, and why
kotlin-rules 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 9d 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.
Kotlin Rules
These rules come from app/rules/kotlin/ in ai-toolkit. They cover
the project's standards for coding style, frameworks, patterns,
security, and testing in Kotlin. Apply them when writing or
reviewing Kotlin code.
Kotlin Coding Style
Naming
- PascalCase: classes, interfaces, objects, type aliases, enum entries.
- camelCase: functions, properties, local variables, parameters.
- UPPER_SNAKE: compile-time constants (
const val), top-levelvalconstants. - Backing properties: prefix with
_(private val _items,val items: List<T>). - Package names: lowercase, no underscores (
com.company.project.feature).
Null Safety
- Use nullable types only when nullability is semantically meaningful.
- Prefer
?.let { },?:(Elvis), and safe calls over!!. - Never use
!!except in tests or when null is truly impossible. - Use
requireNotNull()andrequire()for preconditions at public API boundaries. - Use
checkNotNull()andcheck()for state assertions.
Data Classes
- Use
data classfor DTOs, value objects, and state containers. - Use
copy()for immutable updates. Avoid mutablevarin data classes. - Use
sealed class/sealed interfacefor restricted hierarchies. - Use
value class(inline class) for type-safe wrappers with zero overhead. - Use
objectfor singletons and namespace-like utility groupings.
Functions
- Use expression body (
= expr) for single-expression functions. - Use named arguments for functions with >2 parameters of the same type.
- Use default parameter values instead of overloaded functions.
- Use extension functions to add behavior without inheritance.
- Use
suspendfunctions for async operations, not callbacks.
Collections
- Prefer
listOf,mapOf,setOf(immutable) overmutableListOf. - Use collection operators:
map,filter,groupBy,associate. - Use
sequence {}for lazy evaluation on large collections. - Prefer
firstOrNull()overfirst()for safe access. - Use destructuring:
val (name, age) = user.
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.
- 9d ago First seen · 272 lines · 45 tokens per session scan A 5f5e4ec6cc70
kotlin-rules is a skill published in the GitHub repository softspark/ai-toolkit (174 stars, last pushed 2d ago), licensed Apache-2.0. It adds 45 tokens to every session and 3,046 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-09-03.
Other skills, from other repositories
android-kotlin-advisor
Développement Android natif avec Kotlin et Jetpack Compose — architecture MVVM/MVI, UI Compose, Hilt, Room, Coroutines, Flow, tests, Gradle KTS, Play Store. Se déclenche avec "Android", "Kotlin", "Jetpack Compose", "Android Studio", "Gradle", "Room", "Hilt", "Coroutines", "Play Store". Also triggers on "Android with…
gradle-build-expert
Expert en configuration et optimisation Gradle pour Android Kotlin. Gère build.gradle, Kotlin DSL, dépendances, flavours, variants, performance, CI/CD et troubleshooting avancé. Se déclenche avec "gradle", "build error", "dépendance", "build config". Also triggers on "Gradle build", "Kotlin DSL build script", "speed…
kotlin-testing
Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.
swift
Swift development: concurrency patterns, async/await, actors, testing with XCTest and Swift Testing framework.
swift-development
You MUST activate this skill when working on Swift projects.
generators
Code generator skills that produce production-ready Swift code for common app components. Use when user wants to add logging, analytics, onboarding, review prompts, networking, authentication, paywalls, settings, persistence, error monitoring, CI/CD pipelines, localization, push notifications, deep linking, testing…