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 Altinity/altinity-skills --skill altinity-expert-clickhouse-cachesgit clone --depth 1 https://github.com/Altinity/altinity-skillsWrote 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/altinity/altinity-skills/altinity-expert-clickhouse-caches)<a href="https://agentmods.dev/skills/altinity/altinity-skills/altinity-expert-clickhouse-caches"><img src="https://agentmods.dev/badge/skills/altinity/altinity-skills/altinity-expert-clickhouse-caches/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/altinity/altinity-skills/altinity-expert-clickhouse-caches"><img src="https://agentmods.dev/badge/skills/altinity/altinity-skills/altinity-expert-clickhouse-caches.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.00036 | $0.00484 |
| Opus 5 | $0.00018 | $0.00242 |
| Sonnet 5 | $0.00007 | $0.00097 |
| Haiku 4.5 | $0.00004 | $0.00048 |
Grade A, and why
altinity-expert-clickhouse-caches 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 10d 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
Cache Analysis and Tuning
Analyze ClickHouse cache systems: mark cache, uncompressed cache, query cache, and compiled expression cache.
Diagnostics
Run all queries from checks.sql in this skill's directory and analyze the results.
Cache Sizing Recommendations
| Cache | Typical Size | Notes |
|---|---|---|
| Mark Cache | 5-10% of RAM | Higher if random access patterns |
| Uncompressed | 0 (disabled) or 5-10% | Enable only for specific workloads |
| Query Cache | 1-5GB | For repeated identical queries |
| Compiled Expression | 128MB-1GB | Higher for complex expressions |
Problem Investigation
Poor Mark Cache Hit Ratio
Possible causes:
- Cache too small for working set
- Queries scan many different tables
- Many small queries to cold data
Cache Too Large
If mark cache > 15% RAM:
Solutions:
- Reduce
index_granularityfor tables with excessive marks - Drop unused tables
- Reduce
mark_cache_sizesetting
Cross-Module Triggers
| Finding | Load Module | Reason |
|---|---|---|
| Cache using too much RAM | altinity-expert-clickhouse-memory |
Overall memory analysis |
| Poor hit ratio + high disk IO | altinity-expert-clickhouse-storage |
Disk bottleneck |
| Many marks per table | altinity-expert-clickhouse-schema |
Consider index_granularity tuning |
| Query cache misses | altinity-expert-clickhouse-reporting |
Query pattern analysis |
Settings Reference
| Setting | Scope | Notes |
|---|---|---|
mark_cache_size |
Server | Global mark cache limit |
uncompressed_cache_size |
Server | Set to 0 to disable |
use_uncompressed_cache |
Query | Enable per-query |
query_cache_max_size |
Server | Query result cache |
use_query_cache |
Query | Enable per-query |
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.
- 10d ago First seen · 70 lines · 36 tokens per session scan A fdb70e648c45
altinity-expert-clickhouse-caches is a skill published in the GitHub repository Altinity/altinity-skills (16 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 484 once invoked, about $0.0002 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-08-30.
Other skills, from other repositories
pinecone
Managed vector DB for production RAG and search.
redis-js
Work with the Upstash Redis JavaScript/TypeScript SDK for serverless Redis operations. Use for caching, session storage, rate limiting, leaderboards, full-text search (querying, filtering, aggregating with @upstash/redis search extension), and all Redis data structures. Supports automatic serialization/deserialization…
byted-milvus
Manages Milvus on Volcano Engine (Volcengine): provision/inspect/scale/delete clusters and run collection + CRUD/search operations via bundled CLIs. Use when the user mentions Milvus + Volcengine/Volcano Engine or asks to operate Milvus there.
vector-db
Vector database expert for embeddings, similarity search, RAG patterns, and indexing strategies.
redis-search
Redis Search guidance covering FT.CREATE schema design, field type selection (TEXT, TAG, NUMERIC, GEO, GEOSHAPE, VECTOR, JSON path), DIALECT 2 query syntax, FT.SEARCH / FT.AGGREGATE / FT.HYBRID command selection, vector similarity with HNSW or FLAT, hybrid retrieval combining lexical and vector ranking, RAG pipelines…
bun-redis
Use when working with Redis in Bun (ioredis, Upstash), caching, pub/sub, session storage, or key-value operations.