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.
npx skills add jxoesneon/Ciel --skill content-hash-cache-patterngit clone --depth 1 https://github.com/jxoesneon/CielWrote 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.
[](https://agentmods.dev/skills/jxoesneon/ciel/content-hash-cache-pattern)<a href="https://agentmods.dev/skills/jxoesneon/ciel/content-hash-cache-pattern"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/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.
<a href="https://agentmods.dev/skills/jxoesneon/ciel/content-hash-cache-pattern"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/content-hash-cache-pattern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00022 | $0.00424 |
| Opus 5.5 | $0.00009 | $0.00170 |
| Sonnet 5.5 | $0.00004 | $0.00085 |
| Haiku 4.5 | $0.00002 | $0.00042 |
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 2mo 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.
What it actually says
CIEL ADAPTATION: Content-Hash Cache (I/O Optimization)
This skill provides a standard architectural pattern for caching the results of expensive, deterministic file processing operations (e.g., PDF parsing, OCR, large-file indexing).
Core Pattern: Content over Path
Unlike traditional path-based caching, this pattern uses the SHA-256 hash of the file content as the cache key.
- Rename/Move Resilience: Moving a file results in a cache hit.
- Automatic Invalidation: Changing a single byte in a file triggers a cache miss.
- No Index File: Cache files are named
{hash}.json, allowing O(1) lookup without a central registry.
Implementation Standard
- Compute Hash: Use chunked reads (64KB) for large files to avoid memory exhaustion.
- Read/Check: Check if
.cache/{hash}.jsonexists before processing. - Process (Pure): The processing logic itself should be a pure function with no knowledge of the cache.
- Write: Store the result alongside the
source_pathandfile_hashin a structured JSON file.
Design Decisions
- Fail Gracefully: Treat corrupted or malformed JSON in the cache as a miss; never crash.
- Service Layer: Implement caching as a wrapper/service layer around the core processing logic.
- Chunked I/O: Mandatory for files >10MB to maintain efficiency.
Anti-Patterns
- Path-Based Caching: Caching by filename, which leads to stale data after edits or renames.
- In-Memory Only: Using simple dictionaries for cache that disappear after a session restart.
- Impure Cache Hooks: Mixing caching logic directly into business logic/parsers.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago Changed · -13 lines 16acacf60a2c
- 2mo ago First seen · 53 lines · 22 tokens per session scan A 90e298e49707
content-hash-cache-pattern is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 22 tokens to every session and 424 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.
content-hash-cache-pattern compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| content-hash-cache-patternjxoesneon/Ciel | Skill | 1 | 1mo ago | Apache-2.0 | A | 22 | Claude Code, Codex |
| principle-boundary-disciplinewatt-mind/factory | Skill | 24 | yesterday | Apache-2.0 | A | 43 | Claude Code |
| principle-redesign-from-first-principleswatt-mind/factory | Skill | 24 | yesterday | Apache-2.0 | A | 40 | Claude Code |
| principle-make-operations-idempotentwatt-mind/factory | Skill | 24 | yesterday | Apache-2.0 | A | 43 | Claude Code |
| principle-model-the-domainwatt-mind/factory | Skill | 24 | yesterday | Apache-2.0 | A | 37 | Claude Code |
| doc-crafterrcelebrone/DotAgents | Skill | 15 | 9d ago | none | A | 62 | Claude Code, Codex |
| backend-patternsKacper0199/Opencode-Ultrathinker | Skill | 2 | 6mo ago | none | A | 31 | Claude Code, Codex |