Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.
68
52%
Does it follow best practices?
Impact
100%
1.44xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/content-hash-cache-pattern/SKILL.mdContent-hash caching with service layer separation
SHA-256 hash key
100%
100%
Chunked file reading
100%
100%
Hash-named cache files
100%
100%
Frozen dataclass entry
0%
100%
Pure processing function
100%
100%
Service layer wrapper
100%
100%
Cache hit/miss logging
100%
100%
Truncated hash in logs
100%
100%
Lazy directory creation
100%
100%
cache_enabled parameter
0%
100%
Avoiding anti-patterns: path-based cache, SRP violation, serialization
No path-based caching
100%
100%
No dataclasses.asdict()
0%
100%
Manual JSON serialization
0%
100%
UTF-8 with ensure_ascii=False
100%
100%
Corruption as cache miss
100%
100%
Pure processing function
0%
100%
Service layer separation
25%
100%
SHA-256 content hash
100%
100%
CLI cache toggle and corruption-resilient cache reads
--cache/--no-cache flags
80%
100%
SHA-256 content hash key
100%
100%
Chunked hash computation
100%
100%
Hash-named cache files
0%
100%
Pure processing function
100%
100%
Separate service layer
100%
100%
Cache hit/miss log messages
25%
100%
Truncated hash in logs
0%
100%
Corruption handled as miss
100%
100%
Lazy cache directory creation
100%
100%
5df943e
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.