Cache Layer
by @clawkk
Cache layers, TTLs, invalidation, and consistency. Use when speeding reads or debugging stale data.
clawhub install cache-layerπ About This Skill
name: cache-layer description: "Cache layers, TTLs, invalidation, and consistency. Use when speeding reads or debugging stale data."
Cache Layer
Structured guidance for cache layers (TTLs, invalidation, consistency): confirm triggers, propose the stages below, and adapt if the user wants a lighter pass.
When to Offer This Workflow
Trigger conditions:
Initial offer: Explain the four stages briefly and ask whether to follow this workflow or work freeform. If they decline, continue in their preferred style.
Workflow Stages
Stage 1: Clarify context & goals
Anchor on what to cache and TTL rationale. Ask what success looks like, constraints, and what must not break. Capture unknowns early.
Stage 2: Design or plan the approach
Translate goals into a concrete plan around invalidation patterns. Compare alternatives and explicit trade-offs; avoid implicit assumptions.
Stage 3: Implement, validate, and harden
Execute with verification loops tied to consistency and thundering herds. Prefer small steps, measurable checks, and rollback points where risk is high.
Stage 4: Operate, communicate, and iterate
Close the loop with monitoring hit rate and staleness: monitoring, documentation, stakeholder updates, and lessons learned for the next cycle.