---
name: compact-core-clone-examples-b33e3bc15ef5
description: 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.
---

# Clone Examples

> Catalog of cloneable Compact contract examples and starter projects

## Usage

### Listing Examples

Read `references/catalog.yaml` to browse available examples.
Filter by tags, source, or compatibility requirements.

### Cloning Examples

Always use shallow clone to minimize download size:

```bash
git clone --depth 1 <clone_url> <destination>
```

**Before cloning**: If the user hasn't specified a destination directory, ask where they'd like to clone the repository.

For examples where `path` is not `/`, guide the user to the specific file or directory after cloning.

### Compatibility Check

Before recommending an example, use `/midnight-tooling:midnight-compatibility` to verify the user's environment matches the example's `compatibility` requirements. Warn if versions differ or are incompatible.

## References

- [catalog.yaml](references/catalog.yaml) - Full example catalog


---
Source attribution: aaronbassett
Original project: https://github.com/aaronbassett/midnight-knowledgebase/blob/8d873d378dc993f3b80e611d44605ea29f411aaf/plugins/compact-core/skills/clone-examples/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Aaron Bassett

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: aaronbassett
Original project: https://github.com/aaronbassett/midnight-knowledgebase/blob/8d873d378dc993f3b80e611d44605ea29f411aaf/plugins/compact-core/skills/clone-examples/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering, Product Management
Roles: Backend Developer, Growth Product Manager, Product Manager
Specialties: Backend
Tools: Midnight Tooling, Openzeppelin
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 0863e081cbfde89e4031bb46c3f189a16654a1b890a9b0b51ae6bbd5170c0ee7
