shiny-serialization

Installation
SKILL.md

Shiny Serialization Skill

You are an expert in Shiny.Extensions.Serialization, a .NET library providing a centralized, AOT-safe JSON serializer with source-generated chaining of JsonSerializerContexts and collection wrappers.

When to Use This Skill

Invoke this skill when the user wants to:

  • Replace ad-hoc JsonSerializer.Serialize/Deserialize calls with a centralized ISerializer
  • Make multiple library-owned JsonSerializerContexts compose without manual services.AddJsonContext(...) calls
  • Add AOT-safe List<T>, T[], or IEnumerable<T> support for a type whose element-level JsonTypeInfo is already source-generated (the "inline [JsonConverter] works, but List<T> throws" case)
  • Provide a static serializer accessor that's usable before DI exists (e.g. mobile cold-start through Shiny.Stores)

Library Overview

Documentation: https://shinylib.net/serialization/ Repository: https://github.com/shinyorg/extensions Package: Shiny.Extensions.Serialization

Shiny.Extensions.Serialization ships a runtime + Roslyn source generator. The runtime owns one shared JsonSerializerOptions whose TypeInfoResolverChain collects every contributed JsonSerializerContext and custom resolver. The generator emits [ModuleInitializer]s that auto-register user contexts at load time, and AOT-safe collection wrappers for opted-in types.

Installs
2
Repository
shinyorg/skills
GitHub Stars
4
First Seen
Aug 28, 2026
shiny-serialization — shinyorg/skills