What problem does it solve?
This Skill eliminates the limitations of fragile path-based file caches that break when files are moved or renamed, removes the need for manual cache invalidation when file content changes, and lets you add caching to existing pure file processing functions without modifying their code.
Core Features & Use Cases
- Path-independent caching: Uses SHA-256 content hashes as cache keys, so caches remain valid even if files are moved or renamed.
- Auto-invalidation: Cache entries are automatically discarded when file content changes, no manual index updates required.
- Pure function compatibility: Service layer wrapper keeps processing functions free of cache logic, so you can add caching to existing code without refactoring.
- Use Case: For teams running repeated batch processing of PDFs, images, or text files (e.g., invoice parsing, OCR workflows), this pattern cuts redundant processing time by caching results keyed to file content, even if file paths change between runs.
Quick Start
Use the content-hash-cache-pattern skill to add content-hash based caching to your existing file processing pipeline so that repeated runs on unchanged files return cached results instantly without redundant processing.