/midnight-skills:midnight-doctorfrom midnight-skills
Health-checks a Midnight project and machine against pinned, tested versions of Node, Compact toolchain, Docker images, proof server, and package dependencies. Reports FAIL/WARN with exact fixes.
Ships in midnight-skills. 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.
None: SKILL.md is the whole skill.
One command that compares Node, the Compact devtools and toolchain, Docker images, the proof server, every package.json Midnight dependency, duplicate runtimes, and pragma language_version against the pins in midnight-version-matrix.
What this skill produces: a FAIL / WARN / OK report with one fix per finding. It never installs or edits anything.
Run the doctor from the project root (or pass the path):
node <this-skill>/scripts/doctor.mjs # current directory
node <this-skill>/scripts/doctor.mjs ./my-dapp # another project
node <this-skill>/scripts/doctor.mjs --json # for parsing
<this-skill> is where this skill is installed, e.g. .agents/skills/midnight-doctor or .claude/skills/midnight-doctor. Node 18+ is enough to run it; it has no dependencies.
Read the INFO [pins] line first: it says which pin set was used.
https://midskills.sevryn.xyz/api/versions (the current pins).pins.json next to this file, a copy of references/versions.json made at release time. Use --offline to force it, or --pins <file-or-url> to use another set.Fix every FAIL before touching application code. Most "my code is wrong" reports are a FAIL here: a toolchain/runtime mismatch, a removed package, two scopes of Midnight.js, or two copies of compact-runtime.
Treat WARN as a decision for the user: ranges (^/~) instead of exact pins, packages without a tested pin, an older pragma, no proof server running.
Re-run until it reports 0 fail. Then, if the original error persists, look it up in midnight-common-errors.
| Area | Check | Fails when |
|---|---|---|
node | Node.js version | older than 18 (warns below 22) |
compact | compact --version, compact compile --version | toolchain differs from the pin, or compact is missing |
docker | daemon, running proof-server / indexer / node images | a running Midnight image has a different tag than the pin |
proof-server | something listening on localhost:6300 | never fails, warns |
project | each package.json (3 levels deep) | a removed package, a version off the pin, installed version off the pin, mixed @midnight-ntwrk / @midnightntwrk Midnight.js, several compact-runtime versions |
contracts | pragma language_version in every .compact file | never fails, warns if it differs from the toolchain's language version |
0 no FAIL · 1 at least one FAIL · 2 the doctor could not load any pins.
| Symptom | Fix |
|---|---|
No pins: live endpoint unreachable | You are offline and the bundled pins.json is missing (partial install). Pass --pins with a path to references/versions.json from this repo. |
| Live pins differ from what a skill shows | The live set is newer. Follow the live set and the support matrix; skills are synced to it on the next release. |
| A package you need "has no tested pin" | Do not pick a version yourself. Tell the user, and check the support matrix. |
| Task | Skill |
|---|---|
| See the full pinned set and install commands | midnight-version-matrix/ |
| Decode an error message or code | midnight-common-errors/ |
| Install missing tooling | midnight-environment-setup/ |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kali-decoder/midnight-skills --plugin midnight-skills43 skills in this plugin
/1am-walletIntegrate the 1AM wallet for dust-free contract deployment and transaction flow on Midnight Network. Use this skill whenever a user is building a Midnight Network dApp, connecting to the 1AM browser extension, deploying or calling a Compact contract, handling ZK proving, setting up providers, or asking about dust-free transaction flow. Also use it for indexer patching, private state providers, payload encryption, or any question involving window.midnight['1am']./android-example-votingBuild a voting/poll dApp on Midnight Network using the Kuira Android SDK — Compact smart contract with create/cast/close circuits, passkey-derived identity, embedded wallet, Compose UI, reactive ledger reads via observeLedger(), and on-device ZK proving. Use when building a poll or voting dApp targeting Android./Other plugins' skills for the same job