/midnight-skills:midnight-testing-checklistfrom midnight-skills
Provides a pass/fail testing checklist for Midnight dApps covering contract logic, negative/privacy tests, local-devnet end-to-end tests, frontend checks, and CI. Useful before releases, when adding tests, or reviewing PRs.
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.
What "tested" means for a Midnight dApp, as boxes to tick. For how to write each kind of test, follow the linked skills.
What this skill produces: a filled checklist, the missing tests named one per line, and the commands that run the suite.
midnight-doctor first. A version FAIL makes every test result meaningless.vitest.config.*, **/*.test.ts, CI workflows) and run them once to get a baseline.testing/ §3compact compile --skip-zk to skip proving-key generation.Uint<N> (0, max, max+1 at the TypeScript boundary) and every Counter near zero.midnight-security-checklistassert has a test that makes it fail and checks the message.hello-world/, example-counter/1am-wallet/, midnight-common-errorscompiler/, keys/, and zkir/ from the current build; a check fails CI if they are stale.next build (or the bundler's production build) passes: wallet/SDK modules load client-side only.npm ls @midnight-ntwrk/compact-runtime shows a single version.npm ci against a lockfile with exact pins.midnight-doctor --json (or an equivalent version check) and fails on any FAIL.| Task | Skill |
|---|---|
Compiler errors, the --skip-zk loop, version management | testing/ |
| Full devnet test setup with vitest and testkit-js | hello-world/ |
| Security properties to prove | midnight-security-checklist/ |
| Version gate | midnight-doctor/ |
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./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