mongez-reinforcements-lazy

Community

Memoised lazy values to break circular imports.

Authorhassanzohdy
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Managing module imports in complex TypeScript projects can lead to circular dependencies and eager evaluation of costly computations. This Skill provides memoised lazy values to break circular imports and delay work until needed.

Core Features & Use Cases

  • lazy: create a memoised producer that runs once and caches the value.
  • lazy.async: memoised promises for asynchronous producers.
  • lazy.from: pre-resolved lazy values for testing or symmetry.
  • isLazy: type guard to narrow to Lazy values.
  • Isolates circular-dependency risks and simplifies dependency graphs in large apps.

Quick Start

Resolve a lazy value on first access to avoid unnecessary work.

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: mongez-reinforcements-lazy
Download link: https://github.com/hassanzohdy/reinforcements/archive/main.zip#mongez-reinforcements-lazy

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.