api-and-interface-design

api-and-interface-design is a skill for Claude Code from peterblazejewicz/claude-plugins. It costs 64 tokens per session (5,131 once invoked), scanned A, original, MIT.

Guidance for designing stable boundaries between parts of a .NET system, such as HTTP APIs, shared data types, libraries, database-backed contracts, and interfaces. These boundaries define how one piece of software communicates with another.

In plain words
What is it for?
Use it when creating or changing web endpoints, public C# types, DTOs, module boundaries, database-related contracts, or published NuGet library interfaces.
Why use it?
Poorly designed interfaces are easy to misuse and difficult to change without breaking existing users. This guidance helps preserve compatibility as the system evolves.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dotnet-skills plugin — 24 skills, 9 commands, 4 agents shipped together

Good fit Use it when creating or changing web endpoints, public C# types, DTOs, module boundaries, database-related contracts, or published NuGet library interfaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peterblazejewicz/claude-plugins/api-and-interface-design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add peterblazejewicz/claude-plugins --skill api-and-interface-design
Clone the repo
git clone --depth 1 https://github.com/peterblazejewicz/claude-plugins

Made for: Claude Code.

Or install dotnet-skills, the plugin that ships this one along with the rest of its 24 skills, 9 commands, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-and-interface-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/peterblazejewicz/claude-plugins/api-and-interface-design/github.svg)](https://agentmods.dev/skills/peterblazejewicz/claude-plugins/api-and-interface-design)
Your own site
<a href="https://agentmods.dev/skills/peterblazejewicz/claude-plugins/api-and-interface-design"><img src="https://agentmods.dev/badge/skills/peterblazejewicz/claude-plugins/api-and-interface-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-and-interface-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/peterblazejewicz/claude-plugins/api-and-interface-design"><img src="https://agentmods.dev/badge/skills/peterblazejewicz/claude-plugins/api-and-interface-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,131 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.05131
Opus 5.5 $0.00026 $0.02052
Sonnet 5.5 $0.00013 $0.01026
Haiku 4.5 $0.00006 $0.00513

Measured 2mo ago against content hash 221749a2a426, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api-and-interface-design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dotnet-skills/skills/api-and-interface-design/SKILL.md · 423 lines

How it starts

The opening of the file, as written. The whole thing — 423 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API and Interface Design

Overview

Design stable, well-documented interfaces that are hard to misuse. Good interfaces make the right thing easy and the wrong thing hard. This applies to REST APIs, gRPC services, NuGet package surface area, assembly boundaries, record/DTO shapes, and any surface where one piece of code talks to another.

When to Use

  • Designing new HTTP endpoints (Minimal APIs or controllers)
  • Defining module boundaries or contracts between projects in a solution
  • Creating public types in MyApp.Contracts or a shared NuGet library
  • Establishing database schemas that inform DTO shape
  • Changing existing public interfaces (especially in a published NuGet package)

Core Principles

Hyrum's Law

With a sufficient number of users of an API, all observable behaviors of your system will be depended on by somebody, regardless of what you promise in the contract.

This means: every public behavior — including undocumented quirks, exception messages, response ordering, and even the presence of unused fields in a JSON response — becomes a de facto contract once users depend on it. Design implications:

  • Be intentional about what you expose. Mark types internal unless a consumer outside the assembly truly needs them. Every observable behavior is a potential commitment.
  • Don't leak implementation details. Don't return EF Core entities directly from HTTP endpoints — project to DTOs (MyApp.Contracts) so schema changes to the entity don't break consumers.
  • Plan for deprecation at design time. See deprecation-and-migration for how to safely remove things users depend on.
  • Tests are not enough. Even with perfect contract tests, Hyrum's Law means "safe" changes can break real users who depend on undocumented behaviour (an exact error string, the order of a List<T> returned from a LINQ query, the presence of a nullable field that was always null).

Read the full file on GitHub · 423 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 423 lines · 64 tokens per session scan A 221749a2a426

Subscribe to this mod's changes

api-and-interface-design is a skill published in the GitHub repository peterblazejewicz/claude-plugins (8 stars, last pushed 4mo ago), licensed MIT. It adds 64 tokens to every session and 5,131 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

worker-services

Build long-running .NET background services with BackgroundService, Generic Host, graceful shutdown, configuration, logging, and deployment patterns suited to workers and daemons. USE FOR: background services; scheduled workers; hosted services; worker extraction; graceful shutdown, health checks, and service hosting…

managedcode/dotnet-skills · 109 tokens

aspnet-core

Build, debug, modernize, or review ASP.NET Core applications with correct hosting, middleware, security, configuration, logging, and deployment patterns on current .NET. USE FOR: working on ASP.NET Core apps, services, or middleware; changing auth, routing, configuration, hosting, or deployment behavior; deciding…

managedcode/dotnet-skills · 122 tokens

minimal-apis

Design and implement Minimal APIs in ASP.NET Core using handler-first endpoints, route groups, filters, and lightweight composition suited to modern .NET services. USE FOR: building new HTTP APIs in ASP.NET Core; creating lightweight microservices; choosing between Minimal APIs and controllers. DO NOT USE FOR…

managedcode/dotnet-skills · 105 tokens

web-api

Build or maintain controller-based ASP.NET Core APIs when the project needs controller conventions, advanced model binding, validation extensions, OData, JsonPatch, or existing API patterns. USE FOR: working on controller-based APIs in ASP.NET Core; needing controller-specific extensibility or conventions; migrating…

managedcode/dotnet-skills · 115 tokens

managedcode-communication

Use ManagedCode.Communication when a .NET application needs explicit result objects, structured errors, and predictable service or API boundaries instead of exception-driven control flow. USE FOR: integrating ManagedCode.Communication into services or APIs; replacing exception-driven result handling with explicit…

managedcode/dotnet-skills · 114 tokens

grpc

Build or review gRPC services and clients in .NET. USE FOR: ASP.NET Core gRPC, protobuf contracts, unary or streaming RPC, gRPC client factory, interceptors, deadlines, cancellation, channel reuse, backend service integration. DO NOT USE FOR: broad browser-facing APIs without gRPC-Web tradeoff review, SignalR realtime…

managedcode/dotnet-skills · 95 tokens