Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

altinity-clickhouse-expertAltinity CLIckhouse 专家

Agent Skill

altinity-clickhouse-expert 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

466

周安装

20

GitHub Stars

5

下载量

163
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:altinity-clickhouse-expert(Altinity CLIckhouse 专家)
来源仓库:https://github.com/altinity/skills
仓库路径:skills/altinity-clickhouse-expert
安装命令:
npx skills add https://github.com/altinity/skills --skill altinity-clickhouse-expert
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/altinity/skills --skill altinity-clickhouse-expert

简介

Altinity ClickHouse 专家用于快速诊断和分析 ClickHouse 数据库问题。

  • 适用于需要直接运行 SQL 查询、分析结果并生成可复现报告的场景。
  • 通过调用后端 CLI 或 MCP 执行查询,自动输出根因分析和修复建议。
  • 安装需确认后端连接方式,使用前应验证权限及是否允许命令执行和文件读写。
  • 建议结合 checks.sql 等内置脚本进行系统化问题排查与验证。

SKILL.md

ClickHouse Analyst (Sub-Agent Architecture)

This skill uses focused agents (often run in waves) to diagnose ClickHouse issues quickly. Each agent:

  1. Runs SQL queries directly against ClickHouse (via a backend: CLI or MCP)
  2. Analyzes results with an LLM
  3. Produces reproducible artifacts and an RCA-style report

How to Use

Pick an execution backend (do this first)

Before running any agents, decide how queries will be executed in this environment. Then load exactly one backend doc and follow it for execution details.

Choose a backend using these rules:

  • BACKEND-MCP.md use when you cannot spawn/exec processes and cannot run clickhouse-client, but you do have an MCP ClickHouse connector tool available (WebUI-style environments).
  • BACKEND-CLI.md use when you can spawn/exec locally and have clickhouse-client available (terminal/SSH environments).

Prefer BACKEND-CLI when a spawn/exec tool is available. Prefer BACKEND-MCP when process spawning is restricted or as a fallback if clickhouse-client is not available or has connectivity problems.

Map symptoms to agents (wave 1 → wave 2+)

User SymptomAgents to run (often wave 2)
"OOM" / "memory" / "MemoryTracker"memory, reporting
"slow queries" / "timeouts" / "latency"reporting, memory
"slow inserts" / "insert lag"ingestion, merges, storage
"too many parts" / "merge backlog"merges, ingestion, storage
"replication lag" / "readonly replica"replication, merges, storage
"disk full" / "storage"storage, ingestion
"errors" / "exceptions" / "failures"errors, reporting
"mutations" / "ALTER UPDATE/DELETE"mutations, merges, storage
"dictionary" / "dictionaries"dictionaries, memory, errors
"cache" / "caches"caches, reporting
"metrics" / "saturation"metrics, overview
"server log" / "text_log"text_log, errors
"log tables" / "query_log too big"logs, storage
"schema" / "partitioning" / "bad ORDER BY"schema, reporting, merges
"health check" / "audit" / "status"overview

Coordinator loop (adaptive chaining)

When coordinating as an LLM, prefer this loop over a fixed “run everything” approach:

  1. Start an artifact for the user’s important question (analysis or proposal).
  2. Run wave 1: overview (triage).
  3. Run wave 2: pick 2–3 targeted agents from the table above.
  4. Optional wave 3: 1–2 deep dives (schema/mutations/dictionaries) or dynamic follow-up queries if needed.
  5. Stop early when the highest-severity finding has concrete evidence and actions.
  6. Produce a single RCA-style report + one consolidated artifact (see backend docs for capture details).

Available Agents

AgentPurposePrimary Tables
overviewQuick health triageprocesses, parts, metrics, disks
memoryOOM, MemoryTracker, RAM pressureprocesses, query_log, asynchronous_metrics
mergesParts pressure, merge backlogmerges, part_log, parts
replicationLag, readonly replicas, Keeperreplicas, replication_queue, text_log
reportingQuery performance, latencyprocesses, query_log
storageDisk space, IO, table sizesdisks, parts
errorsExceptions, failuresquery_log, text_log, part_log
ingestionINSERT performance, part creationprocesses, query_log, part_log, query_views_log
schemaTable design review, partition sizingparts, columns, tables
metricsSaturation and key metricsmetrics, events, asynchronous_metrics
cachesCache efficiencyevents, metrics, asynchronous_metrics
dictionariesDictionary healthdictionaries, text_log
mutationsMutations backlogmutations
text_logServer logstext_log
logsSystem log tablesparts, tables

Agent Files

Each agent has two files in agents/<name>/:

  • queries.sql - SQL queries executed by the selected backend (semicolon-delimited)
  • prompt.md - Analysis prompt with severity rules and output format

Output Format

Final RCA report should include:

  • Summary: Top findings by severity (Critical > Major > Moderate)
  • Evidence: Key metrics and query outputs
  • Root Cause: Most likely explanation
  • Actions: Concrete next steps
  • Save: If filesystem is available, write report to reports/<timestamp>-<topic>.md; otherwise include it inline in the final response.

Safety Rules

All SQL queries follow these rules (already baked into agent queries):

  • Prefer explicit columns; allow SELECT * for system.* tables where schemas vary by ClickHouse version
  • Default LIMIT 100 or less
  • Time-bounded *_log queries (1h default, 24h max)
  • Aggregated results (top-N, percentiles) instead of raw dumps

Runtime Knobs

Runtime knobs are backend-specific; see BACKEND-CLI.md / BACKEND-MCP.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.72%
按下载量换算48

Codex

25.64%
按下载量换算42

Gemini CLI

17.75%
按下载量换算29

Antigravity

12.07%
按下载量换算20

cline

8.33%
按下载量换算14

OpenCode

3.88%
按下载量换算6

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/altinity/skills --skill altinity-clickhouse-expert;npx skills add altinity/skills --skill "altinity-clickhouse-expert" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills