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.
npx skills add managedcode/dotnet-skills --skill minimal-apisgit clone --depth 1 https://github.com/managedcode/dotnet-skillsWrote 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.
[](https://agentmods.dev/skills/managedcode/dotnet-skills/minimal-apis)<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/minimal-apis"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/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.
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/minimal-apis"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/minimal-apis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00105 | $0.02029 |
| Opus 5.5 | $0.00042 | $0.00812 |
| Sonnet 5.5 | $0.00021 | $0.00406 |
| Haiku 4.5 | $0.00011 | $0.00203 |
Grade A, and why
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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 280 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Minimal APIs
Trigger On
- building new HTTP APIs in ASP.NET Core
- creating lightweight microservices
- choosing between Minimal APIs and controllers
- organizing endpoints with route groups
- implementing validation and filters
Documentation
References
- patterns.md - detailed route groups, filters, TypedResults patterns, parameter binding, error handling, and testing
- anti-patterns.md - common Minimal API mistakes to avoid
When to Use Minimal APIs vs Controllers
| Use Minimal APIs | Use Controllers |
|---|---|
| New projects | Existing MVC/API projects |
| Microservices | Complex model binding |
| Simple CRUD APIs | OData, JsonPatch |
| Lightweight handlers | Heavy use of attributes |
| .NET 8+ projects | Need [ApiController] features |
Workflow
- Define endpoints directly in Program.cs (for small APIs)
- Use route groups for related endpoints
- Move handlers to separate classes as the API grows
- Apply filters for cross-cutting concerns
- Use TypedResults for type-safe responses
- Generate OpenAPI docs with
.WithOpenApi()
Current Upstream Notes
dotnet/aspnetcorev10.0.11is servicing; it does not change the Minimal API route-group, filter, orTypedResultsmodel, but it updates the OpenAPI stack to2.7.5. Re-run document-generation and contract snapshots after upgrading.- The August 2026
aspnetcore-10.0overview still routes lightweight HTTP APIs here. Use the dedicated Minimal API pages when exact OpenAPI, filter, or parameter-binding behavior matters.
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.
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.
- 3mo ago First seen · 280 lines · 105 tokens per session scan A 9643f9f467d4
minimal-apis is a skill published in the GitHub repository managedcode/dotnet-skills (530 stars, last pushed today), licensed MIT. It adds 105 tokens to every session and 2,029 once invoked, about $0.0004 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-30.
minimal-apis compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| minimal-apismanagedcode/dotnet-skills | Skill | 530 | today | MIT | A | 105 | Claude Code, Codex |
| clean-architecture-dotnetSebastienDegodez/copilot-instructions | Skill | 199 | 27d ago | Apache-2.0 | A | 50 | Claude Code, Codex |
| codegenAterDev/Perigon.CLI | Skill | 54 | 4d ago | Apache-2.0 | A | 53 | Claude Code, Codex |
| add-sliceSSWConsulting/SSW.VerticalSliceArchitecture | Skill | 418 | 6d ago | MIT | A | 125 | Claude Code |
| backend-conventionsfpindej/netrock | Skill | 236 | 18d ago | MIT | A | 27 | Claude Code |
| add-options-classfpindej/netrock | Skill | 236 | 18d ago | MIT | A | 9 | Claude Code |
| ktor-scaffoldnavikt/copilot | Skill | 65 | today | MIT | A | 28 | Claude Code, Codex |