neo-dotnet-minimal-apis

neo-dotnet-minimal-apis is a skill for Claude Code, Codex from Benknightdark/neo-skills. It costs 53 tokens per session (979 once invoked), scanned A, original, MIT.

A guide for building and reviewing ASP.NET Core Minimal APIs: small web APIs made from direct endpoints instead of controller classes.

In plain words
What is it for?
Use it when creating, debugging, refactoring, or reviewing Minimal APIs, route groups, endpoint filters, typed responses, and OpenAPI settings in .NET 6 or later.
Why use it?
It helps choose suitable .NET patterns for organizing routes, validating input, documenting endpoints, and keeping API code efficient.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating, debugging, refactoring, or reviewing Minimal APIs, route groups, endpoint filters, typed responses, and OpenAPI settings in .NET 6 or later.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/benknightdark/neo-skills/neo-dotnet-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 Benknightdark/neo-skills --skill neo-dotnet-minimal-apis
Clone the repo
git clone --depth 1 https://github.com/Benknightdark/neo-skills

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 neo-dotnet-minimal-apis

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/benknightdark/neo-skills/neo-dotnet-minimal-apis"><img src="https://agentmods.dev/badge/skills/benknightdark/neo-skills/neo-dotnet-minimal-apis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 979 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.00053 $0.00979
Opus 5 $0.00026 $0.00490
Sonnet 5 $0.00011 $0.00196
Haiku 4.5 $0.00005 $0.00098

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

Security

Grade A, and why

neo-dotnet-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 12d 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.

skills/neo-dotnet-minimal-apis/SKILL.md · 83 lines

How it starts

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

.NET Minimal APIs Expert Skill

Trigger On

  • The user requests to create, debug, refactor, or review .NET Minimal APIs.
  • The project's Program.cs contains WebApplication.CreateBuilder(args) and is not configured with a Controllers directory.
  • The target framework is .NET 6.0 (LTS) and above.
  • There is a need to optimize API performance or simplify Web API architecture.

Workflow

  1. Perceive (Architecture Awareness):
    • Check .csproj to identify TargetFramework.
    • Analyze Program.cs to distinguish whether it uses simple endpoints or adopts a Module-based or Vertical Slice organization.
    • Identify whether OpenAPI (Swagger) support has been configured.
  2. Reason (Planning Phase):
    • Evaluate whether "Route Groups" need to be introduced to optimize organizational structure.
    • Determine whether to use "Endpoint Filters" to handle cross-cutting concerns (such as parameter validation).
    • Choose the most appropriate syntax based on the .NET version (e.g., TypedResults in .NET 7+).
  3. Act (Execution Phase):
    • Write clean, high-performance Minimal API code, prioritizing Lambdas or extension methods.
    • Implement strong typing and DTOs (prioritize using record).
    • Integrate dependency injection, avoiding the Service Locator pattern.
  4. Validate (Standard Validation):
    • Validate whether the endpoints correctly return expected HTTP status codes.
    • Check whether the generated OpenAPI documentation is complete.
    • Ensure asynchronous operations correctly pass the CancellationToken.

Feature Roadmap (.NET 6 - 10)

.NET 6 & 7 (Foundation)

  • Minimal Hosting: Simplified startup process and top-level statements.
  • Route Groups: Use MapGroup to consolidate prefixes and authentication.
  • Endpoint Filters: Implement interception logic within Minimal APIs.
  • Typed Results: Improved unit testing and Swagger support.

.NET 8 & 9 (Productivity)

  • Antiforgery: Built-in anti-forgery token support.
  • Form Binding: Support for [FromForm] parameter binding.
  • HybridCache: High-performance multi-level caching support.
  • OpenAPI Improvements: Better OpenAPI code generation.

Read the full file on GitHub · 83 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. 12d ago First seen · 83 lines · 53 tokens per session scan A 1b3f50d88436

Subscribe to this mod's changes

neo-dotnet-minimal-apis is a skill published in the GitHub repository Benknightdark/neo-skills (7 stars, last pushed 6d ago), licensed MIT. It adds 53 tokens to every session and 979 once invoked, about $0.0003 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

csharp-dotnet

Use when building on .NET 8+ with C# 12. Covers nullable reference types, records, async/await correctness, minimal APIs, dependency injection, and EF Core query performance.

nimadorostkar/Claude-Skills-collection · 44 tokens

csharp-developer

Use when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps. Builds REST APIs using minimal or controller-based routing, configures database access with Entity Framework Core, implements async patterns and cancellation, structures applications with CQRS via MediatR, and scaffolds Blazor…

Jeffallan/claude-skills · 102 tokens

dotnet-core-expert

Use when building .NET 8 applications with minimal APIs, clean architecture, or cloud-native microservices. Invoke for Entity Framework Core, CQRS with MediatR, JWT authentication, AOT compilation.

Jeffallan/claude-skills · 47 tokens

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