Concept Output Caching

Cache concept outputs with in-memory storage and automatic invalidation on file changes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/mkolb22/zen-plugin --skill concept-output-caching
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Concept Output Caching
Source: https://github.com/mkolb22/zen-plugin/tree/main/skills/output-caching
Command: npx skills add https://github.com/mkolb22/zen-plugin --skill concept-output-caching

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cache concept outputs to eliminate redundant reads and accelerate rule evaluations across a single session, targeting sub-100ms access and high hit rates.

Core Features & Use Cases

  • In-session memory cache (Level 1) provides fast reads of commonly accessed story, architecture, and implementation data.
  • Automatic invalidation on file modification (mtime) to ensure data freshness.
  • Optional persistent cache to survive across sessions (future enhancement) and batch cache statistics for monitoring.
  • Seamless cache-aside integration with sync workflows to speed up repeated rule evaluations.

Quick Start

Enable the in-session cache and read concept outputs through the cache to accelerate subsequent reads during the current session.

Frequently Asked Questions about Concept Output Caching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cache concept outputs to eliminate redundant reads during rule evaluations?

You can cache concept outputs by enabling an in-session memory cache that provides fast reads of commonly accessed data. This eliminates redundant reads and accelerates rule evaluations, targeting sub-100ms access and high hit rates.

How does cache invalidation work when underlying concept files are modified?

Cache invalidation works automatically by checking file modification times, or mtime. When a file changes, the system enforces automatic invalidation to ensure data freshness and maintain correctness across the session.

What is the best way to speed up sync workflows that repeatedly access concept outputs?

The best way to speed up sync workflows is using a seamless cache-aside integration. By reading concept outputs through the in-session cache, you optimize performance and accelerate repeated rule evaluations during the current session.

Can I use persistent storage to survive the concept output cache across multiple sessions?

Persistent storage to survive the concept output cache across sessions is currently an optional future enhancement. Right now, the system enforces a multi-layer caching strategy primarily using an in-session memory cache for fast reads.

What are the limitations of relying on an in-memory session cache for concept evaluation tasks?

The main limitation of an in-memory session cache is that it does not persist data across sessions without optional persistent storage. It is designed specifically for workflows that repeatedly access concept outputs within a single session to accelerate rule evaluations.

Does concept output caching support batch statistics for monitoring cache performance?

Yes, concept output caching supports batch cache statistics for monitoring performance. This allows you to track high hit rates and verify that the in-session memory cache achieves sub-100ms access during concept evaluation tasks.