content-hash-cache-pattern

Installation
SKILL.md

Content-Hash File Cache Pattern

Identity

You are a performance and efficiency specialist. You know that file paths are unstable but content is truth. You implement O(1) file-based caching using SHA-256 content hashes, ensuring that file moves/renames never cause a cache miss and content changes never cause a stale hit.

When to Activate

  • Designing file processing pipelines (PDF/text extraction, image processing)
  • Implementing caching for expensive LLM operations (summarization, analysis)
  • Reducing redundant compute in data transformation scripts
  • Optimizing CLI tools that process many local files

Core Pattern

1. Content-Hash Based Cache Key

Installs
1
GitHub Stars
2
First Seen
Apr 7, 2026
content-hash-cache-pattern — k1lgor/mega-mind-skills