compact-core:compact-language-ref
OfficialMaster Compact language mechanics fast
System Documentation
What problem does it solve?
Provides a clear, discoverable reference for the Compact language so developers can understand precise typing rules, casting behavior, operator semantics, control flow restrictions, module/import patterns, and standard library functions needed to write correct, provable circuits and avoid common compiler errors.
Core Features & Use Cases
- Types & Casting: Explains primitive, opaque, collection, and custom types, literal typing, subtyping, and safe cast patterns with checked vs static casts.
- Operators & Expressions: Clarifies arithmetic widening, boolean and relational operators, conditional expressions, and anonymous circuits used by map/fold.
- Control Flow & Modules: Documents const-only bindings, for-loop unrolling and restrictions, if/else rules, pragma and include behavior, import forms, and export conventions for TypeScript interop.
- Stdlib & Troubleshooting: Summarizes persistent vs transient hashing/commitments, disclose and assert semantics, pad/default utilities, and a wrong-to-correct compiler error quick reference for debugging.
Quick Start
Ask the skill to explain Compact types, casting rules, loop and disclosure restrictions, and key stdlib functions with practical wrong-to-correct examples and references to deeper documentation.
Dependency Matrix
Required Modules
None requiredComponents
💻 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-language-ref Download link: https://github.com/devrelaicom/midnight-expert/archive/main.zip#compact-core-compact-language-ref Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.