Kotlin serialization wire contract

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Kotlin serialization wire contract is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Use this skill to statically review kotlinx.serialization wire-contract safety and schema evolution: encodeDefaults/explicitNulls defaults and @EncodeDefault overrides, strict-decode ignoreUnknownKeys behavior, sealed-class closed polymorphism and class-discriminator conventions, and whether a schem

How to use this skill

Skill file

kotlin-serialization-wire-contract

Purpose

This skill decides whether a kotlinx.serialization wire contract is safe to ship and safe to evolve. A contract is safe only when encode-side default/null behavior is understood by every consumer, decode-side strictness matches the deployment-coupling reality (lockstep vs rolling), polymorphic types crossing a trust boundary are closed (sealed) rather than open, and a proposed change is correctly classified additive or breaking given that a defaulted property is optional on decode.

Trigger conditions

When not to use

Lean operating rules

References

Load these only when needed:

Response minimum

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.