CtrlK
BlogDocsLog inGet started
Tessl Logo

content-hash-cache-pattern

Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

68

1.44x
Quality

52%

Does it follow best practices?

Impact

100%

1.44x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/content-hash-cache-pattern/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

100%

20%

Research Document Processing Pipeline

Content-hash caching with service layer separation

Criteria
Without context
With context

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%

100%

44%

Fix a Fragile File Processing Cache

Avoiding anti-patterns: path-based cache, SRP violation, serialization

Criteria
Without context
With context

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%

100%

27%

Batch Log Analyzer with Resumable Processing

CLI cache toggle and corruption-resilient cache reads

Criteria
Without context
With context

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

Repository
affaan-m/everything-claude-code
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.