compact-core:compact-patterns

Official

Design reusable Compact contract patterns.

Authordevrelaicom
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides a concise, actionable catalog of Compact smart contract design patterns so developers can choose, combine, and implement secure, privacy-aware primitives without reinventing common solutions.

Core Features & Use Cases

  • Pattern Catalog: Coverage of access control (owner-only, RBAC, pausable, initializable), state management (state machines, time-locks), commitments (commit-reveal, sealed-bid auctions), value handling (escrow, treasury), governance (multi-sig, voting), identity/membership (registry, credentials, anonymous Merkle membership), and privacy (unlinkability, selective disclosure).
  • Composition Guidance: Advice for combining patterns safely with integration points, ordering rules (auth before action, state checks after auth), and privacy stacking considerations.
  • Operational Guidance: Key primitives, test checklists, privacy trade-offs, and cross-skill references to related Compact skills (tokens, privacy deep dives, ledger types).
  • Use Case Example: Design a private sealed-bid auction that uses commit-reveal, escrowed deposits, a time-locked reveal phase, and anonymous bidder membership via a HistoricMerkleTree.

Quick Start

Ask for pattern recommendations to design a Compact escrow that supports anonymous membership, time-locked releases, and emergency pause controls.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: compact-core:compact-patterns
Download link: https://github.com/devrelaicom/midnight-expert/archive/main.zip#compact-core-compact-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.