Serialization
Schema-first serialization guidance for .NET: picking Protobuf, MessagePack, or System.Text.Json source generators over reflection-based options.
- CCM score
- 65 of 100
- skills.sh installs
- 630
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers format selection for REST APIs, gRPC, actor messaging, event sourcing, caching, and logging, with a recommendation per use case
- Compares schema-based and reflection-based formats across versioning, performance, AOT compatibility, and wire compatibility
- Explains setup and versioning rules for Protobuf field numbers and MessagePack
[Key]attributes, including which changes break old readers - Designed for teams migrating from Newtonsoft.Json or building AOT-compatible .NET services that cross process boundaries
Install
$ npx -y skills add aaronontheweb/dotnet-skills --skill serialization -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Serialization in .NET
When to Use This Skill
Use this skill when:
- Choosing a serialization format for APIs, messaging, or persistence
- Migrating from Newtonsoft.Json to System.Text.Json
- Implementing AOT-compatible serialization
- Designing wire formats for distributed systems
- Optimizing serialization performance
Schema-Based vs Reflection-Based
| Aspect | Schema-Based | Reflection-Based |
|---|---|---|
| Examples | Protobuf, MessagePack, System.Text.Json (source gen) | Newtonsoft.Json, BinaryFormatter |
| Type info in payload | No (external schema) | Yes (type names embedded) |
| Versioning | Explicit field numbers/names | Implicit (type structure) |
| Performance | Fast (no reflection) | Slower (runtime reflection) |
| AOT compatible | Yes | No |
| Wire compatibility | Excellent | Poor |
Recommendation: Use schema-based serialization for anything that crosses process boundaries.
Format Recommendations
Details
- Repository
- github.com/aaronontheweb/dotnet-skills
- Categories
- .NET & C#, Backend & APIs
- First seen
- Jun 3, 2026
Questions
What does the serialization skill for .NET do?
It helps choose the right serialization format for .NET applications, preferring schema-based formats like Protobuf and MessagePack over reflection-based ones like Newtonsoft.Json. It also covers using System.Text.Json with AOT source generators for JSON scenarios.
How do I install the serialization skill?
Run npx -y skills add aaronontheweb/dotnet-skills --skill serialization -y in a project. Once installed, the agent can guide format choices and System.Text.Json source generator setup for your .NET code.
Where does the serialization skill rank in the .NET & C# category?
It ranks in the top 100 of the .NET & C# category on Claude Marketplaces. It is listed alongside dotnet-backend-patterns, dotnet-best-practices, nuget-manager and microsoft-code-reference.
When should I use this skill instead of Newtonsoft.Json?
Use it when choosing a format for APIs, messaging or persistence, or when migrating from Newtonsoft.Json to System.Text.Json. It also helps with AOT-compatible serialization and designing wire formats for distributed systems.
More from aaronontheweb/dotnet-skills
All 34- Testcontainers Integration Tests629
- Dotnet Slopwatch618
- Crap Analysis610
- Playwright Blazor Testing589
- Dotnet Local Tools579
- Aspire Integration Testing552
- Mjml Email Templates541
- Aspire Service Defaults526
- Snapshot Testing515
- Aspire Configuration514
- Dotnet Devcert Trust486
- Skills Index Snippets485
- Playwright Ci Caching483
- Akka Net Best Practices477
- Mailpit Integration471
- OpenTelemetry NET Instrumentation464
- Verify Email Snapshots464
- Akka Hosting Actor Patterns460
- Akka Net Testing Patterns457
- Akka Net Management456
- Akka Net Aspire Configuration442
- Marketplace Publishing435
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
Similar to Serialization
More .NET & C#modern-csharp-coding-standardsSkillaaronontheweb/dotnet-skills2.4K installsModern C# coding standards for records, pattern matching, value objects, async, and Span<T>/Memory<T> with a functional style.
OpenTelemetry-NET-InstrumentationSkillaaronontheweb/dotnet-skills464 installsStructured guidance for instrumenting .NET codebases with OpenTelemetry tracing, metrics, and logs using built-in System.Diagnostics APIs.
grpc-developmentSkillmindrally/skills811 installsBest practices for gRPC and Protocol Buffers covering schema design, streaming, interceptors, and cross-language services.
protobufSkillbufbuild/claude-plugins605 installsPractical guide for Protocol Buffer schemas, buf CLI setup, and gRPC/Connect services, with protovalidate constraint guidance.
azure-sdk-dotnetPluginmicrosoft/skills3.2K starsAzure SDK patterns and best practices for .NET developers covering AI, resource management, identity, messaging, and Key Vault libraries.
dotnet-aot-compatSkilldotnet/skills5.2K installsMake .NET projects compatible with Native AOT and trimming by systematically resolving IL trim/AOT analyzer warnings.