hearth-macro-basics
OfficialFoundation for fast, safe Hearth macro derivation
Authorkubuszok
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Core Hearth macro architecture provides a unified foundation for building type-class derivation macros that work across Scala 2.13 and Scala 3, speeding up compilation and ensuring consistent behavior across modules.
Core Features & Use Cases
- Context-based parameter passing via a DerivationCtx to bundle all inputs for code generation.
- Rule-based derivation architecture with a canonical ordering to coordinate decision points.
- Logging with MIO and Log to trace macro decisions and help debugging.
- Caching with ValDefsCache and MLocal to avoid duplicate definitions and support recursive derivation.
- Self-type skip, placeholder caching, and cross-module entry point patterns to enable scalable macro modules.
Quick Start
Follow this pattern to implement a new Hearth-based macro derivation module by wiring a DerivationCtx and a Rules pipeline.
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: hearth-macro-basics Download link: https://github.com/kubuszok/kindlings/archive/main.zip#hearth-macro-basics 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 510,000+ vetted skills library on demand.