·content-hash-cache-pattern
</>

content-hash-cache-pattern

Use when caching expensive file processing results. SHA-256 content-hash keying with frozen CacheEntry and service layer wrapper.

4Installs·0Trend·@shimo4228

Installation

$npx skills add https://github.com/shimo4228/claude-code-learned-skills --skill content-hash-cache-pattern

How to Install content-hash-cache-pattern

Quickly install content-hash-cache-pattern AI skill to your development environment via command line

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

Source: shimo4228/claude-code-learned-skills.

SKILL.md

View raw

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.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/shimo4228/claude-code-learned-skills --skill content-hash-cache-pattern
Category
</>Dev Tools
Verified
First Seen
2026-02-25
Updated
2026-03-11

Browse more skills from shimo4228/claude-code-learned-skills

Quick answers

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.

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/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

Where is the source repository?

https://github.com/shimo4228/claude-code-learned-skills

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-25

Related Skills

None