compact-core:clone-examples

Catalog and shallow-clone Compact contract examples from references/catalog.yaml.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Use when starting a new Midnight project, cloning example contracts (counter, tokens, NFTs, DEX), scaffolding from OpenZeppelin templates, or bootstrapping a Compact contract development environment with working starter code.

Core Features & Use Cases

  • Catalog browsing via references/catalog.yaml to view available examples, filter by tags, source, or compatibility.
  • Shallow cloning to minimize download size with git clone --depth 1 <clone_url> <destination>.
  • Compatibility checks using the Midnight tooling guidance to verify environment requirements before selecting an example.

Quick Start

Clone a starter example from the catalog using a shallow clone and begin development.

Frequently Asked Questions about compact-core:clone-examples

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

FAQPage Schema
How do I clone example Compact contracts for a new Midnight project?

To clone example Compact contracts for Midnight, browse the catalog to find a starter project and use a shallow git clone to download the template. This minimizes download size and provides ready-to-run scaffolding for your development environment.

What starter templates are available for Midnight blockchain development?

Available Midnight starter templates include examples for counters, tokens, NFTs, and DEX contracts. You can browse the catalog file to filter these cloneable projects by source, tags, or compatibility requirements.

Can I use OpenZeppelin templates to scaffold Compact contracts on Midnight?

Yes, you can scaffold Compact contracts using OpenZeppelin templates. The catalog provides bootstrapping options that integrate these templates to give you working starter code for your Midnight project.

Does cloning Midnight starter projects verify my environment compatibility?

Yes, before presenting cloneable options, compatibility checks are applied using Midnight tooling guidance. This verifies that your local environment meets the necessary requirements before you select and download an example contract.

What is the best way to minimize download size when cloning Midnight contract examples?

The best way to minimize download size is using a shallow clone. By applying git clone with a depth of one, you download only the latest commit of the starter project instead of its entire history.

How do I filter available Midnight contract examples in the catalog?

You filter available Midnight contract examples by browsing the catalog file and applying filters based on tags, source, or compatibility. This helps you locate the specific starter project or template you need.