/compact-examples:code-examplesfrom compact-examples
Provides compilable Compact smart contract examples, TypeScript witnesses, and tests for blockchain development. Covers beginner contracts, reusable modules, token contracts, and full applications.
Ships in compact-examples. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Compilable Compact smart contracts, TypeScript witnesses, and tests sourced from 8 repositories. All code uses pragma language_version 0.23 and passes compact compile with full proof generation.
.compact and witness files you needDo NOT load all examples into context. Use the reference files to pick precisely what you need.
| Topic | Reference | When to use |
|---|---|---|
| Beginner examples | references/getting-started.md | Simple contracts, learning basics, minimal state management |
| Reusable modules | references/modules.md | Access control, math, crypto, data structures, utils — building blocks you import |
| Token contracts | references/tokens.md | Fungible, NFT, multi-token, shielded tokens — complete deployable contracts |
| Privacy & cryptography | references/privacy-and-cryptography.md | ZK patterns, signatures, identity proofs, privacy techniques |
| Full applications | references/applications.md | Multi-module DApps, real-world architecture, how pieces compose |
examples/applications/battleship/battleship.compact (opens in a new tab)examples/applications/battleship/witnesses.ts (opens in a new tab)examples/applications/kitties/Nft.compact (opens in a new tab)examples/applications/kitties/kitties.compact (opens in a new tab)examples/applications/kitties/witnesses.ts (opens in a new tab)examples/applications/midnight-rwa/Crypto.compact (opens in a new tab)examples/applications/midnight-rwa/PassportIdentity.compact (opens in a new tab)examples/applications/midnight-rwa/midnight-rwa.compact (opens in a new tab)examples/applications/midnight-rwa/witnesses.ts (opens in a new tab)examples/applications/private-party/private-party.compact (opens in a new tab)examples/applications/private-party/witnesses.ts (opens in a new tab)examples/applications/tbtc/tbtc.compact (opens in a new tab)examples/applications/zkloan/schnorr.compact (opens in a new tab)examples/applications/zkloan/witnesses.ts (opens in a new tab)examples/applications/zkloan/zkloan-credit-scorer.compact (opens in a new tab)examples/getting-started/bboard/bboard.compact (opens in a new tab)examples/getting-started/bboard/witnesses.ts (opens in a new tab)examples/getting-started/hello-world/hello-world.compact (opens in a new tab)examples/modules/access/AccessControl.compact (opens in a new tab)examples/modules/access/Ownable.compact (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub midnightntwrk/midnight-expert --plugin compact-examplesOther plugins' skills for the same job