·content-hash-cache-pattern
</>

content-hash-cache-pattern

affaan-m/everything-claude-code

Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

21Installs·21Trend·@affaan-m

Installation

$npx skills add https://github.com/affaan-m/everything-claude-code --skill content-hash-cache-pattern

SKILL.md

Cache expensive file processing results (PDF parsing, text extraction, image analysis) using SHA-256 content hashes as cache keys. Unlike path-based caching, this approach survives file moves/renames and auto-invalidates when content changes.

Why content hash? File rename/move = cache hit. Content change = automatic invalidation. No index file needed.

Each cache entry is stored as {hash}.json — O(1) lookup by hash, no index file required.

Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation. Source: affaan-m/everything-claude-code.

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/affaan-m/everything-claude-code --skill content-hash-cache-pattern
Category
</>Dev Tools
Verified
First Seen
2026-02-17
Updated
2026-02-18

Quick answers

What is content-hash-cache-pattern?

Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation. Source: affaan-m/everything-claude-code.

How do I install content-hash-cache-pattern?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/affaan-m/everything-claude-code --skill content-hash-cache-pattern Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/affaan-m/everything-claude-code