Quick-reference table of commonly used Hearth API signatures: Expr, Type, MIO, ValDefsCache, CaseClass, Enum, LambdaBuilder, Environment. Always verify with MCP.
EnglishDeriving type classes for case classes: CaseClass.parse, primaryConstructor, field access, Expr?? existential types, decoder construction, nest vs nestInCache, dual-path derivation.
EnglishCreating IsCollection and IsMap providers for external collection types (e.g. cats NonEmptyList, NonEmptyMap). Helper method pattern, runtime helper pattern, fromUntyped matching, SBT reload.
EnglishCross-compilation pitfalls for Scala 2.13 + 3 macros with Hearth. Path-dependent types, splice isolation, type constructor matching, reification failures, Array ClassTag, upcast constraints, phantom types, asInstanceOf semantics, IsMap ordering.
EnglishCanonical recipe for generating type-class instances with cached defs via ValDefsCache. forwardDeclare, buildCachedWith, toValDefs.use, parTuple for parallel derivation. Use when implementing multi-method type class instances or solving Scala 3 sibling-splice isolation.
EnglishFinding and using Hearth documentation. ReadTheDocs URLs by version, verifying APIs via MCP, Hearth source as reference (key files), cross-referencing with kindlings.
EnglishDeriving type classes for sealed traits and Scala 3 enums: Enum.parse, Enum.matchOn dispatch, singleton handling, discriminator decoding, recursive enum self-reference (var-self trick).
EnglishParsing selector/path lambdas (.a.b.each.when[T]) and building optics-like marker DSLs with Hearth. DestructuredExpr step-chain walking, per-platform markers + invariant evidence, CaseClass copy-with-modification, non-exhaustive MatchCase, runtime-typeclass delegation. Reference: the optics module (quicklens reimplemented).
EnglishPolymorphic (kind -> ) type class derivation with Hearth. Erased approach with AnyF, two-probe field classification (Int/String probes), bridge methods for type constructor summoning, runtime helpers for erased HKT calls, ConsK algorithm.
EnglishWhen to use LambdaBuilder and when not to. Strict rule: only for collection/Optional iteration lambdas passed to runtime helpers. Migration guide for inappropriate usages.
EnglishCore Hearth macro architecture: rule-based derivation, context passing, MIO effects, ValDefsCache caching, recursive derivation with implicit ignoring. Foundation for all type class derivation modules.
EnglishLoading Hearth standard extensions exactly once per macro bundle. ensureStandardExtensionsLoaded() pattern, LoadStandardExtensionsOnce trait, what extensions provide (IsCollection, IsMap, IsValueType, IsOption).
EnglishCreating IsValueType providers for external value types (refined, iron, opaque types). Provider registration, wrap/unwrap methods, Type.Ctor2.fromUntyped for cross-compilation.
EnglishDebugging Kindlings macro derivation. LogDerivation imports, MIO diagnostic logging, flame graph generation, error trait hierarchy per module, compile-time annotation collection, recursive type tracking with MLocal.
EnglishWriting and testing executable code snippets in the Kindlings user guide. Expected output verification syntax, running snippet tests (just test-snippets), template variables.
EnglishFactory instance pattern for generating final type class instances. Lambda factories for monomorphic (kind ), erasure-based factories with Witness types for polymorphic (kind -> ). Benchmark data showing lambda vs anonymous class performance.
EnglishProfile JMH benchmarks with JFR: statistical execution sampling (any JDK) and deterministic method timing/tracing (JDK 25+, JEP 520) to measure exact invocation counts and timing of macro-generated codec/encoder/decoder methods. Covers exact sbt/JMH commands, targeting generated methods, reading results, and the JDK gating.
EnglishBootstrapping a new Kindlings derivation module. Build configuration, 3-layer file structure, entry points (type class + inlined body), implementation requirements REQ-1 through REQ-12, test coverage checklist, error hierarchy, syncing from Hearth.
EnglishRuntime performance optimization for macro-generated type class instances. semiEval for compile-time config, ValDefs.createVar for typed locals, sentinel loops, inline built-in encoding/decoding, inline collection loops, position-based record access.
EnglishIncludes Hearth API Reference, Hearth Case Class Rules, Hearth Collection Map, and other workflows.
Supported by the Atlas install prompt. Skill-specific requirements vary.
Pack stats
What’s included
Hearth API Reference
Quick-reference table of commonly used Hearth API signatures: Expr, Type, MIO, ValDefsCache, CaseClass, Enum, LambdaBuilder, Environment. Always verify with MCP.
Hearth Case Class Rules
Deriving type classes for case classes: CaseClass.parse, primaryConstructor, field access, Expr?? existential types, decoder construction, nest vs nestInCache, dual-path derivation.
Hearth Collection Map
Creating IsCollection and IsMap providers for external collection types (e.g. cats NonEmptyList, NonEmptyMap). Helper method pattern, runtime helper pattern, fromUntyped matching, SBT reload.
Hearth Cross Compilation
Cross-compilation pitfalls for Scala 2.13 + 3 macros with Hearth. Path-dependent types, splice isolation, type constructor matching, reification failures, Array ClassTag, upcast constraints, phantom types, asInstanceOf semantics, IsMap ordering.
Hearth Def Caching
Canonical recipe for generating type-class instances with cached defs via ValDefsCache. forwardDeclare, buildCachedWith, toValDefs.use, parTuple for parallel derivation. Use when implementing multi-method type class instances or solving Scala 3 sibling-splice isolation.
Hearth Documentation
Finding and using Hearth documentation. ReadTheDocs URLs by version, verifying APIs via MCP, Hearth source as reference (key files), cross-referencing with kindlings.
Hearth Enum Rules
Deriving type classes for sealed traits and Scala 3 enums: Enum.parse, Enum.matchOn dispatch, singleton handling, discriminator decoding, recursive enum self-reference (var-self trick).
Hearth Expr Parsing Dsl
Parsing selector/path lambdas (.a.b.each.when[T]) and building optics-like marker DSLs with Hearth. DestructuredExpr step-chain walking, per-platform markers + invariant evidence, CaseClass copy-with-modification, non-exhaustive MatchCase, runtime-typeclass delegation. Reference: the optics module (quicklens reimplemented).
Hearth Hkt Derivation
Polymorphic (kind -> ) type class derivation with Hearth. Erased approach with AnyF, two-probe field classification (Int/String probes), bridge methods for type constructor summoning, runtime helpers for erased HKT calls, ConsK algorithm.
Hearth Lambda Builder
When to use LambdaBuilder and when not to. Strict rule: only for collection/Optional iteration lambdas passed to runtime helpers. Migration guide for inappropriate usages.
Hearth Macro Basics
Core Hearth macro architecture: rule-based derivation, context passing, MIO effects, ValDefsCache caching, recursive derivation with implicit ignoring. Foundation for all type class derivation modules.
Hearth Standard Extensions
Loading Hearth standard extensions exactly once per macro bundle. ensureStandardExtensionsLoaded() pattern, LoadStandardExtensionsOnce trait, what extensions provide (IsCollection, IsMap, IsValueType, IsOption).
Hearth Value Types
Creating IsValueType providers for external value types (refined, iron, opaque types). Provider registration, wrap/unwrap methods, Type.Ctor2.fromUntyped for cross-compilation.
Kindlings Debugging
Debugging Kindlings macro derivation. LogDerivation imports, MIO diagnostic logging, flame graph generation, error trait hierarchy per module, compile-time annotation collection, recursive type tracking with MLocal.
Kindlings Doc Maintenance
Writing and testing executable code snippets in the Kindlings user guide. Expected output verification syntax, running snippet tests (just test-snippets), template variables.
Kindlings Factory Instance
Factory instance pattern for generating final type class instances. Lambda factories for monomorphic (kind ), erasure-based factories with Witness types for polymorphic (kind -> ). Benchmark data showing lambda vs anonymous class performance.
Kindlings Jfr Profiling
Profile JMH benchmarks with JFR: statistical execution sampling (any JDK) and deterministic method timing/tracing (JDK 25+, JEP 520) to measure exact invocation counts and timing of macro-generated codec/encoder/decoder methods. Covers exact sbt/JMH commands, targeting generated methods, reading results, and the JDK gating.
Kindlings New Module
Bootstrapping a new Kindlings derivation module. Build configuration, 3-layer file structure, entry points (type class + inlined body), implementation requirements REQ-1 through REQ-12, test coverage checklist, error hierarchy, syncing from Hearth.
Kindlings Runtime Perf
Runtime performance optimization for macro-generated type class instances. semiEval for compile-time config, ValDefs.createVar for typed locals, sentinel loops, inline built-in encoding/decoding, inline collection loops, position-based record access.
Quick start
- Choose your skills. Select individual skills above, or choose the entire pack.
- Copy the install prompt. Use Copy install prompt above the list.
- Send it to your agent. Paste into your coding agent’s chat. Your agent reviews the source and guides the setup.
Try it with your agent
After installation, start with a request like:
Use the Hearth API Reference skill to help with my task.
Ask me for the context you need before getting started.Requirements & license
- A coding agent that can access your project files and install skills.
- Your agent checks each skill’s instructions, dependencies, and permissions during setup.
- Reported license for the skills shown: Apache-2.0. The author’s terms apply.