/midnight-tooling:devnet-healthfrom midnight-tooling
Checks status and health of local Midnight devnet services (node, indexer, proof server) via Docker and HTTP probes. Useful for verifying devnet is running and responsive.
Ships in midnight-tooling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Status and health checks for the local Midnight devnet (node, indexer, proof server). Pure shell — requires only bash, docker, and curl.
The two checks answer different questions:
Container running ≠ service healthy: a container can be running while the service inside is still booting, crashing on a loop, or otherwise not serving requests. Run both checks for a complete picture.
| Service | Container Name | Port | Health Endpoint |
|---|---|---|---|
node | midnight-node | 9944 | http://127.0.0.1:9944/health |
indexer | midnight-indexer | 8088 | http://127.0.0.1:8088/ready |
proof-server | midnight-proof-server | 6300 | http://127.0.0.1:6300/version |
Both scripts live in scripts/ next to this SKILL.md and accept an optional --json flag.
status.sh — container statusbash scripts/status.sh # text: <service>\t<status>\t<containerName>
bash scripts/status.sh --json # JSON: {"services":[...],"allRunning":bool}
Status values: running | stopped | not-found.
Exit 2 if Docker is missing or the daemon is not running (also reflected in JSON via the error field).
health.sh — HTTP probesbash scripts/health.sh # text: <service>\t<healthy|unhealthy>\t<ms>\t<httpCode>
bash scripts/health.sh --json # JSON: {"node":{...},"indexer":{...},"proofServer":{...},"allHealthy":bool}
A service is healthy when its endpoint returns HTTP 2xx within the 5 s timeout.
Exit 2 if curl is not installed.
bash scripts/status.sh
bash scripts/health.sh
bash scripts/status.sh --json | jq -r '.allRunning'
bash scripts/health.sh --json | jq -r '.allHealthy'
status_json="$(bash scripts/status.sh --json)"
health_json="$(bash scripts/health.sh --json)"
# Example: node container is "running" but health endpoint failed → unhealthy
node_state="$(printf '%s' "$status_json" | jq -r '.services[] | select(.name=="node") | .status')"
node_healthy="$(printf '%s' "$health_json" | jq -r '.node.healthy')"
if [ "$node_state" = "running" ] && [ "$node_healthy" != "true" ]; then
echo "node container is up but not serving"
fi
while IFS=$'\t' read -r service status ms code; do
case "$service" in
node) [ "$status" = "healthy" ] && echo "node ok in ${ms}ms" ;;
esac
done < <(bash scripts/health.sh)
Other skills, commands, and scripts that want to invoke these checks should resolve the absolute path via the plugin root. Use the midnight-plugin-utils:find-claude-plugin-root skill to materialize /tmp/cpr.py, then:
PLUGIN_ROOT="$(python3 /tmp/cpr.py midnight-tooling)"
SCRIPTS_ROOT="$PLUGIN_ROOT/skills/devnet-health/scripts"
bash "$SCRIPTS_ROOT/status.sh" --json
bash "$SCRIPTS_ROOT/health.sh" --json
This keeps the scripts callable regardless of where the plugin is installed (project vs user vs marketplace).
| Question | Skill |
|---|---|
| Start, stop, or configure the devnet, generate compose files, or pick versions | midnight-tooling:devnet |
| Run a quick "is it up and serving?" probe from inside an agent or script | this skill |
| Diagnose a broken devnet, port conflicts, indexer sync issues, partial startup | midnight-tooling:troubleshooting (with references/devnet-issues.md) |
| Wire devnet status into the doctor command or statusline | this skill |
bash 3.2+ and use only docker, curl, awk. No bash 4 features (associative arrays, mapfile).jq is optional: scripts do not depend on jq; they emit JSON directly with printf. Callers that want to parse JSON can use jq if available or fall back to the tab-separated text output.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
midnight-devnet, docker-health, service-status, devnet-probes
6 skills in this plugin
/compact-climidnight-tooling:compact-cliThis skill should be used when the user asks about the Compact CLI, Compact Dev Tool, Compact Developer CLI, or compact devtools for Midnight Network smart contract development, including setting up the Compact toolchain on a new machine, resolving "compact: command not found" or "No default compiler set" errors, validating that Compact source code compiles correctly, switching between compiler versions, pinning a project to a specific compiler version, understanding why compilation is slow or how to speed it up, figuring out which version of the compiler or language they're running, setting up a project-local toolchain directory, configuring import search paths for multi-file contracts, understanding error messages or exit codes from the compiler or formatter, setting up or uninstalling the Compact toolchain, resolving GitHub API rate limiting when listing or updating versions, or troubleshooting why format or fixup is reporting failures/devnetmidnight-tooling:devnetThis skill should be used when the user asks about the Midnight local development network, including "start the devnet", "stop the devnet", "restart the network", "local development network", "midnight node", "midnight indexer", "network status", "network health", "devnet config", "network endpoints", "port 9944", "port 8088", "port 6300", "Docker Compose", "devnet not starting", "local blockchain", "devnet logs", "network ID", "generate devnet", "devnet versions", "update devnet", "devnet stale", "proof server", "devnet volumes", "clean slate", "docker containers", "devnet compose file", "devnet endpoints"/proof-servermidnight-tooling:proof-serverThis skill should be used when the user asks about the Midnight proof server in any context — local, testnet, or mainnet. Includes "start the proof server", "restart the proof server", "stop the proof server", "proof server not working", "proof server logs", "check if proof server is running", "proof server port 6300", "proof server version", "proof server image tag", "proof server health check", "proof server API endpoints", "Docker container for proofs", "set up Docker for the proof server", or "proof server endpoint". Covers proof server concepts, version selection, API endpoints, standalone Docker usage, and troubleshooting. For local development setup, see the devnet skill./release-notesmidnight-tooling:release-notesThis skill should be used when the user asks about "Midnight release notes", "what changed in version X", "latest release", "changelog", "show me the changelog", "what's new in Midnight", "component versions", "list versions", "compact release notes", "ledger release notes", "wallet release notes", "proof server release notes", "node release notes", "lace release notes", "midnight-js release notes", "indexer release notes", "breaking changes", "latest version of X", viewing release history, checking component update details, or comparing versions of any Midnight Network component./troubleshootingmidnight-tooling:troubleshootingThis skill should be used when the user encounters errors, installation failures, version mismatches, or unexpected behavior with Midnight Network tools. Covers Node.js import errors, Compact CLI issues, proof server and Docker problems, devnet startup failures, environment and URL misconfiguration, NixOS and Windows/WSL setup, and searching Midnight GitHub issues for known bugs. For wallet initialization or funding failures, use the midnight-wallet plugin.npx claudepluginhub midnightntwrk/midnight-expert --plugin midnight-toolingOther plugins' skills for the same job