kitfunso/omniskill/content-hash-cache
Claude Code and agent skill by kitfunso/omniskill
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Pattern for caching expensive file operations using SHA-256 content hashes instead of file paths. Use when building data pipelines that process files (PDF parsing, OCR, image analysis, signal computation) and need caching. File rename = cache hit. Content change = auto-invalidation.
Install
npx vskill@latest install kitfunso/omniskill/content-hash-cacheSKILL.md
The same SKILL.md was published earlier as kitfunso/omniskill/content-hash-cache.
Content Hash Cache Pattern
Cache by content (SHA-256), not by path. Rename = cache hit. Content change = auto-invalidation. No index file needed.
Core Implementation
Design Decisions
- O(1) lookup:
{hash}.json— no index file to maintain or corrupt - Corruption tolerance: Returns
Noneon bad cache, recomputes silently - Lazy directory creation: Cache dir created only when first entry is written
- Frozen dataclass: Immutable cache entries prevent accidental mutation
- Pure function wrapping:
process_fnstays pure; caching is a separate concern
When to Use
- PDF/document text extraction
- Image analysis or OCR
- Signal computation on price data files
- Any expensive file → result transformation that's deterministic
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/content-hash-cache/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kitfunso/omniskill/content-hash-cache)