health-checks

Configure .NET health checks for liveness, readiness, and dependency endpoints.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill health-checks-hiiamsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: health-checks
Source: https://github.com/hiiamsky/multi-agent-dev-team/tree/main/.github/skills/dotnet-health-checks
Command: npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill health-checks-hiiamsky

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires AspNetCore.HealthChecks.NpgSql, AspNetCore.HealthChecks.UI.Client.

What problem does it solve?

Health checks provide a structured mechanism to verify that an application is healthy, including liveness, readiness, and dependency checks, enabling robust container orchestration and automatic restarts.

Core Features & Use Cases

  • Liveness checks ensure the app is running and responsive.
  • Readiness checks confirm the app can serve traffic and handle requests.
  • Database checks validate connectivity to PostgreSQL and other DBs.
  • External service and custom checks monitor API availability and business logic health.
  • Use Case: deploy in a microservice, expose /health/live and /health/ready endpoints to orchestrators.

Quick Start

Register health checks in Program.cs and map the endpoints for live and ready probes.

Frequently Asked Questions about health-checks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure liveness and readiness health checks in a .NET microservice?

You configure liveness and readiness health checks in .NET by registering Microsoft.Extensions.Diagnostics.HealthChecks and mapping /health/live and /health/ready endpoints in Program.cs. This allows orchestrators to verify application responsiveness and traffic readiness.

What is the difference between liveness and readiness probes in .NET applications?

Liveness probes verify the .NET application is running and responsive, while readiness probes confirm it can serve traffic by checking dependencies. Separating these checks enables robust container orchestration and automatic restarts without dropping active requests.

How do I include PostgreSQL database connectivity in my .NET health checks?

To include PostgreSQL database connectivity in .NET health checks, register the AspNetCore.HealthChecks.NpgSql dependency. This configures the readiness probe to validate database connections, ensuring the application only serves traffic when dependencies are available.

Can I add custom checks to monitor external API availability in .NET?

Yes, you can add custom checks to monitor external API availability in .NET. The health check mechanism supports external service and custom checks, allowing you to verify business logic health and API availability alongside standard database checks.

Do I need Microsoft.Extensions.Diagnostics.HealthChecks to expose health endpoints?

Yes, you need Microsoft.Extensions.Diagnostics.HealthChecks to expose health endpoints. The Skill requires this package and explicit registration of health checks in the program to successfully expose the /health/live and /health/ready endpoints.

Why are my .NET readiness checks failing during container orchestration deployments?

Readiness checks fail during container orchestration when dependencies like PostgreSQL are unavailable. The readiness probe validates external services and database connectivity, ensuring the container orchestrator routes traffic only when the .NET application can handle requests.