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-data-handling

Skill by jeremylongshore

Handles ClickHouse data lifecycle work, including TTL expiration, GDPR and CCPA deletion, PII masking and audit logging. Aimed at developers who need retention rules or deletion handling in ClickHouse.

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

Install clickhouse-data-handling

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-data-handling ~/.claude/skills/clickhouse-data-handling

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

Step-by-step: install clickhouse-data-handling in Claude Code

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

About

This skill manages the data lifecycle in ClickHouse. It covers TTL-based expiration, GDPR and CCPA deletion, data masking, partition management and audit trails. It produces migration SQL and TypeScript client code that the user writes into their project, then checks the results against ClickHouse system tables such as system.mutations and system.parts.

The workflow has six steps: TTL expiration, deletion, masking views, DSAR export and delete helpers, an immutable audit_log table, and retention monitoring. It is written for developers who run ClickHouse and need to implement data retention or handle deletion requests. The source says it is designed for Claude Code and is released under the MIT license.

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

What it can do

  • TTL expirationAttaches TTL clauses so ClickHouse data expires on a set schedule.
  • GDPR and CCPA deletionCovers lightweight DELETE, ALTER TABLE DELETE and DROP PARTITION for erasure requests.
  • Masking viewsCreates views that hash identifiers with sipHash64 and show only email domains.
  • DSAR export and deleteTypeScript helpers loop over tables for one user_id and log each deletion.
  • Audit trailSets up an immutable, TTL-free audit_log table partitioned by month.
  • Retention monitoringJoins system.tables and system.parts to report table size, age and missing TTLs.

What you need

  • ClickHouse 23.3+ for lightweight DELETE FROM
  • Access to system.mutations and system.parts
  • @clickhouse/client for the TypeScript code
  • Existing ClickHouse tables, such as those from clickhouse-core-workflow-a
  • A written data-retention policy

Try asking

  • Add a 90-day TTL to my analytics.events table in ClickHouse.
  • Write a GDPR erasure function that deletes one user_id across all tables.
  • Create a masking view that hashes user emails in my ClickHouse schema.

Good to know

  • Lightweight DELETE FROM needs ClickHouse 23.3 or newer; older versions must use ALTER TABLE DELETE.
  • The source says sensitive data such as API keys and tokens should never be stored in ClickHouse.
  • Large exports can time out, so the source suggests adding LIMIT or exporting in batches.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

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

Inside the skill

Allowed tools: ReadWriteEdit

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

Alternatives to clickhouse-data-handling

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-data-handling: common questions

Does this skill handle GDPR deletion requests in ClickHouse?

Yes. It covers GDPR and CCPA deletion with lightweight DELETE, verifiable ALTER TABLE DELETE and DROP PARTITION, and confirms completion in system.mutations.

Which ClickHouse version is needed?

Lightweight DELETE FROM requires ClickHouse 23.3 or newer. Older versions must use mutation-based ALTER TABLE DELETE.

Should API keys or tokens be stored in ClickHouse?

No. The source classifies sensitive data such as API keys and tokens as data to keep out of ClickHouse and store in secret managers instead.

How do I install clickhouse-data-handling?

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

Is clickhouse-data-handling free?

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

Is clickhouse-data-handling safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to clickhouse-data-handling?

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

clickhouse-data-handling Install

Add to stack

Loading.