What is content-hash-cache-pattern?
Use when caching expensive file processing results. SHA-256 content-hash keying with frozen CacheEntry and service layer wrapper. Source: shimo4228/claude-code-learned-skills.
Use when caching expensive file processing results. SHA-256 content-hash keying with frozen CacheEntry and service layer wrapper.
Quickly install content-hash-cache-pattern AI skill to your development environment via command line
Source: shimo4228/claude-code-learned-skills.
Extracted / 抽出日: 2026-02-10 Context / コンテキスト: ファイル処理結果をSHA-256ハッシュでキャッシュし、サービス層でラップするパターン
| SHA-256 content hash | Path-independent, auto-invalidates on content change | | {hash}.json file naming | O(1) lookup, no index file needed | | Service layer wrapper | SRP: extraction stays pure, cache is separate concern | | Manual JSON serialization | Full control over frozen dataclass serialization |
| Corruption → None | Graceful degradation, re-extracts on next run | | cachedir.mkdir(parents=True) | Lazy directory creation on first write |
Use when caching expensive file processing results. SHA-256 content-hash keying with frozen CacheEntry and service layer wrapper. Source: shimo4228/claude-code-learned-skills.
Stable fields and commands for AI/search citations.
npx skills add https://github.com/shimo4228/claude-code-learned-skills --skill content-hash-cache-patternBrowse more skills from shimo4228/claude-code-learned-skills
Use when caching expensive file processing results. SHA-256 content-hash keying with frozen CacheEntry and service layer wrapper. Source: shimo4228/claude-code-learned-skills.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/shimo4228/claude-code-learned-skills --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, Cursor, or OpenClaw
https://github.com/shimo4228/claude-code-learned-skills