compact-cli-dev:core

Scaffold Oclif CLIs for Midnight Compact smart contract workflows.

37|9|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/devrelaicom/midnight-expert --skill compact-cli-dev-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compact-cli-dev:core
Source: https://github.com/devrelaicom/midnight-expert/tree/main/plugins/compact-cli-dev/skills/core
Command: npx skills add https://github.com/devrelaicom/midnight-expert --skill compact-cli-dev-core

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The skill removes friction for developers building command-line tools that interact with Midnight Compact smart contracts by providing a production-ready Oclif CLI template, integrated wallet management, provider wiring, deployment and devnet controls, and robust error handling so teams can ship developer tooling faster and more reliably.

Core Features & Use Cases

  • Project scaffolding: A complete CLI template with BaseCommand, command topics, and a templates/cli scaffold to jumpstart new Oclif projects for Compact contracts.
  • Wallet & provider integration: HD seed derivation, WalletFacade construction, 6-provider factory, and wallet persistence for common wallet, dust, and shielded workflows.
  • Contract lifecycle and devnet controls: Helpers for loading compiled contracts, deploy/join flows, address persistence, devnet compose discovery, and service health checks.
  • Developer ergonomics: JSON-mode support, spinner helpers, classified error messages with actionable remediation, unit tests, and CI configuration.
  • Use Case: Rapidly generate a CLI that can create and fund local devnet wallets, deploy a compiled Compact contract, invoke circuits, and query public state during integration testing.

Quick Start

Use the compact-cli-dev:core skill to scaffold a new Oclif CLI with wallet management, deploy, call, query, and devnet commands for your Compact contract.

Frequently Asked Questions about compact-cli-dev:core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold an Oclif CLI for Midnight Compact smart contracts?

Scaffold an Oclif CLI for Midnight Compact smart contracts using a production-ready template with BaseCommand, command topics, and a templates/cli structure to jumpstart project creation.

How do I manage local devnet wallets for Compact contract integration testing?

Manage local devnet wallets for Compact contracts using integrated HD seed derivation, WalletFacade construction, and wallet persistence to create, fund, and maintain common, dust, and shielded workflows.

Does this CLI template support deploying compiled Compact contracts to a devnet?

Yes, the CLI template supports deploying compiled Compact contracts to a devnet by providing helpers for loading compiled contracts, executing deploy and join flows, and persisting deployed addresses.

What is the best way to handle errors when invoking Compact circuits via a CLI?

Handle errors when invoking Compact circuits by utilizing the template's classified error messages, which provide actionable remediation steps to debug circuit invocations and state queries efficiently.

Can I query public state on a Midnight Compact contract using a command-line tool?

Yes, you can query public state on Midnight Compact contracts using the generated command-line tool, which includes built-in query commands, JSON-mode support, and provider wiring for integration testing.

How do I check devnet service health before deploying a Compact contract?

Check devnet service health before deploying a Compact contract using the template's built-in devnet compose discovery and service health check helpers to ensure network availability.