hearth-def-caching

Official

Canonical recipe for cached type-class derivation.

Authorkubuszok
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a robust pattern for generating type-class instances where bodies should be derived once and reused across multiple methods, enabling safe sharing of derived definitions in complex derivations.

Core Features & Use Cases

  • Single shared ValDefsCache across multiple methods to avoid duplication and maintain consistency.
  • forwardDeclare + buildCachedWith to materialize cached defs under controlled scope.
  • toValDefs.use hoisting to emit top-level defs alongside the final instance, enabling scalable multi-method derivations and recursive structures.

Quick Start

Use this skill to implement a multi-method type-class instance with cached bodies across methods.

Dependency Matrix

Required Modules

None required

Components

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-def-caching
Download link: https://github.com/kubuszok/kindlings/archive/main.zip#hearth-def-caching

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 510,000+ vetted skills library on demand.