kotlin-types-value-class
CommunityPrefer value classes for safe domain types
Authorsoygabimoreno
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill helps you avoid misuse of raw primitives (like String or Long) by choosing the right Kotlin type for domain meaning and for Compose performance stability.
Core Features & Use Cases
- Single-field domain types: Convert “wrapper” data classes that hold exactly one value into
@JvmInline value classfor better type safety and less runtime overhead. - Compose stability improvement: Use value classes to reduce “unstable parameter” warnings at Compose boundaries when the underlying type is stable.
- Correct review decisions: Diagnose common mistakes such as missing
@JvmInline, using value classes without domain meaning, and breaking equality/serialization expectations.
Quick Start
Use this skill when reviewing a Kotlin model or UI state to decide whether a single-field wrapper should become an @JvmInline value class for stability and domain safety.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: kotlin-types-value-class Download link: https://github.com/soygabimoreno/Los-ANDROIDES/archive/main.zip#kotlin-types-value-class Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.