aspnetcore-minimal-apis

aspnetcore-minimal-apis is a skill for Claude Code from vaquarkhan/Fullstack-development-agent-skills. It costs 44 tokens per session (504 once invoked), scanned A, original, MIT.

A guide for building lightweight .NET 8 or newer web APIs with ASP.NET Core minimal APIs, which define HTTP endpoints with less framework setup than traditional controllers. It covers authentication, validation, API documentation, and integration testing.

In plain words
What is it for?
Creating endpoint groups, adding JWT or Microsoft Entra ID login protection, validating requests, generating OpenAPI documentation, handling errors with ProblemDetails, and testing with WebApplicationFactory.
Why use it?
It gives a coding agent consistent patterns and checks for small services and backend-for-frontend endpoints, including safe error handling and asynchronous database or network work.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the fullstack-development-agent-skills plugin — 129 skills, 10 commands shipped together

Good fit Creating endpoint groups, adding JWT or Microsoft Entra ID login protection, validating requests, generating OpenAPI documentation, handling errors with ProblemDetails, and testing with WebApplicationFactory.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaquarkhan/fullstack-development-agent-skills/aspnetcore-minimal-apis
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 vaquarkhan/Fullstack-development-agent-skills --skill aspnetcore-minimal-apis
Clone the repo
git clone --depth 1 https://github.com/vaquarkhan/Fullstack-development-agent-skills

Made for: Claude Code.

Or install fullstack-development-agent-skills, the plugin that ships this one along with the rest of its 129 skills, 10 commands.

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 aspnetcore-minimal-apis

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/aspnetcore-minimal-apis/github.svg)](https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/aspnetcore-minimal-apis)
Your own site
<a href="https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/aspnetcore-minimal-apis"><img src="https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/aspnetcore-minimal-apis/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 aspnetcore-minimal-apis

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/aspnetcore-minimal-apis"><img src="https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/aspnetcore-minimal-apis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 504 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.00044 $0.00504
Opus 5 $0.00022 $0.00252
Sonnet 5 $0.00009 $0.00101
Haiku 4.5 $0.00004 $0.00050

Measured 9d ago against content hash e890f864edcb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

aspnetcore-minimal-apis 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 9d 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.

skill-packs/dotnet/aspnetcore/aspnetcore-minimal-apis/SKILL.md · 61 lines

How it starts

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

ASP.NET Core Minimal APIs

Use When

  • Building .NET 8+ minimal API services or BFF layers
  • Teams want thin Program.cs with endpoint groups and filters
  • Cross-stack skill dotnet-aspnet-core-microservices needs .NET-specific implementation depth

Workflow

  1. Register services in DI (DbContext, handlers, auth).
  2. Group endpoints with MapGroup and route prefixes (/api/v1).
  3. Use typed request records and IResult/Results for responses.
  4. Add endpoint filters for validation, logging, and problem details.
  5. Configure JWT bearer or Entra ID; apply RequireAuthorization per route.
  6. Test with WebApplicationFactory and integration tests.

Required Checks

  • CancellationToken forwarded to all async I/O
  • ProblemDetails for errors — consistent with RFC 9457
  • OpenAPI documents auth schemes and error responses
  • No .Result or .Wait() on async calls in request path

Examples And Templates

See examples/ for side-by-side good vs bad patterns agents commonly get wrong. See templates/ for copy-paste starters aligned with this skill.

Decision Framework

  • Prefer minimal APIs for small services; MVC/controllers when view-heavy or complex model binding.
  • Use IMediator (MediatR) when handlers grow — keep MapPost one-liners as entry only.
  • Health checks at /health; readiness includes DB ping.
  • Use IOptions for config — not static ConfigurationManager reads in handlers.

Common Rationalizations And Rebuttals

  • "Minimal APIs are only for demos." -> Production-ready with filters, auth, and testing patterns.
  • "One file is fine." -> Split endpoint groups by domain as service grows.
  • "Exception middleware is enough." -> Validate at boundary; return typed validation problems.

Evidence Pack

  • OpenAPI snapshot with security schemes
  • Integration test output for authorized vs anonymous calls
  • Endpoint filter unit test for validation failures
  • Health/readiness probe configuration

Exit Criteria

  • Endpoints are typed, authorized, and documented
  • Async and cancellation used throughout request path
  • Error responses match API contract

Read the full file on GitHub · 61 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 61 lines · 44 tokens per session scan A e890f864edcb

Subscribe to this mod's changes

aspnetcore-minimal-apis is a skill published in the GitHub repository vaquarkhan/Fullstack-development-agent-skills (2 stars, last pushed 4d ago), licensed MIT. It adds 44 tokens to every session and 504 once invoked, about $0.0002 per session on Opus 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

ruoyi-cloud

Use when scaffolding Java Spring Cloud microservice backends — Nacos service discovery, Sentinel rate limiting, Seata distributed transactions, Spring Boot 3 + Vue 3 admin. RuoYi-Cloud: popular Chinese Spring Cloud microservice boilerplate framework.

znlgis/opengis-skills · 56 tokens

others-skills

Use when needing Go language development, desktop RPA automation, self-hosted email marketing, Java Spring Cloud scaffolding, or SSL/TLS certificate automation. Index of 6 skills: Go, RobotGo, RobotGo-Flow, BillionMail, RuoYi-Cloud, acme.sh.

znlgis/opengis-skills · 64 tokens

spring-boot

Spring Boot 3.x - Java framework for production-ready applications with dependency injection, REST APIs, data access, security, and actuator monitoring.

bobmatnyc/claude-mpm-skills · 31 tokens

spring-boot-4-conventions

Spring Framework 7 / Spring Boot 4 idioms and defaults. Use when writing or reviewing controllers, services, configuration, HTTP clients, async/virtual-thread code, or anything touching Spring's programming model.

loiane/specs-driven-development-spring-angular · 50 tokens

quarkus-expert

High-performance Quarkus framework expertise covering reactive patterns, CDI, build-time augmentation, and cloud-native development. Use for general Quarkus questions.

kinhluan/rules-quarkus-skills · 36 tokens

senior-java

World-class Java and Spring Boot development skill for enterprise applications, microservices, and cloud-native systems. Expertise in Spring Framework, Spring Boot 3.x, Spring Cloud, JPA/Hibernate, and reactive programming with WebFlux. Includes project scaffolding, dependency management, security implementation, and…

xuansenpa1/skillrevise · 65 tokens