secondsky avatar

Health Check Endpoints

This gives you the four essential health check endpoints for keeping services alive in production: liveness probes that tell Kubernetes when to restart your container, readiness checks that verify dependencies before sending traffic, startup probes for slow-booting apps, and deep checks for comprehensive monitoring. The implementation is straightforward, with lightweight liveness checks that never hit external services and readiness endpoints that actually test your database and Redis connections. What I appreciate here is the clear table showing exactly what each probe does and what happens when it fails. The Kubernetes config examples are production-ready, and the best practices section correctly emphasizes keeping liveness checks dependency-free to avoid restart loops. If you're debugging probe failures or setting up auto-scaling, this covers the essential patterns.

skills.sh installs
420
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill health-check-endpoints --agent claude-code

Installs into .claude/skills of the current project.

Files

Health Check Endpoints

Implement health checks for monitoring service availability and readiness.

Probe Types

ProbePurposeFailure Action
LivenessIs process alive?Restart container
ReadinessCan handle traffic?Remove from LB
StartupHas app started?Delay other probes
DeepAll deps healthy?Trigger alerts

Implementation (Express)

class HealthChecker {
  async checkDatabase() {
    const start = Date.now();
    try {
      await db.query('SELECT 1');
      return { status: 'healthy', latency: Date.now() - start };
    } catch (err) {
      return { status: 'unhealthy', error: String(err?.message || err) };
    }
  }

  async checkRedis() {
    try {
      await redis.ping();
      return { status: 'healthy' };
    } catch (err) {
      return { status: 'unhealthy', error: err.message };
    }
  }

  async getReadiness() {
    const checks = await Promise.all([
      this.checkDatabase(),
      this.checkRedis()
    ]);
    const healthy = checks.every(c => c.status === 'healthy');
    return { healthy, checks };
  }
}

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Category
DevOps & CI/CD
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1tencentcloudbase avatarcloudbase-agent-tstencentcloudbase/skillsBuild and deploy AI agents with Cloudbase Agent (TypeScript), a TypeScript SDK implementing the AG-UI protocol. Use when: (1) deploying agent servers with @clou420skills.sh installs
2brightdata avatarscraper-builderbrightdata/skillsBuild production-ready web scrapers for any website using Bright Data infrastructure. Guides you through site analysis, API selection, selector extraction, pagi415skills.sh installs
3jezweb avatarclaude-agent-sdkjezweb/claude-skillsBuild autonomous AI agents with Claude Agent SDK. Structured outputs guarantee JSON schema validation, with plugins system and hooks for event-driven workflows.415skills.sh installs
4nikiforovall avatarglabnikiforovall/claude-code-rulesExpert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the com414skills.sh installs
5secondsky avatarrecommendation-systemsecondsky/claude-skillsDeploy production recommendation systems with feature stores, caching, A/B testing. Use for personalization APIs, low latency serving, or encountering cache inv412skills.sh installs
6mcollina avatarnode-best-practicesmcollina/skillsProvides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, test404skills.sh installs