/midnight-skills:midnight-environment-setupfrom midnight-skills
Automatically installs and configures the Midnight blockchain development environment: Compact compiler, PATH, Docker, proof server, and VS Code extension. Activates when tooling is missing or on setup commands.
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.
Automatically prepare a complete Midnight development environment for the user.
This skill should always be executed before attempting to build, compile, or deploy any Midnight application if the required tooling is not already installed.
The AI assistant should attempt to perform every installation step automatically.
Only if a step cannot be completed because of permission limitations, operating system restrictions, missing GUI access, or unavailable terminal access should the assistant ask the user to complete that specific step manually.
Never immediately paste installation documentation.
Determine:
Commands that may be useful:
uname -a
which compact
compact --version
compact compile --version
docker --version
code --version
echo $SHELL
If Compact is not installed, install the devtools release named in the support matrix (Ledger 9.1: compact 0.5.1). Use the tagged release, not releases/latest:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/midnightntwrk/compact/releases/download/compact-v0.5.1/compact-installer.sh | sh
Devtools 0.5.2 and 0.5.3 also exist and work, but the matrix lists 0.5.1. Devtools only manage compilers; the version that matters most is the toolchain below.
Wait until installation finishes.
Determine shell.
If zsh:
source ~/.zshrc
If bash:
source ~/.bashrc
If Compact still cannot be found, append:
export PATH="$HOME/.compact/bin:$PATH"
Reload shell again.
Install the toolchain from the support matrix, not whatever is newest. A bare compact update installs the newest compiler and makes it the default, which can outrun the compact-runtime your project pins.
compact update 0.36.1 # Ledger 9.1 toolchain (language 0.28.0, runtime 0.21.0)
To keep another default for older projects, use compact update 0.36.1 --no-set-default and compile with compact compile +0.36.1 ....
Run each command and compare against the expected value:
compact --version # expect: compact 0.5.1 (or newer devtools)
compact compile --version # expect: 0.36.1 (or `compact compile +0.36.1 --version`)
compact compile --language-version # expect: 0.28.0
which compact # expect: ~/.compact/bin/compact
docker image inspect midnightntwrk/proof-server:9.0.2 --format '{{.Id}}' # after Step 7
Installation is successful only if every value matches. A compiler other than 0.36.1 means Step 4 did not set the default. Re-run it, or always compile with +0.36.1.
Check Docker availability.
If Docker is unavailable:
Explain that Docker Desktop must be installed manually.
https://www.docker.com/products/docker-desktop/
Pause until Docker is running.
Run
docker run -p 6300:6300 midnightntwrk/proof-server:9.0.2 midnight-proof-server -v
Verify logs indicate:
Listening on http://localhost:6300
If port 6300 is occupied, retry using:
docker run -p 6301:6300 midnightntwrk/proof-server:9.0.2 midnight-proof-server -v
Inform the user that applications must now use port 6301.
The proof server always runs locally, on every network (Blockfrost does not provide one). 9.0.2 is the Ledger 9.1 build. A proof server is built against one ledger version, so older tags (8.x) produce proofs that Ledger 9 networks reject.
If VS Code exists:
Guide the user to install the Compact VS Code extension (VSIX package).
AI agents cannot reliably install VS Code extensions through GUI interactions unless the environment explicitly supports it.
Provide concise instructions:
Confirm:
compact --version matches toolchain.compactDevtools in references/versions.json)compact compile --version matches toolchain.compact, --language-version matches toolchain.languageVersion)midnightntwrk/proof-server:9.0.2, listening on 6300)Reload shell.
If needed:
export PATH="$HOME/.compact/bin:$PATH"
source ~/.zshrc
or
source ~/.bashrc
Ask the user to launch Docker Desktop and wait until the engine is fully started.
Use:
docker run -p 6301:6300 midnightntwrk/proof-server:9.0.2 midnight-proof-server -v
and configure applications to use:
http://localhost:6301
Always prefer automation over explanation.
Only request manual intervention when automation is impossible due to permission, GUI, or operating system limitations.
After every automated action, verify success before proceeding.
Never assume a command succeeded without checking its output.
The goal is to leave the user with a fully working Midnight development environment ready to build, compile, and deploy DApps.
Author: Kali-Decoder
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
midnight, compact, blockchain, environment-setup, dev-environment
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./ankr-midnightIntegrate Ankr as a Midnight Network RPC provider for testnet and mainnet. Covers creating an Ankr project, copying HTTPS/WSS endpoints with API key, wiring the node URL into midnight-js / multinetwork configs, and calling Midnight JSON-RPC methods (midnight_*, system_*, chain_*, state_*). Use when the user asks about Ankr + Midnight, Ankr.js for Midnight, Ankr RPC endpoint, or replacing public Midnight RPC with Ankr.
/compactWrite, reason about, and debug Compact smart contracts for the Midnight blockchain. Use this skill whenever a user asks about Compact syntax, ledger state, witnesses, circuits, disclosure, ZK patterns, data types, standard library functions, security patterns, nullifier design, Merkle trees, or anything related to writing .compact files. Also trigger for questions about compiling contracts, debugging circuit errors, choosing between ledger ADTs, and implementing privacy-preserving patterns like commitments, hash-based auth, and anonymous membership proofs./compact-language-engineeringBuild and maintain language tooling for Midnight's Compact language (parsers, grammars, syntax highlighters, formatters, linters, language servers, IntelliJ/Grammar-Kit plugins, tree-sitter grammars) without changing what the language accepts. Use this skill when a user asks to write or fix a Compact grammar, port the grammar to tree-sitter, Grammar-Kit, JFlex, ANTLR, Lezer, or TextMate, check operator precedence or associativity, track down parser ambiguities or nullable and left-recursive rules, generate parser regression tests, compare a third-party parser against the compiler, or build an LSP or editor extension for `.compact` files. Also use it for questions like "what tokens does Compact have", "is `/` or unary minus valid Compact", "why does my highlighter break on block comments", "tree-sitter-compact rejects valid code", or "how does the Nite language server get its diagnostics".
/dust-gas-sponsorshipLet one wallet pay Midnight transaction fees for another wallet's transaction, so users with zero DUST can transact from their first click. Use whenever a dApp onboards new users, offers a free tier, or covers usage for its users: the two-sided sponsorship flow (user proves and binds, sponsor adds DUST and submits), the sponsor service and its acceptance policy, sponsor economics and monitoring, and the hosted alternatives (NIGHTGATE, Capacity Exchange).Other plugins' skills for the same job