serialization

Guide .NET developers in selecting serialization formats like Protobuf and MessagePack.

1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/bbsbot/mac-md-win --skill serialization-bbsbot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: serialization
Source: https://github.com/bbsbot/mac-md-win/tree/main/.claude/skills/dotnet/skills/serialization
Command: npx skills add https://github.com/bbsbot/mac-md-win --skill serialization-bbsbot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers select the most appropriate serialization format for their .NET applications, optimizing for performance, compatibility, and maintainability.

Core Features & Use Cases

  • Format Comparison: Understand the trade-offs between schema-based (Protobuf, MessagePack) and reflection-based (Newtonsoft.Json) formats.
  • Use Case: You are building a microservices architecture and need to choose a format for inter-service communication that is fast, compact, and version-tolerant. This Skill guides you to Protobuf or MessagePack.

Quick Start

Use the serialization skill to choose the best format for gRPC APIs.

Frequently Asked Questions about serialization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best .NET serialization format for microservices communication?

Newtonsoft.Json differs from System.Text.Json by relying on reflection, whereas System.Text.Json is designed for better performance and AOT compatibility. This Skill guides you through migrating from Newtonsoft.Json to System.Text.Json.

How do I choose a serialization format for gRPC APIs in .NET?

To choose a serialization format for gRPC APIs in .NET, prioritize schema-based options like Protobuf. This ensures high performance and compact payloads for inter-service messaging and actor frameworks.

Does .NET serialization work with AOT compatibility requirements?

.NET serialization works with AOT compatibility when using schema-based formats like Protobuf and MessagePack or System.Text.Json, avoiding the reflection-based runtime generation that breaks ahead-of-time compilation.

When should I not use reflection-based serialization in .NET?

You should not use reflection-based serialization in .NET when building event sourcing, actor messaging, or microservices architectures where AOT compatibility, version tolerance, and high performance are required.