formality-core-idioms
OfficialIdioms for clean formality-core code.
Authordada-lang
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Idiomatic patterns for writing code with formality-core, focusing on generated constructors, Upcast/UpcastFrom coercions, judgment_fn patterns, and conventions for term-related enums and structs. This guidance helps reduce boilerplate, prevent subtle bugs, and improve readability in projects built on formality-core.
Core Features & Use Cases
- Generated constructors for structs and enums enable clean, concise construction and automatic upcast handling.
- Upcast/UpcastFrom coercions reduce manual conversions and cloning by accepting references where owned types are expected.
- judgment_fn patterns guide safe rule definitions and structured conclusions within judgments.
- Common pitfalls and best practices to ensure reliable type definitions and parser-related code in formality-core projects.
Quick Start
Apply these idioms when writing or reviewing formality-core code to ensure generated constructors, Upcast/UpcastFrom coercions, and judgment_fn patterns are used idiomatically.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: formality-core-idioms Download link: https://github.com/dada-lang/dada-model/archive/main.zip#formality-core-idioms 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.