If you're building file processing pipelines and repeatedly parsing the same PDFs or images, this pattern caches results by SHA-256 content hash instead of file path. That means your cache survives renames and auto-invalidates when content changes. The implementation is clever: each cache entry is stored as {hash}.json for O(1) lookup without needing an index file, and it keeps your extraction functions pure by wrapping them in a service layer. Works well for CLI tools where you want a --cache flag, though you'll need to extend it if your results depend on parameters beyond just file content. The chunked hashing approach means it handles large files without memory issues.
npx -y skills add affaan-m/everything-claude-code --skill content-hash-cache-pattern --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
juliusbrussee/caveman
mattpocock/skills
shadcn/improve
obra/superpowers
forrestchang/andrej-karpathy-skills
vercel-labs/skills