Skip to content
Back to skills

Mainframe Clickhouse

ASecurity

ClickHouse queries, ingestion, schema, cost, deletion, and recovery. Use for ClickHouse integration and operations.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
ai-agentssqldebuggingdatabasedocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add CATWILLgh/MAINFRAME --skill mainframe-clickhouse --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mainframe Clickhouse?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mainframe Clickhouse
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/catwillgh-mainframe-clickhouse/badge)](https://www.skillsdirectory.com/skills/catwillgh-mainframe-clickhouse)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mainframe-clickhouse
description: ClickHouse queries, ingestion, schema, cost, deletion, and recovery. Use for ClickHouse integration and operations.
---

# Use ClickHouse within a verified boundary

Before connecting, resolve the endpoint, routing or tunnel, intended environment,
database/table, credential identity, and requested operation from applicable
project configuration and caller authority. A credential permits authentication;
it does not authorize an operation. Use `mainframe-infrastructure` for broader
deployment coordination and `mainframe-secrets` for credential delivery when
available. Do not print credentials or dump connection configuration.

Establish the boundary before executing SQL:

| Target | Operating boundary |
| --- | --- |
| Production | Scoped authorized reads with resource bounds; changes require authority for the exact operation and an adequate recovery boundary. |
| Shared staging/test | Preserve other users, persistent data, and shared capacity. Test naming does not authorize resets. |
| Verified disposable fixture | Create, change, or remove only the resources covered by explicit disposal authority; use representative tests without unnecessary production ceremony. |
| Unknown or conflicting identity | Do not write, reset, or run an expensive query. Resolve identity through configuration and the smallest permitted metadata read; continue offline work. |

Loopback addresses, local clients, containers, SSH tunnels, a database named
`test`, and a read-only account do not prove a disposable server. Verify the
actual destination and storage ownership. A separate test schema on a production
cluster still shares production resources. Reuse established authority; do not
ask again merely because the operation is sensitive. Do not invent ClickHouse
disposal permission from a policy covering another database.

## Read only the relevant method

| Current decision | Read |
| --- | --- |
| Target ambiguity, environment classification, or permission boundary | [Target and authority](references/target-authority.md) |
| SQL analysis, index/pruning benefit, diagnostics, query correctness, or resource limits | [Safe queries](references/queries.md) |
| Ingestion, retries, schema/index rollout, updates, deletes, or cluster-wide changes | [Writes and schema](references/writes.md) |
| Capacity, maintenance, incident cancellation, backup, or restore | [Operations and recovery](references/operations.md) |
| Version-sensitive syntax, settings, engine behavior, or missing details | [Official source map](references/sources.md), then applicable current documentation |

Use fully qualified targets and the established client. Inspect the actual
version, engine, effective settings, and topology only as needed for the task.
Do not transfer PostgreSQL transaction, uniqueness, or rollback assumptions to
ClickHouse. A read-only query can still overload a cluster or expose sensitive
data. A client success response may acknowledge queued work rather than its
completion.

Never bypass a denial by switching to an admin identity, disabling limits,
guessing another endpoint, or adding `ON CLUSTER`. Do not use table drops,
partition removal, forced merges, Keeper edits, or data-file deletion as generic
debugging. If an operation's outcome is uncertain, establish its status before
retrying or declaring failure. Stop only the blocked action and return the exact
missing fact or authority.

Complete the authorized result with proportionate evidence: identify the target,
scope, applied resource/recovery bounds, observed result, and material uncertainty.
Distinguish accepted work, local completion, replica/shard completion, reader
correctness, and physical removal when relevant. Do not claim production safety
from a local test or a successful health check.

Files in this skill

  • SKILL.md3.7 KB
  • references/operations.md5.1 KB
  • references/queries.md5.2 KB
  • references/sources.md3.2 KB
  • references/target-authority.md3.1 KB
  • references/writes.md6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.