Individual skill
kotlin-api-design
Use when designing or reviewing Kotlin function ownership, member or extension functions, factories, single-field domain types, value classes, data classes, Kotlin Multiplatform expect/actual declarations, or platform service boundaries.
skills/kotlin-api-design/SKILL.md
Source commit d83f6e289a07a55026e610c797672f22eff3f022
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 3, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,145
- Repository last updated
- Nov 5, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- android Repository topic
- compose-multiplatform Repository topic
- coroutines Repository topic
- jetpack-compose Repository topic
- kotlin Repository topic
- kotlin-multiplatform Repository topic
- skills Repository topic
- design Derived category
- data Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 2,180 bytesreferences/functions.mddoc · 2,824 bytesreferences/multiplatform-boundaries.mddoc · 4,359 bytesreferences/value-classes.mddoc · 4,178 bytes
Read excerpt
# Kotlin API design
## Core principle
Place behavior, types, and platform seams where their meaning is clearest to
callers; use the smallest public abstraction that preserves domain language and
platform independence.
## Procedure
1. Name the domain concept, its owning type or module, and the callers that
need to depend on it.
2. Choose function ownership before adding an extension, factory, helper, or
service layer. When rejecting one, name the owner callers should use instead.