Install
$ agentstack add skill-hoangnh2412-ai-skills-healthcheck-dotnet ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Jarvis.HealthChecks — Orchestrator
Skill điều phối tích hợp Jarvis.HealthChecks vào ASP.NET Core minimal hosting.
Khi nào dùng workflow nào
| Tình huống | Workflow | |---|---| | Project chưa có healthcheck | [workflows/init.md](workflows/init.md) | | Đã có core, cần thêm dependency | [workflows/add.md](workflows/add.md) | | Đã có core, cần dashboard UI | [workflows/ui.md](workflows/ui.md) |
Quy tắc cốt lõi
- Gọi
builder.AddHealthChecks()(Jarvis) trước readiness registrations. - Gọi
app.UseHealthChecks()sau khi build pipeline. - Liveness = process/runtime; readiness = infrastructure dependencies.
- Không đặt database vào liveness.
- Config path đầy đủ:
ConnectionStrings:MainDb— không hardcode. - Timeout:
HealthChecks:DefaultTimeoutSeconds, clamp 1–120.
Endpoints
| Endpoint | Mục đích | |---|---| | /health/live | Liveness | | /health/ready | Readiness | | /health/startup | Startup probe | | /health | Aggregate | | /health/prometheus | Prometheus metrics (khi bật) | | /healthchecks-ui | Dashboard SPA — xem [workflows/ui.md](workflows/ui.md) | | /healthchecks-api | JSON API cho SPA |
Templates
- [templates/program-setup.cs](templates/program-setup.cs) —
Program.cstối thiểu - [templates/base-healthcheck.cs](templates/base-healthcheck.cs) — custom
IHealthCheck+ extension readiness
Providers (atomic)
Chỉ đọc provider cần dùng:
| Provider | Path | |---|---| | PostgreSQL | [providers/postgresql/SKILL.md](providers/postgresql/SKILL.md) | | MySQL | [providers/mysql/SKILL.md](providers/mysql/SKILL.md) | | SQL Server | [providers/mssql/SKILL.md](providers/mssql/SKILL.md) | | Oracle | [providers/oracle/SKILL.md](providers/oracle/SKILL.md) | | Redis | [providers/redis/SKILL.md](providers/redis/SKILL.md) | | Kafka | [providers/kafka/SKILL.md](providers/kafka/SKILL.md) | | RabbitMQ | [providers/rabbitmq/SKILL.md](providers/rabbitmq/SKILL.md) | | MinIO | [providers/minio/SKILL.md](providers/minio/SKILL.md) | | HTTP | [providers/http/SKILL.md](providers/http/SKILL.md) | | SignalR | [providers/signalr/SKILL.md](providers/signalr/SKILL.md) |
Cấu trúc code trong project
HealthChecks/
├── *HealthCheck.cs # custom IHealthCheck (nếu cần)
└── ReadinessHealthCheckExtensions.cs
- Mỗi dependency một file
*HealthCheck.cshoặc registration riêng trong extension. - Gom registration tại
*ReadinessHealthCheckExtensions.cs. - Không nhét toàn bộ readiness logic vào
Program.cs.
Output bắt buộc
- Thay đổi
Program.cs - Extension/readiness registration
appsettings.json(HealthChecks:Readiness;HealthChecks:Uitheo [workflows/ui.md](workflows/ui.md))
Checklist validation
Wiring & packages
- [ ] Package
Jarvis.HealthChecks(và provider NuGet nếu có readiness) - [ ]
builder.AddHealthChecks()trước readiness registrations - [ ]
app.UseHealthChecks()sau pipeline (trướcRun) - [ ]
dotnet buildthành công
Probe endpoints (mọi môi trường)
- [ ]
GET /health/live→ 200 (không phụ thuộc DB) - [ ]
GET /health/startup→ 200 sau app started - [ ]
GET /health/ready→ 200 khi deps healthy; 503 khi một dep down - [ ]
GET /health→ JSON aggregate (API key nếu đã cấu hìnhDetailedEndpointApiKey) - [ ] Probe không cần JWT (anonymous, không 401/403)
- [ ] Readiness checks gắn tag
readiness; không có DB trên liveness
Readiness (khi đã thêm provider)
- [ ]
HealthChecks:Readinessdùng config key path, resolve được giá trị - [ ]
DefaultTimeoutSecondstrong khoảng 1–120 - [ ] Mỗi provider đã đăng ký trong
*ReadinessHealthCheckExtensions.cs - [ ] Tắt từng dependency →
/health/readyphản ánh Unhealthy
Prometheus (khi bật)
- [ ]
EnablePrometheusMetrics: true - [ ]
GET /health/prometheustrả metrics
HealthChecks UI (khi bật — [workflows/ui.md](workflows/ui.md))
- [ ]
HealthChecks:Ui:Enabledđúng môi trường (Production thườngfalse) - [ ]
Endpoints[].Urituyệt đối, khớp URL Kestrel - [ ]
GET /healthchecks-uimở dashboard - [ ] UI worker poll thành công (không 401 trên
/health/*)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: hoangnh2412
- Source: hoangnh2412/ai-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.