
Description
Error Handling is an agent skill that sets the error-handling strategy for .NET 10 applications. It tells the agent to use a Result pattern for expected failures, such as an order that is not found or a failed validation, and to keep exceptions for truly unexpected problems like a lost database connection or a null reference. Every API error is returned as ProblemDetails following RFC 9457, with a type, title, status, detail and optional errors. The skill asks that requests be validated at the API boundary rather than deep inside business logic, and it covers global exception handling and FluentValidation. It includes a simple generic result type that carries either a value or a list of errors. It is written for .NET developers who want consistent error responses across an API, and the agent applies it as guidance when it writes or reviews code in your project.…
Highlights
- Result pattern for expected failures
- ProblemDetails (RFC 9457) error responses
- Global exception handling for unexpected errors
- Request validation at the API boundary
- Generic result type holding a value or errors
Ratings & Reviews
No ratings yet
Be the first to rate error-handling.
People also visit
error-handling FAQ
What does the error-handling skill change in a .NET project?
It sets one approach for errors. Expected failures return a result object, unexpected failures go to a global handler, and API errors use ProblemDetails with type, title, status, detail and optional errors.
Which .NET version is it written for?
The skill targets .NET 10 applications.
How do I install it?
Run npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill error-handling in your project.
Where is the source?
The skill is published in the public GitHub repository codewithmukesh/dotnet-claude-kit.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best error-handling alternatives?
Popular alternatives to error-handling include dotnet-10-csharp-14, resilience and configuration. See all error-handling alternatives









