healthcheck
Skill by ITISFoundation
Adds a FastAPI health endpoint and a Docker HEALTHCHECK for one service in the ITISFoundation services codebase. Covers 200 and 503 responses, worker heartbeat mode, and health tests. Written for developers maintaining those services.
Install healthcheck
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ITISFoundation/osparc-simcore /tmp/osparc-simcore && mkdir -p ~/.claude/skills && cp -r /tmp/osparc-simcore/.github/skills/healthcheck ~/.claude/skills/healthcheckRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ITISFoundation/osparc-simcore /tmp/osparc-simcore && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/osparc-simcore/.github/skills/healthcheck ~/.gemini/antigravity-cli/skills/healthcheckAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The healthcheck skill is a single-service guide for adding a FastAPI health endpoint and binding a Docker HEALTHCHECK to it. The endpoint returns 200 when healthy and 503 when unhealthy. HealthCheckError is mapped to a 503 plain-text response, and the Dockerfile HEALTHCHECK calls scripts/docker/docker_healthcheck.py against that endpoint.
For worker containers with no HTTP server, the skill uses heartbeat mode. It sets HEALTHCHECK_MODE=heartbeat in compose and calls update_heartbeat() in the task loop. The procedure also covers focused tests for healthy and unhealthy paths, and an update to the services/README.md healthcheck table for new services. It is aimed at developers who maintain these services.
Written from the project's SKILL.md and checked against it.
What it can do
- Health endpointReturns 200 when healthy and 503 when a critical dependency is unhealthy.
- HealthCheckError handlingMaps HealthCheckError to a 503 plain-text response using a shared handler.
- Dockerfile HEALTHCHECKBinds the container healthcheck to docker_healthcheck.py and the service endpoint.
- Worker heartbeat modeSets up heartbeat-based healthchecks for worker containers without an HTTP server.
- Health testsAdds unit tests for healthy, unhealthy, and no-500-leakage behavior.
- Services README updateUpdates the per-service healthcheck table when a new service healthcheck is added.
What you need
- Python with FastAPI
- Docker
- pytest for the unit tests
Try asking
- Add a health endpoint and Docker HEALTHCHECK to the payments service
- Set up heartbeat healthchecks for a catalog worker container
- Write focused health tests for the dynamic-scheduler service
Good to know
- Targets one service per run.
- Requires common_library in the service's dependency chain, otherwise the procedure says to stop and ask.
- Some services intentionally deviate from the standard pattern and should not be changed.
- Dockerfile port and path must match the service's actual health endpoint.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .github/skills/healthcheck/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to healthcheck
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
healthcheck: common questions
Can it add healthchecks to several services at once?
No. The skill takes one target_service per run and is written for a single service at a time.
What does the health endpoint return?
It returns 200 when healthy and 503 when unhealthy. HealthCheckError is mapped to a 503 PlainTextResponse.
How do worker containers get a healthcheck?
They use heartbeat mode. HEALTHCHECK_MODE=heartbeat is set in compose, and update_heartbeat() is called periodically in the worker task loop.
How do I install healthcheck?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is healthcheck free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is healthcheck safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to healthcheck?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
