content-hash-cache-pattern

content-hash-cache-pattern is a skill for Claude Code, Codex from arbisoft/ai-skillforge. It costs 30 tokens per session (1,282 once invoked), scanned A, original, no licence file.

A caching pattern that stores results of expensive file processing using a SHA-256 fingerprint of each file's contents. The fingerprint changes when the file content changes, so outdated results can be replaced.

In plain words
What is it for?
It helps design file-processing services with content-based caching and a separate service layer for cache handling.
Why use it?
It avoids processing unchanged files again while still invalidating cached results when their contents change, even if their paths move.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit It helps design file-processing services with content-based caching and a separate service layer for cache handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arbisoft/ai-skillforge/content-hash-cache-pattern
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add arbisoft/ai-skillforge --skill content-hash-cache-pattern
Clone the repo
git clone --depth 1 https://github.com/arbisoft/ai-skillforge

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for content-hash-cache-pattern

README.md
[![agentmods](https://agentmods.dev/badge/skills/arbisoft/ai-skillforge/content-hash-cache-pattern/github.svg)](https://agentmods.dev/skills/arbisoft/ai-skillforge/content-hash-cache-pattern)
Your own site
<a href="https://agentmods.dev/skills/arbisoft/ai-skillforge/content-hash-cache-pattern"><img src="https://agentmods.dev/badge/skills/arbisoft/ai-skillforge/content-hash-cache-pattern/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for content-hash-cache-pattern

Your own site · 80×15
<a href="https://agentmods.dev/skills/arbisoft/ai-skillforge/content-hash-cache-pattern"><img src="https://agentmods.dev/badge/skills/arbisoft/ai-skillforge/content-hash-cache-pattern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,282 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01282
Opus 5.5 $0.00012 $0.00513
Sonnet 5.5 $0.00006 $0.00256
Haiku 4.5 $0.00003 $0.00128

Measured 1mo ago against content hash cdef26f0fc59, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

content-hash-cache-pattern scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Claude/skills/content-hash-cache-pattern/SKILL.md · 162 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 162 lines · 30 tokens per session scan A cdef26f0fc59

Subscribe to this mod's changes

content-hash-cache-pattern is a skill published in the GitHub repository arbisoft/ai-skillforge (4 stars, last pushed 2mo ago), with no licence file. It adds 30 tokens to every session and 1,282 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

news-search

Search current news for a topic, company, competitor, or hook and return dated, attributed articles. Uses the newsjack CLI and Medialyst REST API when available, tries direct Medialyst MCP if the CLI is missing, and falls back to host web/browser search with explicit caveats only when neither cloud path is available.

elvisun/newsjack · 69 tokens

recipe-fullstack-implement

Orchestrate full-cycle implementation across backend and frontend layers.

shinpr/claude-code-workflows · 17 tokens

notion

Notion workspace integration for searching pages, managing databases, creating postmortems, and exporting RCA findings.

Arvo-AI/aurora · 23 tokens

agent-readiness-audit

Audit whether AI agents can actually use your product — docs, APIs, onboarding, errors, and discoverability, evaluated from a non-human user's perspective. Use when asked if a product is agent-ready, to audit a site or API for AI usability, to prepare for agentic traffic, or when agents keep failing against your…

mohitagw15856/pm-claude-skills · 117 tokens

mcp-server-spec

Design an MCP server for a product — the tool surface, auth model, and safety boundaries that make it genuinely usable by AI agents. Use when asked to spec an MCP server, expose a product to agents, design tools for Claude or other MCP clients, or review why an existing MCP server performs badly. Produces a complete…

mohitagw15856/pm-claude-skills · 101 tokens

output-error-direct-io

Fix direct I/O in Output SDK workflow functions. Use when workflow hangs, returns undefined, shows "workflow must be deterministic" errors, or when HTTP/API calls are made directly in workflow code.

growthxai/output · 45 tokens