Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clickhouse-cost-tuning

Skill by jeremylongshore

Optimize ClickHouse Cloud costs through storage, compression, TTL, compute and query changes. Built for people analyzing ClickHouse Cloud bills or trying to reduce spend.

  • Score 79
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clickhouse-cost-tuning

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clickhouse-cost-tuning ~/.claude/skills/clickhouse-cost-tuning

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clickhouse-cost-tuning in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

clickhouse-cost-tuning is an agent skill for ClickHouse Cloud bills. It works from the largest cost driver to the fixes. It first lists the billing axes (compute, storage, network and backups), then uses system.parts to rank storage by table and column. Suggested fixes include compression codecs such as ZSTD(3), Delta and DoubleDelta, TTL policies for hot, cold and deleted data, and compute settings such as auto-scaling, idle suspension, max_threads, max_memory_usage and async_insert.

The skill also covers query efficiency. It looks for the most-scanned queries in system.query_log and suggests materialized views and PREWHERE. A monitoring wrapper tracks read bytes and duration. Detailed queries, a cost checklist and three worked scenarios are kept in reference files. The skill is aimed at people who analyze ClickHouse Cloud bills, reduce storage costs or tune compute use. It is published by Jeremy Longshore under the MIT license and is designed for Claude Code.

Written from the project's SKILL.md and checked against it.

What it can do

  • Storage breakdownRanks ClickHouse tables and columns by compressed size and compression ratio.
  • Compression codecsSuggests ALTER TABLE ... MODIFY COLUMN ... CODEC statements for bloated columns.
  • TTL and partition dropsPlans tiered hot, cold and delete TTL policies and drops of stale partitions.
  • Compute settingsCovers auto-scaling bounds, idle timeout and per-query core and memory limits.
  • Expensive query reviewFinds the most expensive queries in system.query_log with materialized view or PREWHERE fixes.
  • Cost monitoring wrapperProvides a TypeScript wrapper that tracks per-query read bytes, rows and duration.

What you need

  • ClickHouse Cloud account with billing access
  • Current data volumes and query patterns

Try asking

  • Break down my ClickHouse storage by table and column and rank the biggest costs.
  • Suggest CODEC settings for the bloated text and JSON columns in my ClickHouse tables.
  • Find my most expensive ClickHouse queries in system.query_log and suggest fixes.

Good to know

  • The skill's allowed tools are limited to Read.
  • Full queries and examples are in separate reference files rather than in the main skill text.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/.curated/clickhouse-cost-tuning/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read

  • SKILL.md6 KB
  • references/examples.md2 KB
  • references/implementation.md6 KB

Alternatives to clickhouse-cost-tuning

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

clickhouse-cost-tuning: common questions

What does ClickHouse cost tuning with this skill change?

It focuses on storage optimization, compression tuning, TTL policies, compute scaling and query efficiency to lower ClickHouse Cloud bills.

Which ClickHouse cost is usually the biggest?

The source says compute is usually the biggest cost, not storage, because ClickHouse compresses data 10-20x.

Does the skill include worked examples?

Yes, it lists three scenarios: a doubled storage bill, a compute-driven dashboard query and old data that is never queried.

How do I install clickhouse-cost-tuning?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clickhouse-cost-tuning free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clickhouse-cost-tuning safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to clickhouse-cost-tuning?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

clickhouse-cost-tuning Install

Add to stack

Loading.