Predictive Cache Manager

Caches frequent tool results and prefetches likely next requests. Use for: cache results, prefetch, reuse cache, avoid repeat fetch.

Stijnman Updated 14 repo stars

File contents

Predictive Cache Manager

When to Use

  • User says cache results or task matches this capability
  • User says prefetch or task matches this capability
  • User says reuse cache or task matches this capability
  • User says avoid repeat fetch or task matches this capability

Workflow

  1. Identify repeat queries from session history.
  2. Cache with TTL based on data freshness needs.
  3. Invalidate on write operations to same resource.
  4. Prefetch only high-confidence next steps.

Integrations

  • performance-optimizer
  • mega-context-manager

Error Handling

Failure Response
Stale cache served Shorten TTL; add freshness check.

Gotchas

  • Never cache auth tokens or PII.

Example

Input: User request matching triggers above. Output: Structured result per workflow with integrations invoked as needed.

Stijnman/grok-custom-skills commit 267a716a9e

Frequently asked questions

npx get-skill add stijnman/predictive-cache-manager