LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

content-hash-cache-pattern - Content-Hash File Cache Pattern

Caches file processing results using SHA-256 content hashes with service layer separation and auto-invalidation.

Tags

Updated: 2026-09-16

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Compute SHA-256 file content hash
  • Read JSON cache entry by hash
  • Write cache entry to JSON file
  • Wrap processing logic in service layer

Inputs

  • Target file path
  • Cache directory path
  • Cache enablement flag

Outputs

  • JSON cache entry file
  • Extracted document result
  • Cache hit or miss log

Requirements

  • File system access
  • Python runtime environment

Source

  • Spec: SKILL.md
domain/skills
artifact/skill
source/skills-everything-cc
content-hash
caching
file-processing
Compute SHA-256 file content hash
Read JSON cache entry by hash
Write cache entry to JSON file
Wrap processing logic in service layer
Target file path
Cache directory path
Cache enablement flag
JSON cache entry file
Extracted document result
Cache hit or miss log