Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By devrelaicom
Write and debug Midnight Compact smart contracts with core knowledge of contract structure, data types, ledger declarations, circuits, witnesses, and common patterns
npx claudepluginhub devrelaicom/midnight-expert --plugin compact-coreSystematic debugging for Compact smart contracts — analyzes errors, investigates root causes, and guides fixes
Comprehensive review of Compact smart contract code covering 10 categories including privacy, security, tokens, concurrency, performance, and more, plus mechanical verification via /midnight-verify:verify. Supports parallel execution via agent teams (when enabled) or concurrent subagents.
Use this agent when you need to write, generate, review, or fix Compact smart contract code for the Midnight blockchain. This includes creating new contracts, modifying existing ones, fixing compilation errors, implementing privacy patterns, or answering questions about Compact syntax and semantics. Example 1: User needs a new smart contract — "Write a Compact contract for a simple voting system." The compact-dev agent has deep knowledge of Compact syntax, privacy patterns, and can validate compilation. Example 2: User has a compilation error — "I'm getting an implicit disclosure of witness value error." Compact disclosure errors require understanding of disclose() placement rules. The compact-dev agent specializes in these patterns. Example 3: User wants a privacy pattern — "I need nullifier-based double-spend prevention." Privacy patterns like nullifiers, commitments, and Merkle proofs are core Compact competencies. Example 4: User wants shielded token functionality — "How do I implement shielded transfers using zswap?" Shielded token operations require precise knowledge of stdlib coin management functions, UTXO model, and nonce management. Example 5: After writing a counter contract with witnesses — the compact-dev agent compiles, then runs /midnight-verify:verify contracts/counter.compact src/witnesses.ts to mechanically verify the contract-witness interface before presenting to user.
Use this agent when you need a focused review of Compact smart contract code in a specific category. Dispatched by the review-compact command with a category assignment. Not intended for direct user invocation. Example 1: Dispatched by review-compact command for privacy review — the command spawns this agent with a specific category and file list. The agent loads the compact-review skill reference for its category. Example 2: Dispatched for security review of token contract — same agent, different category assignment. Loads token-security-review.md reference.
This skill should be used when the user asks about Compact circuit costs, ZK proof generation costs, gate counts, loop unrolling behavior, hash function cost tradeoffs (transientHash vs persistentHash), commitment function costs (transientCommit vs persistentCommit), pure circuit optimization benefits, vector operation costs (map/fold/slice unrolling), compiler optimization passes, runtime gas model (readTime, computeTime, bytesWritten, bytesDeleted), ledger state storage costs, privacy-cost tradeoffs, or how to write cost-efficient Compact smart contracts on Midnight.
This skill should be used when a user needs help debugging Compact smart contract errors, including compiler failures ("parse error", "unbound identifier"), proof generation issues, TypeScript witness type mismatches, disclosure errors ("potential witness-value disclosure must be declared"), or compatibility problems between Midnight components. Also applies when a user says their contract "won't compile", "worked before but broke after update", or when consecutive fix attempts keep revealing new errors. This skill orchestrates the debugging process and routes to domain-specific compact-core skills.
This skill should be used when the user asks to create a new Midnight project, scaffold a Compact smart contract project, use create-mn-app, initialize a DApp, set up a new Midnight application, start a new project, use a project template, set up hello-world or counter template, or set up a Midnight development environment for the first time. Also triggered by "new project", "start a project", "init project", "create-mn-app", or "scaffold".
This skill should be used when the user asks about Compact language mechanics, syntax reference, types (Field, Bytes, Uint, Boolean, Opaque, Vector, Maybe, Either, enums, structs), type casting with "as", operators, arithmetic, control flow, for loops, modules, imports, include, pragma, stdlib functions (persistentHash, transientHash, disclose, assert, pad, default), map and fold operations, or Compact compiler errors and wrong syntax patterns.
This skill should be used when the user asks about Compact ledger declarations, ledger modifiers (export, sealed), ledger ADT types (Counter, Map, Set, List, MerkleTree, HistoricMerkleTree), ADT operations and methods, constructor initialization of state, state design choices (Map vs Set vs MerkleTree, Counter vs Uint), nested ADT composition, on-chain privacy and visibility of state operations, disclosure rules for ledger writes including disclose() usage, default<T> for ADT initialization, the Kernel ledger and kernel.self(), or the Midnight token and coin system (ShieldedCoinInfo, QualifiedShieldedCoinInfo, zswap).
Uses power tools
Uses Bash, Write, or Edit tools
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Compilable Compact smart contract examples — beginner contracts, reusable modules, token implementations, and full applications with witnesses and tests. All code at pragma language_version >= 0.22.
Specialized agents for blockchain development, smart contracts, and Web3 applications
Blockchain development with Solidity security, DeFi protocols, NFT standards, and Web3 testing
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Comprehensive .NET development skills for modern C#, ASP.NET, MAUI, Blazor, Aspire, EF Core, Native AOT, testing, security, performance optimization, CI/CD, and cloud-native applications
Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification
Compilable Compact smart contract examples — beginner contracts, reusable modules, token implementations, and full applications with witnesses and tests. All code at pragma language_version >= 0.22.
Audits and resolves Claude plugin dependencies — validates installed plugins against extends-plugin.json declarations, scans plugin files for undeclared dependencies, and resolves installation paths with fuzzy matching.
Conceptual foundations for understanding the Midnight Network: architecture, data models, privacy patterns, protocols, tokenomics, and zero-knowledge proofs
Fact-checking pipeline for Midnight content — extracts testable claims from any source (markdown, code, PDFs, URLs, GitHub repos), classifies them by domain (Compact, SDK, ZKIR, Witness), and verifies each claim using the midnight-verify framework. Produces structured JSON artifacts and human-readable reports.
Scaffold and develop Oclif CLIs for Midnight Compact smart contracts. Includes a complete CLI template with wallet management, contract deployment, devnet control, and an AI agent for ongoing development.
AI-powered development tools for the Midnight blockchain — a suite of Claude Code plugins that help you write, test, deploy, and review smart contracts in the Compact language.
midnightntwrk.expert — documentation, guides, and resources for Midnight developers.
curl -fsSL midnightntwrk.expert/me-install.sh | bash
Once installed, skills activate automatically based on what you're working on. Ask Claude to write a Compact contract, review existing code, set up a devnet, or explain a privacy pattern — the relevant skills engage on their own.
This repository contains 16 plugins organized by domain.
| Plugin | Description | |
|---|---|---|
![]() | compact-core | Compact language reference, patterns, privacy/disclosure, witnesses, tokens, circuit costs, debugging, and code review |
![]() | compact-examples | Compilable Compact examples from 8 repos — modules, tokens, applications, witnesses, and tests |
![]() | compact-cli-dev | Scaffold Oclif CLIs for Compact contracts with wallet management, deployment, and devnet control |
| Plugin | Description | |
|---|---|---|
![]() | midnight-dapp-dev | Vite + React 19 DApp scaffolding, SDK reference, DApp Connector API, provider assembly, state management |
| Plugin | Description | |
|---|---|---|
![]() | midnight-cq | Testing skills (contract simulator, DApp integration, DApp Connector, ledger, wallet) and code quality setup (Biome, Vitest, Playwright, CI) |
![]() | midnight-verify | Mechanical verification of Compact claims via compilation, execution, source inspection, type-checking, and ZKIR analysis |
![]() | midnight-fact-check | Fact-check documentation against the Midnight ecosystem — extract claims, classify by domain, verify, and report |
| Plugin | Description | |
|---|---|---|
![]() | midnight-tooling | Compact CLI management, local devnet lifecycle, proof server, release notes, troubleshooting |
![]() | midnight-wallet | Wallet CLI (MCP tools), test wallet setup, aliases, funding, dust registration |
![]() | midnight-mcp | MCP server skills for compilation, simulation, search, and health checks |
| Plugin | Description | |
|---|---|---|
![]() | core-concepts | Architecture, data models, privacy patterns, protocols, tokenomics, zero-knowledge proofs |
![]() | midnight-node | Node architecture, configuration, governance, operations, RPC API |
![]() | midnight-indexer | Indexer architecture, data model, GraphQL API |
![]() | proof-server | Proof server architecture, configuration, API, operations |
| Plugin | Description | |
|---|---|---|
![]() | midnight-expert | Ecosystem diagnostics — plugin health, MCP servers, external tools, cross-plugin references |
![]() | midnight-plugin-utils | Plugin infrastructure — dependency checking, scanning, root resolution |
Write a contract:
"Create a Compact contract for a simple voting system"
Review a contract:
/compact-core:review-compact contracts/MyToken.compact