aspnet-minimal-api-openapi

aspnet-minimal-api-openapi is a skill for Claude Code, Codex from thangchung/agent-engineering-experiment. It costs 19 tokens per session (344 once invoked), scanned A, a copy of aspnet-minimal-api-openapi, MIT.

A guide for creating ASP.NET Minimal API endpoints with OpenAPI documentation. ASP.NET is Microsoft’s web framework, Minimal APIs are a compact way to define web endpoints, and OpenAPI describes those endpoints for people and tools.

In plain words
What is it for?
It helps create endpoint groups, request and response models, validation, typed route handling, error responses, and Swagger/OpenAPI descriptions.
Why use it?
It encourages clear request and response types, validation, grouped endpoints, typed results, and standard error responses, making an API easier to understand and use correctly.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/thangchung/agent-engineering-experiment/aspnet-minimal-api-openapi
Any agent
npx skills add thangchung/agent-engineering-experiment --skill aspnet-minimal-api-openapi
Clone the repo
git clone --depth 1 https://github.com/thangchung/agent-engineering-experiment

Made for: Claude Code, Codex.

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 aspnet-minimal-api-openapi

README.md
[![agentmods](https://agentmods.dev/badge/skills/thangchung/agent-engineering-experiment/aspnet-minimal-api-openapi.svg)](https://agentmods.dev/skills/thangchung/agent-engineering-experiment/aspnet-minimal-api-openapi)
Your own site
<a href="https://agentmods.dev/skills/thangchung/agent-engineering-experiment/aspnet-minimal-api-openapi"><img src="https://agentmods.dev/badge/skills/thangchung/agent-engineering-experiment/aspnet-minimal-api-openapi.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 344 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00019 $0.00344
Opus 5 $0.00010 $0.00172
Sonnet 5 $0.00004 $0.00069
Haiku 4.5 $0.00002 $0.00034

Measured 5d ago against content hash df88c0c7b7a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aspnet-minimal-api-openapi 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 5d 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.

Origin

This is a copy

100% identical to aspnet-minimal-api-openapi — 1 line differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agentgateway-entraid-obo/.claude/skills/aspnet-minimal-api-openapi/SKILL.md · 41 lines

What it actually says

ASP.NET Minimal API with OpenAPI

Your goal is to help me create well-structured ASP.NET Minimal API endpoints with correct types and comprehensive OpenAPI/Swagger documentation.

API Organization

  • Group related endpoints using MapGroup() extension
  • Use endpoint filters for cross-cutting concerns
  • Structure larger APIs with separate endpoint classes
  • Consider using a feature-based folder structure for complex APIs

Request and Response Types

  • Define explicit request and response DTOs/models
  • Create clear model classes with proper validation attributes
  • Use record types for immutable request/response objects
  • Use meaningful property names that align with API design standards
  • Apply [Required] and other validation attributes to enforce constraints
  • Use the ProblemDetailsService and StatusCodePages to get standard error responses

Type Handling

  • Use strongly-typed route parameters with explicit type binding
  • Use Results<T1, T2> to represent multiple response types
  • Return TypedResults instead of Results for strongly-typed responses
  • Leverage C# 10+ features like nullable annotations and init-only properties

OpenAPI Documentation

  • Use the built-in OpenAPI document support added in .NET 9
  • Define operation summary and description
  • Add operationIds using the WithName extension method
  • Add descriptions to properties and parameters with [Description()]
  • Set proper content types for requests and responses
  • Use document transformers to add elements like servers, tags, and security schemes
  • Use schema transformers to apply customizations to OpenAPI schemas
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. 5d ago First seen · 41 lines · 19 tokens per session scan A df88c0c7b7a1

Subscribe to this mod's changes

aspnet-minimal-api-openapi is a skill published in the GitHub repository thangchung/agent-engineering-experiment (24 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 344 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to aspnet-minimal-api-openapi, differing in 1 line, and is treated as a copy.