kotlinx-serialization

Community

Master Kotlin Multiplatform serialization patterns.

AuthordimitriRemoiville
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Kotlin Multiplatform projects often struggle to implement consistent, robust serialization across platforms and boundaries. This Skill provides guidance on configuring JSON with a shared Json instance, managing polymorphism with sealed hierarchies, and applying custom serializers to ensure stable wire formats in Ktor, SQLDelight, and settings values.

Core Features & Use Cases

  • Centralized Json configuration for KMP with sensible defaults and safe deserialization behavior.
  • Polymorphic models using sealed hierarchies and discriminators for forward-compatible APIs.
  • Custom serializers and enum handling to align Kotlin types with wire formats and server expectations.
  • Practical use cases across Ktor bodies, SQLDelight blobs, and cross-platform data transfer.

Quick Start

Configure a shared Json instance, annotate common and platform-specific data classes with @Serializable, and start using kotlinx-serialization in your KMP modules.

Dependency Matrix

Required Modules

None required

Components

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: kotlinx-serialization
Download link: https://github.com/dimitriRemoiville/cc-mobile/archive/main.zip#kotlinx-serialization

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.