/midnight-tooling:devnet runs instead · from midnight-tooling
Manages the Midnight local development network (devnet) via Docker Compose: start, stop, restart, generate config, check status and health of node, indexer, and proof server.
This skill never runs in Claude Code
It ships in midnight-tooling at skills/, but /midnight-tooling:devnet (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
The devnet is a local 3-service blockchain network for Midnight development. It runs via Docker Compose and is managed through the /midnight-tooling:devnet command, which uses bash and Docker Compose commands directly.
Four distinct components make up the local development environment. Always be precise about which is being referenced.
| Term | What It Is | Port | Container |
|---|---|---|---|
| Devnet | The complete local 3-service network managed as a unit | N/A (all three below) | Managed via Docker Compose |
| Node | The Midnight blockchain node (Substrate-based) | 9944 | midnight-node |
| Indexer | GraphQL API for querying chain state and subscribing to events | 8088 | midnight-indexer |
| Proof server | Generates zero-knowledge proofs for transactions | 6300 | midnight-proof-server |
The devnet is not a single service. It is the coordinated set of all three services. Starting the devnet starts all three; stopping it stops all three.
Docker Desktop must be installed and running before the devnet can start. The three services together require adequate system resources.
| Check | Command | Expected |
|---|---|---|
| Docker installed | docker --version | Version string |
| Docker daemon running | docker info | System info (no connection errors) |
| Docker Compose available | docker compose version | Version string |
| Adequate resources | Docker Desktop settings | 4 GB+ RAM allocated to Docker |
If Docker is not installed, see references/docker-setup.md for platform-specific installation instructions.
| Command | Purpose |
|---|---|
/midnight-tooling:devnet generate | Create a devnet.yml from template with latest stable versions |
/midnight-tooling:devnet update | Update image versions in an existing devnet.yml |
/midnight-tooling:devnet start | Start all 3 services (generates compose file on first run) |
/midnight-tooling:devnet stop | Stop all containers |
/midnight-tooling:devnet restart | Stop and restart the network |
/midnight-tooling:devnet status | Check Docker container state for all services (fast) |
/midnight-tooling:devnet health | Hit HTTP endpoints on each service to verify responsiveness (thorough, with timing) |
/midnight-tooling:devnet logs | View recent logs from the network services |
/midnight-tooling:devnet config | Show endpoint URLs, network ID, image versions, and file info |
| Service | Port | Endpoint | Purpose |
|---|---|---|---|
| Node | 9944 | http://127.0.0.1:9944 | Blockchain RPC (Substrate JSON-RPC) |
| Indexer | 8088 | http://127.0.0.1:8088/api/v4/graphql | GraphQL queries and subscriptions |
| Proof server | 6300 | http://127.0.0.1:6300 | Zero-knowledge proof generation |
The indexer also exposes a WebSocket endpoint at ws://127.0.0.1:8088/api/v4/graphql/ws for real-time subscriptions.
The network ID for local devnet is undeployed.
The skill includes four helper scripts in ${CLAUDE_SKILL_DIR}/scripts/:
| Script | Purpose | Usage |
|---|---|---|
resolve-versions.sh | Query Docker Hub for latest stable image versions | Returns key=value pairs |
generate-devnet.sh | Create devnet.yml from template with version substitution | --template <path> --node-version X --indexer-version X --proof-server-version X [--directory <path>] |
check-staleness.sh | Check age of a devnet.yml file | Returns age_days=N and stale=true/false |
find-devnet.sh | Locate a devnet.yml in standard locations | [--file <path>] |
The compose file template is at ${CLAUDE_SKILL_DIR}/templates/devnet.yml.
| Symptom | Cause | Fix |
|---|---|---|
docker: command not found | Docker not installed | Install Docker Desktop — see references/docker-setup.md |
Cannot connect to the Docker daemon | Docker Desktop not running | Start Docker Desktop and wait for it to be ready |
docker compose: command not found | Older Docker without Compose V2 | Update Docker Desktop or install docker-compose-plugin |
| Services fail to start or exit immediately | Insufficient Docker resources | Allocate at least 4 GB RAM to Docker Desktop (see references/docker-setup.md) |
| Port 9944, 8088, or 6300 already in use | Another process occupying a required port | Stop the conflicting process; use lsof -i :<port> to identify it |
| Network starts but indexer not responding | Indexer still syncing with node | Wait 10-20 seconds after start; use /midnight-tooling:devnet health to check readiness |
| Stale chain state causing errors | Corrupted or outdated volumes | Restart with --remove-volumes for a clean slate |
| Container name conflicts | Previous containers not cleaned up | Stop the devnet first (/midnight-tooling:devnet stop), then start again |
Failed to fetch tags from Docker Hub | Docker Hub unreachable or rate-limited | Check internet connection; use --node-version etc. to specify versions manually |
| Architecture mismatch on Apple Silicon | Image not available for arm64 | See Apple Silicon note in references/docker-setup.md |
| Compose file stale warning | File older than 5 days | Run /midnight-tooling:devnet update to refresh image versions |
For wallet management, funding, balance checking, transfers, and dust registration, use the midnight-wallet plugin. The wallet plugin's MCP tools work with any running devnet — it auto-detects the services by Docker image name.
For status and health checks from inside a script, the statusline, or a doctor agent, use the midnight-tooling:devnet-health skill. It provides two bash scripts (status.sh, health.sh) that report container state and per-service HTTP health using only bash, docker, and curl.
Consult these for detailed procedures:
| Reference | Content | When to Read |
|---|---|---|
references/network-lifecycle.md | Generate, update, start, stop, restart flows; staleness checking; compose file locations; project naming; typical workflows | Managing the devnet lifecycle |
references/docker-setup.md | Docker installation per platform, daemon troubleshooting, resource configuration, port conflicts | Docker installation issues or first-time setup |
references/compose-structure.md | Anatomy of devnet.yml: every service, env var, healthcheck, dependency, and port explained; guidance on bespoke modifications | Debugging compose file issues or making custom changes |
references/version-resolution.md | Docker Hub API, stable version filtering, compatibility matrix checking, graceful degradation | Version resolution problems or understanding the update process |
references/compose-structure.md (opens in a new tab)references/docker-setup.md (opens in a new tab)references/genesis-seed.md (opens in a new tab)references/network-lifecycle.md (opens in a new tab)references/version-resolution.md (opens in a new tab)scripts/check-staleness.sh (opens in a new tab)scripts/find-devnet.sh (opens in a new tab)scripts/generate-devnet.sh (opens in a new tab)scripts/resolve-versions.sh (opens in a new tab)templates/devnet.yml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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/devnet-healthmidnight-tooling:devnet-healthThis skill should be used when the user asks to check the status or health of the local Midnight devnet, including "is the devnet running", "is the node up", "is the proof server responding", "indexer health", "devnet status", "devnet health", "are the containers running", "are the services healthy", "devnet probes", or when an agent (e.g. doctor, statusline) needs structured per-service status/health for the local devnet./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