lazy-context-injection-reuse
CommunityEfficient, lazy context loading with TTL decay
System Documentation
What problem does it solve?
Reuse the lazy/deferred context injection pattern (module-scope trigger with TTL decay, multi-point hooks, first-full-then-short differential, lazy-stub + ranker + dormant gate for listing-type content, env var gating) when adding new content sections that should skip injection until needed, or reducing per-turn overhead for invariant/listing content in third-party API mode.
Core Features & Use Cases
- Implements a TTL-decayed trigger at the module level to gate content injection with a configurable TTL and an override path via environment variables.
- Provides multiple trigger surfaces (tool calls, slash commands, and REPL keyword triggers) and a first-full-then-short content strategy for listing-type content with a ranker, dormant gate, and folding behavior.
- Includes a zero-serialization, resettable, module-scope state pattern with explicit reset functions to support cache clearing and test isolation.
Quick Start
Use the lazy-context-injection-reuse pattern to defer non-critical content until needed; trigger its loading via a tool call, a slash command, or a REPL keyword, then observe TTL-based decay.
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: lazy-context-injection-reuse Download link: https://github.com/liuyu520/cc_source/archive/main.zip#lazy-context-injection-reuse 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.