caching-strategy
CommunityEliminate repeated work, speed up workflows.
Authormarcusgoll
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Cache expensive operations to avoid redundant work across workflow phases. Caches project docs (15min TTL), npm info (60min), grep results (30min), token counts (until file modified), web searches (15min). Auto-triggers when detecting repeated reads of same files or repeated API calls. Saves 20-40% execution time.
Core Features & Use Cases
- File read cache: Cache file contents until the file is modified.
- Search result cache: Cache grep/glob results for quick reuse.
- Network request cache: Cache npm/web API calls for common packages.
- Computed value cache: Cache expensive calculations until inputs change.
- Automatic invalidation: TTL expiration and file-mod time checks.
- Result: 20-40% faster workflow execution with zero behavioral changes.
Quick Start
- Identify cacheable operations: idempotent reads, repeated patterns, repeated API calls, and expensive computations.
- Generate a unique cache key per operation (e.g., file:, grep:, npm:, web:).
- Implement caching with TTLs and invalidation rules.
- Validate cache hits/misses and monitor performance improvements.
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: caching-strategy Download link: https://github.com/marcusgoll/Spec-Flow/archive/main.zip#caching-strategy 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.