/midnight-tooling:troubleshootingfrom midnight-tooling
Diagnoses and resolves errors, installation failures, version mismatches, and unexpected behavior with Midnight Network tools. Covers Node.js import errors, Compact CLI, proof server/Docker, devnet startup, environment misconfiguration, and NixOS/Windows/WSL setup.
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.
Systematic diagnosis and resolution of common issues encountered when developing with Midnight Network tools.
Follow this diagnostic sequence for any issue:
| Symptom / Keyword | Reference File |
|---|---|
| NixOS, Nix, nix-shell | references/nixos-installation.md |
| Version mismatch, incompatible versions, compatibility matrix | references/version-mismatch.md |
| ERR_UNSUPPORTED_DIR_IMPORT, stale terminal, node version | references/err-unsupported-dir-import.md |
| Bun, bun runtime, bun setup | references/bun-setup.md |
| Windows, WSL, PowerShell | references/windows-setup.md |
| Wrong URL, incorrect endpoint, wrong network, wrong environment, preprod, testnet, mainnet | references/environment-urls.md |
Proof server, Docker, ZK parameters, port 6300, container (for proof-server-in-devnet issues also check references/devnet-issues.md) | references/proof-server-issues.md |
| compact: command not found, shebang, exec format error, compactc wrapper | references/compact-cli-issues.md |
| direnv, mise, dotenv-cli, COMPACT_DIRECTORY, stale cache | references/environment-tooling.md |
| Devnet, local network, node, indexer, network start | references/devnet-issues.md |
| Quick "is the devnet up and serving?" check, container/HTTP probes | Use the midnight-tooling:devnet-health skill |
| Wallet initialization, funding, balance, transfers, dust registration | Use the midnight-wallet plugin |
For cross-cutting diagnostic techniques (not tied to a specific symptom):
| Technique | Reference File |
|---|---|
| Search open GitHub issues in midnightntwrk org | references/searching-issues.md |
| Check release notes for known bugs or breaking changes | references/checking-release-notes.md |
Several references instruct fetching the latest documentation from the midnightntwrk/midnight-docs GitHub repository via the octocode MCP tools. This ensures guidance reflects the current state of the docs rather than stale cached knowledge.
Standard fetch pattern using octocode:
githubGetFileContent(
owner: "midnightntwrk",
repo: "midnight-docs",
path: "<path-to-mdx-file>",
fullContent: true
)
When parsing fetched MDX content:
--- delimiters)import ... from ...)<Tabs>, <TabItem>, <Admonition>, etc.) but preserve their text contentMany issues benefit from multiple references. For example, a version mismatch may require:
references/version-mismatch.md - diagnose and fix the mismatchreferences/searching-issues.md - check if others report the same combinationreferences/checking-release-notes.md - verify whether a newer version resolves itWhen a problem is ambiguous, start with references/searching-issues.md to see if the exact error message appears in open issues before diving into specific references.
If the user's issue does not match any row in the routing tables above:
references/searching-issues.md to search for the exact error messagereferences/checking-release-notes.md for recent breaking changesSome references link to other skills in this plugin:
references/checking-release-notes.md depends on the release-notes skill and its references/component-map.md for component directory mappings.references/compact-cli-issues.md references the compact-cli skill's references/installation.md for additional installation detail.references/environment-tooling.md references the compact-cli skill's references/custom-directories.md for per-project toolchain setup.references/devnet-issues.md depends on the devnet skill and its references for network lifecycle details.references/proof-server-issues.md references the proof-server skill for API endpoint details, Docker setup, and version management.references/bun-setup.md (opens in a new tab)references/checking-release-notes.md (opens in a new tab)references/compact-cli-issues.md (opens in a new tab)references/devnet-issues.md (opens in a new tab)references/environment-tooling.md (opens in a new tab)references/environment-urls.md (opens in a new tab)references/err-unsupported-dir-import.md (opens in a new tab)references/nixos-installation.md (opens in a new tab)references/proof-server-issues.md (opens in a new tab)references/searching-issues.md (opens in a new tab)references/version-mismatch.md (opens in a new tab)references/windows-setup.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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"npx claudepluginhub midnightntwrk/midnight-expert --plugin midnight-toolingOther plugins' skills for the same job