/midnight-skills:midnightskillfrom midnight-skills
Guides developers building dApps on Midnight Network. Fetches live version pins and directs to task-specific skills for Compact, wallets, SDK, and environment setup.
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.
It is very likely that you have stale knowledge about building on Midnight Network.
This file will guide to the right skill with the latest knowledge about Midnight Network.
Package versions and SDK signatures in these skills are point-in-time. Before you install, pin, or write version-dependent code, fetch the current tested set once per session:
curl -fsS --max-time 5 https://midskills.sevryn.xyz/api/versions
It returns the same JSON shape as references/versions.json (toolchain, packages, nodePackages, removed, scopeNote). No key, no identifiers sent.
midnight-version-matrix/ (the copy from the last skills release) and say you are using the offline set.@latest, and never guess a version that is in neither. The support matrix outranks both; see references/volatile.md.Then run midnight-doctor/ on an existing project before debugging anything version-shaped, and use midnight-common-errors/ to decode error messages.
Need a specific topic? Each skill below is standalone. Fetch only the ones relevant to your task. If you are starting from scratch, start with scaffold skill.
Skills are split into two tracks. Building a dApp? Stay in Build a dApp. Protocol internals explain how the node works and are not needed to ship a dApp.
Everything you need to write, test, and ship a Midnight dApp: setup, Compact, wallets, SDK, and full templates.
| I'm doing... | Fetch these skills |
|---|---|
| Set up Compact, Docker, and proof server before building | midnight-environment-setup/ |
| Understand Midnight's architecture, privacy model, and ZK approach | why-midnight/ |
| Compare ZK vs FHE vs MPC for privacy-preserving computation | zk-vs-fhe-vs-mpc/ |
| Integrate 1AM wallet for dust-free flow | 1am-wallet/ |
| Build a React app with wallet connect/disconnect via DApp Connector API | react-wallet-connector/ |
| Integrate Dynamic.xyz Midnight wallets (external 1AM or embedded MPC) | dynamic-midnight-wallet/ |
| Connect a dApp to Gero Wallet (DApp Connector, DUST, proof servers) | gero-wallet/ |
| Build and run the Midnight Passport foundations dApp | example-passport-dapp/ |
| Integrate Midnight Passport (passkey Night ID + custody account) | midnight-passport/ |
| Write Compact smart contracts | compact/ |
| Debug Compact contracts, read errors, manage versions | testing/ |
| Look up an error message or code and fix it | midnight-common-errors/ |
| Pick package versions that work together, or upgrade safely | midnight-version-matrix/ |
| Check my setup and project against the tested versions | midnight-doctor/ |
| Run a pre-ship security and privacy gate | midnight-security-checklist/ |
| Decide what to test and find gaps before a release | midnight-testing-checklist/ |
| Build or fix Compact parsers, grammars, highlighters, or language servers | compact-language-engineering/ |
| Build a single dApp targeting all networks from one codebase | multinetwork/ |
| Wire up SDK providers, wallets, deploy/call contracts | midnight-js/ |
| Sponsor DUST fees so users with zero DUST can transact (gasless UX) | dust-gas-sponsorship/ |
| Query blockchain data, watch contract state, subscribe to events | midnight-indexer/ |
| Integrate Ankr RPC for Midnight testnet and mainnet | ankr-midnight/ |
| Privacy audit checklist, prevent data leaks, defensive Compact patterns | midnight-security/ |
| Build a voting/poll dApp on Midnight targeting Android | android-example-voting/ |
| Complete DApp reference: wallet, deploy, interact (use as template) | example-counter/ |
| Build a complete Midnight Network hello-world DApp from scratch using Compact smart contract, headless Node.js tests with vitest, and testkit-js FluentWalletBuilder. | hello-world/ |
| Build a privacy-preserving payment vault with 1AM wallet | example-payment-dapp/ |
| Build a time-lock vault dApp on Midnight | example-locker-dapp/ |
| Build a privacy-preserving leaderboard DApp on Midnight | example-leaderboard-dapp/ |
| Build a private party RSVP dApp with privacy boundary on Midnight | example-private-party-dapp/ |
| Build a private reserve auction dApp with hidden reserve price and private bidders | example-private-reserve-auction/ |
| Build a ZK loan application with attestation on Midnight | example-zk-loan-application/ |
| Build NFTs (shielded + unshielded) with OpenZeppelin | nft/ |
| Token transfers, balance flows, multi-party txs | token-transfers/ |
| Plan or write a MIP/MPS, or check a MIP's status | midnight-mip-planning/ |
How the Midnight node works under the hood (consensus, storage, networking, runtime, RPC, transactions). For node operators and the protocol-curious. You do not need these to build a dApp.
| I'm doing... | Fetch these skills |
|---|---|
| Understand Midnight consensus — AURA, GRANDPA, and Partnerchain validators | midnight-consensus/ |
| Explain Midnight node cryptography — hashes and signature schemes | midnight-cryptography/ |
| Explain Midnight on-chain logic — runtime, pallets, and pallet-midnight | midnight-onchain-logic/ |
| Configure or debug Midnight P2P networking and peer discovery | midnight-p2p-networking/ |
| Query Midnight node RPC — contract state, ZSwap, and ledger methods | midnight-rpc/ |
| Explain Midnight on-chain storage — ParityDB, trie, and state roots | midnight-storage/ |
| Explain Midnight transaction lifecycle — proofs, pool, and execution | midnight-transactions/ |
disclose(), ledger ADTs, standard library, and security patterns.persistentHash owner commitments, and verifyOwnership ZK proofs.blockTimeGte and witness auth.persistentCommit and DApp-specific public keys — no witnesses.example-private-party repo.window.midnight enumeration, connect/disconnect UI, unshielded address display.--skip-zk dev loop.What SKILL.md sets; muted values are Claude Code's defaults
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