Skip to content

Design stable public APIs with extend-only rules, approval tests, and wire-compatibility guidance for NuGet packages.

CCM score
67 of 100
skills.sh installs
723
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers API/source, binary, and wire compatibility, plus extend-only design and deprecation-before-removal workflows
  • Includes C# examples of safe versus breaking changes, such as adding overloads rather than optional parameters to existing methods
  • Enforces approval testing with PublicApiGenerator and Verify so any public surface change fails until reviewed
  • Designed for library authors and teams running distributed systems that need zero-downtime rolling upgrades

Install

$ npx -y skills add aaronontheweb/dotnet-skills --skill api-design -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Public API Design and Compatibility

When to Use This Skill

Use this skill when:

  • Designing public APIs for NuGet packages or libraries
  • Making changes to existing public APIs
  • Planning wire format changes for distributed systems
  • Implementing versioning strategies
  • Reviewing pull requests for breaking changes

The Three Types of Compatibility

TypeDefinitionScope
API/SourceCode compiles against newer versionPublic method signatures, types
BinaryCompiled code runs against newer versionAssembly layout, method tokens
WireSerialized data readable by other versionsNetwork protocols, persistence formats

Breaking any of these creates upgrade friction for users.


Extend-Only Design

The foundation of stable APIs: never remove or modify, only extend.

Three Pillars

  1. Previous functionality is immutable - Once released, behavior and signatures are locked
  2. New functionality through new constructs - Add overloads, new types, opt-in features
  3. Removal only after deprecation period - Years, not releases

Benefits

Details

Repository
github.com/aaronontheweb/dotnet-skills
Categories
.NET & C#, Technical Documentation, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the api-design skill do for a .NET library?

The api-design skill guides you to design stable, compatible public APIs using extend-only principles. It covers API, binary and wire compatibility, plus versioning for NuGet packages and distributed systems.

How do I install the api-design skill?

Run npx -y skills add aaronontheweb/dotnet-skills --skill api-design -y in your project. After that, the api-design skill helps the agent review public API changes for breaking changes.

Where does the api-design skill rank in the .NET & C# category?

The api-design skill ranks in the top 100 on the .NET & C# category page on Claude Marketplaces. It sits alongside dotnet-backend-patterns, dotnet-best-practices and nuget-manager, and it focuses on extend-only design and compatibility rules.

Is the api-design skill useful for wire format changes in distributed systems?

Yes, the api-design skill covers wire compatibility for distributed systems, including backward and forward readability during rolling upgrades. It also recommends schema-based serialization formats over reflection-based ones.

More from aaronontheweb/dotnet-skills

All 34

Similar to Api Design

More .NET & C#