ASP.NET Core Web API
Modern ASP.NET Core patterns for building RESTful APIs.
Skill by ngxtm
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ngxtm-asp-net-core-web-api
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/asp-net-core-web-api
What's inside
- Skill name
ASP.NET Core Web API- Description
- Modern ASP.NET Core patterns for building RESTful APIs.
- License
- MIT
- Instructions
- 84 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "ASP.NET Core Web API" does not match folder "aspnet-core"
Files (2)
- SKILL.md
- REFERENCE.md · references/
SKILL.md (first lines)
# ASP.NET Core Web API
## **Priority: P1 (OPERATIONAL)**
Modern ASP.NET Core patterns for building RESTful APIs.
## Implementation Guidelines
- **Minimal APIs**: Use for simple endpoints. `app.MapGet()`, route groups, endpoint filters.
- **Controllers**: Use `[ApiController]` for automatic model validation and binding.
- **Middleware**: Order matters. Custom middleware with `app.Use()`.
- **Filters**: Action filters for cross-cutting concerns. Exception filters for error handling.
- **Validation**: FluentValidation or DataAnnotations. Return `ProblemDetails` on errors.
- **Versioning**: URL-based (`/api/v1/`) or header-based versioning.
- **OpenAPI**: Always configure Swagger for API documentation.
- **Response Types**: Use `TypedResults` for compile-time safety.
## Anti-Patterns
- **No `HttpClient` without `IHttpClientFactory`**: Socket exhaustion risk.
- **No blocking async**: Never `.Result` or `.Wait()` in controllers.
- **No business logic in controllers**: Controllers should only orchestrate.
- **No returning `Task` without `async`**: Use `async` keyword or return directly.
## Code
```csharp
// Minimal API with route groups
var app = WebApplication.CreateBuilder(args).Build();
var users = app.MapGroup("/api/users")
.WithTags("Users")
.RequireAuthorization();
users.MapGet("/", async (IUserService service) =>
TypedResults.Ok(await service.GetAllAsync()));
users.MapGet("/{id:int}", async (int id, IUserService service) =>
await service.GetByIdAsync(id) is { } user
? TypedResults.Ok(user)
: TypedResults.NotFound());
users.MapPost("/", async (CreateUserDto dto, IUserService service) =>
{
var user = await service.CreateAsync(dto);
return TypedResults.Created($"/api/users/{user.Id}", user);
}).AddEndpointFilter<ValidationFilter<CreateUserDto>>();
// Controller with proper patterns
[ApiController]
[Route("api/[controller]")]
[Produces("application/json")]
public class OrdersController(IOrderService orderService) : ControllerBase
{
[HttpGet("{id:int}")]
[ProducesResponseType<OrderDto>(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
public async Task<IActionResult> GetOrder(int id, CancellationToken ct)
{
var order = await orderService.GetByIdAsync(id, ct);
return order is null ? NotFound() : Ok(order);
}
[HttpPost]
[ProducesResponseType<OrderDto>(StatusCodes.Status201Created)]
[ProducesResponseType<ValidationProblemDetails>(StatusCodes.Status400BadRequest)]
public async Task<IActionResult> CreateOrder(CreateOrderDto dto, CancellationToken ct)
{
var order = await orderService.CreateAsync(dto, ct);
return CreatedAtAction(nameof(GetOrder), new { id = order.Id }, order);
}
}
```
## Reference & Examples
For middleware, exception handling, and HttpClientFactory:
See [references/REFERENCE.md](references/REFERENCE.md).
## Related Topics
security | razor-pages | blazorFrom ngxtm/devkit, MIT.
More from ngxtm/devkit
- 0.463score
Flutter Feature-Based Clean Architecture
ngxtm
Standards for organizing code by feature at the root level to improve scalability and maintainability.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
Flutter GetX Navigation
ngxtm
Context-less navigation, named routes, and middleware using GetX.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
C# Language Patterns
ngxtm
Modern C# standards for type safety, performance, and maintainability.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
Razor Pages
ngxtm
ASP.NET Core Razor Pages patterns for server-rendered web apps.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
.NET Security
ngxtm
Security standards for .NET applications based on OWASP guidelines.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
Flutter BLoC State Management
ngxtm
Standards for predictable state management using flutter_bloc, freezed, and equatable.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
Flutter CI/CD
ngxtm
Continuous Integration and Deployment standards for Flutter apps.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
Flutter Dependency Injection (Injectable)
ngxtm
Standards for automated service locator setup using injectable and get_it.
SkillDFreshness: D★ 8Claude Code +9 - 0.460score
Blazor
ngxtm
Blazor component patterns for interactive web UIs.
SkillDFreshness: D★ 8Claude Code +9 - 0.460score
Flutter AutoRoute Navigation
ngxtm
Typed routing, nested routes, and guards using auto_route.
SkillDFreshness: D★ 8Claude Code +9 - 0.460score
Flutter Error Handling
ngxtm
Functional error handling using Dartz and Either.
SkillDFreshness: D★ 8Claude Code +9 - 0.460score
C# Best Practices
ngxtm
Idiomatic C# patterns for clean, maintainable code.
SkillDFreshness: D★ 8Claude Code +9
Signals
- Stars
- 8
- Forks
- 5
- Open issues
- 0
- Last commit (this folder)
- Feb 3, 2026 (8 months ago)
- Last release
- Feb 28, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ngxtm/devkit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ngxtm
- 0.463score
.NET Security
ngxtm
Security standards for .NET applications based on OWASP guidelines.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
Flutter BLoC State Management
ngxtm
Standards for predictable state management using flutter_bloc, freezed, and equatable.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
Flutter GetX Navigation
ngxtm
Context-less navigation, named routes, and middleware using GetX.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
Razor Pages
ngxtm
ASP.NET Core Razor Pages patterns for server-rendered web apps.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
C# Language Patterns
ngxtm
Modern C# standards for type safety, performance, and maintainability.
SkillDFreshness: D★ 8Claude Code +9 - 0.463score
Flutter CI/CD
ngxtm
Continuous Integration and Deployment standards for Flutter apps.
SkillDFreshness: D★ 8Claude Code +9
Cite this page
ASP.NET Core Web API skill. Agent Mart. https://agentmart.dev/skills/ngxtm-asp-net-core-web-api (last updated 2026-10-24)