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.00534 |
| Opus 5 | $0.00011 | $0.00267 |
| Sonnet 5 | $0.00004 | $0.00107 |
| Haiku 4.5 | $0.00002 | $0.00053 |
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 5d 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 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.
- 5d 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 yesterday), licensed Apache-2.0. It adds 22 tokens to every session and 534 once invoked, about $0.0001 per session on Opus 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.
Other skills, from other repositories
doc-crafter
Especialista em documentação de código e APIs. Gera e atualiza especificações (OpenAPI/Swagger), diagramas Mermaid, README e JSDoc/Docstrings. Use para "documentar este endpoint", "atualizar swagger" ou "gerar documentação da função".
backend-patterns
Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.
api-debugging
Systematic approach to debugging REST APIs, HTTP errors, authentication issues, and network problems. Use when the user has API errors, status code issues, timeout problems, or needs help troubleshooting HTTP requests.
service-app-creator
Create or update the Service component of a NextClaw Mini App, choosing between Portable Rust/WASI Components and native-process MCP services. Use after nextclaw-app-creator selects a Service-backed app, or when the user explicitly asks for Service Actions, portable components, local files, external APIs, commands…
tg-bot-ops
A guide for operating and troubleshooting Telegram bots and systems that connect Telegram to an AI agent. It covers how messages arrive, get processed, and produce replies.
neo4j-getting-started-skill
Orchestrates zero-to-running-app in 8 stages — prerequisites → context → provision → model → load → explore → query → build. Each stage reads its own reference file. Supports HITL and fully autonomous operation. Use when starting a new Neo4j project from scratch, provisioning Aura, generating synthetic data, building…