All skills
Skillintermediate
health check
Create health check scripts to verify service and infrastructure availability.
Claude Code Knowledge Pack7/10/2026
Overview
Create health check scripts to verify service and infrastructure availability.
Steps
- Identify what needs to be checked:
- Design the health check suite:
- Implement each check:
- Set up response format:
- Configure alerting thresholds:
- Schedule periodic execution (cron, Kubernetes probe, monitoring tool).
- Document the health check endpoints and their meanings.
Format
Health Check: <service name>
Status: <healthy|degraded|unhealthy>
Checks:
- <check name>: <pass|fail> (<latency>ms)
Rules
- Health checks must complete within 5 seconds.
- Do not perform destructive operations in health checks.
- Cache results for short periods to avoid overloading dependencies.