01
It starts by itself
API endpoint change. Runs in GitHub Actions or Claude Code routine.
- ↻ API endpoint change
pull_request paths: **/*Controller.cs, Program.cs, **/Endpoints/**
New API endpoints follow HTTP conventions.
Install the ASP.NET Core Web API skill and make it a habit: follow https://gethabit.dev/skills/dotnet/dotnet-webapi.md
4K installs6K starsMIT licenceSource on GitHub ↗

ASP.NET Core Web API
by dotnet · 4K installs
The skill
Dotnet webapi guides creating and changing ASP.NET Core Web API endpoints with correct HTTP semantics, sealed record DTOs, OpenAPI metadata, RFC 7807 error handling and .http test files.
Only when you ask.
The habit
New API endpoints follow HTTP conventions.
↻ Runs by itselfAPI endpoint change
When does it start? How does it check its work? What does it remember?
Stops after the changed endpoints of one pull request.
Scan for ControllerBase or app.MapGet to see whether the project uses controllers or minimal APIs, and do not mix them.
Confirm request and response types are sealed records with XML summaries and DateTimeOffset for dates.
Confirm status codes, Location headers on create, and a CancellationToken forwarded to async calls.
Confirm endpoints carry summary and description metadata and enums serialize as strings.
Confirm a global exception handler returns RFC 7807 Problem Details and lives in the Middleware folder.
Run dotnet build, load the OpenAPI document and run the .http requests.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the ASP.NET Core Web API skill helps.
No. The skill says use the built-in AddOpenApi and MapOpenApi and avoid Swashbuckle on .NET 9 and later.
No. The skill requires sealed record types.
Copy the prompt at the top into your agent. It installs the skill from dotnet/skills and sets up the habit. Or run npx skills add dotnet/skills --skill dotnet-webapi.
Yes. It is published under MIT. Habit is free too.
Install the ASP.NET Core Web API skill and make it a habit: follow https://gethabit.dev/skills/dotnet/dotnet-webapi.md
All dotnet skills →More code skills →
Works in
Made by dotnet, published under MIT. Habit links to the original and never changes it. Is this your skill?