compact-core:compilation-tooling

Configure the Compact compiler and interpret zkir, keys, and TypeScript outputs.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/aaronbassett/midnight-knowledgebase --skill compact-core-compilation-tooling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: compact-core:compilation-tooling
Source: https://github.com/aaronbassett/midnight-knowledgebase/tree/main/plugins/compact-core/skills/compilation-tooling
Command: npx skills add https://github.com/aaronbassett/midnight-knowledgebase --skill compact-core-compilation-tooling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides developers to configure and use the Compact compiler (compactc) and interpret its build outputs.

Core Features & Use Cases

  • Comprehensive guide to compile and manage outputs (zkir, keys, contract.ts), explains environment variables (COMPACT_PATH, MIDNIGHT_NETWORK), and demonstrates VS Code integration.
  • Provides practical workflows for development builds (fast iteration) and production builds (with ZK keys), plus troubleshooting tips and reference material.

Quick Start

Run a development build with --skip-zk for fast iteration, or a full build to generate ZK keys and artifacts.

Frequently Asked Questions about compact-core:compilation-tooling

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

FAQPage Schema
How do I compile Midnight smart contracts using the Compact compiler for fast iteration?

To compile Midnight smart contracts using the Compact compiler for fast iteration, run a development build with the --skip-zk flag. This bypasses ZK proof generation to accelerate the build process during active development cycles.

What build artifacts are generated when compiling Compact code to zkir?

Compiling Compact code generates several build artifacts, including zkir files, ZK keys, and TypeScript definitions (contract.ts). These outputs are essential for deploying Midnight contracts and integrating them into applications.

Does the Compact compiler support VS Code IDE integration for Midnight development?

Yes, the Compact compiler supports VS Code IDE integration. You can configure your development environment to streamline Midnight smart contract workflows, enabling features like debugging and fast iteration directly within the editor.

How do I configure environment variables like COMPACT_PATH and MIDNIGHT_NETWORK for builds?

You configure COMPACT_PATH and MIDNIGHT_NETWORK environment variables within your development environment to specify compiler paths and target network settings. Proper configuration ensures accurate build outputs and deployment artifacts for Midnight contracts.

Why does generating ZK keys during a Compact build take longer than expected?

Generating ZK keys during a Compact build takes longer because it involves zero-knowledge proof generation, which is computationally intensive. Use the --skip-zk flag for development builds to bypass this step and achieve faster iteration.