# Predictive Cache Manager

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

- Skill: `stijnman/predictive-cache-manager` (Agent Skill)
- Install (CLI): `npx skillmds@latest add stijnman/predictive-cache-manager`
- Raw SKILL.md: https://api.skillmd.com/api/skills/stijnman/predictive-cache-manager/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: Stijnman (https://skillmd.com/u/stijnman)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/stijnman/predictive-cache-manager

---

# 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.

