Agent skill

Clickhouse System Queries

by FrankChen021 in FrankChen021/datastoria

Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries.

Custom licenceAuto-check passedDatabases

Install Clickhouse System Queries

skills CLI
$ npx skills add FrankChen021/datastoria --skill clickhouse-system-queries -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install FrankChen021/datastoria clickhouse-system-queries --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/FrankChen021/datastoria.git skills-src && mkdir -p .claude/skills && cp -r skills-src/resources/skills/clickhouse-system-queries .claude/skills/clickhouse-system-queries && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
clickhouse-system-queries
GitHub stars
327
Token cost
~731 tokens
SKILL.md length
221 words
Files
2 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
Custom licence

At a glance

Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries.

  • Works in 4 steps: Resolve target — identify system table… → Load reference — for system.query_log,… → Execute — choose the right tool → …
  • The user mentions system tables
  • SKILL.md covers System Metrics and ProfileEvents, Workflow and Guardrails
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Clickhouse System Queries is an agent skill from FrankChen021/datastoria. Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries. Use when the user mentions "system tables", "querylog", "ClickHouse monitoring", "cluster status", "slow queries", or asks to diagnose ClickHouse operational issues.

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/system-query-log.md`).

It sits in Databases, covering Data warehousing and Query optimization. It works with ClickHouse and SQL. The repository describes itself as: AI-native ClickHouse console for your cluster diagnostics and query generation, optimization and data visualization.

When your agent uses it

  • The user mentions system tables
  • ClickHouse monitoring
  • Asks to diagnose ClickHouse operational issues

Example prompts

  • “system tables”
  • “querylog”
  • “ClickHouse monitoring”
  • “/clickhouse-system-queries”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Resolve target — identify system table and intent. Inherit the most recent time window from conversation, or default to last 60 minutes.
  2. Load reference — for system.query_log, call skill_resource to load references/system-query-log.md before writing any SQL. For unsupported…
  3. Execute — choose the right tool
  4. Summarize with concise findings and next actions.

What it can do on your machine

Read from SKILL.md and the folder at commit d0859a2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are sql).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Clickhouse System Queries loads about 731 tokens when it runs, and up to ~1.3k if it reads all its reference files. Until then it costs about 81 tokens; SKILL.md has 221 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~731
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 221 words (~731 tokens).

“Use this skill when the user asks for operational inspection on ClickHouse system.* tables.”

— opening of SKILL.md by FrankChen021, Custom licence
name
clickhouse-system-queries
metadata.author
DataStoria
metadata.disable-slash-command
true

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in resources/skills/clickhouse-system-queries of FrankChen021/datastoria.

  • SKILL.md
  • references/system-query-log.md

Open the folder on GitHubat commit d0859a2

Compare with similar skills

Clickhouse System Queries next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Clickhouse System Queries compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Clickhouse System Queries this skillFrankChen021/datastoria327—~731Automated safety check: PassCustom licence
Pytorch Clickhousepytorch/test-infra113—~2.8kAutomated safety check: PassCustom licence
Clickhouse Logs Queriessupabase/supabase111k—~2.4kAutomated safety check: PassApache-2.0
Chdb SQLvemetric/vemetric3951 repos~1.2kAutomated safety check: PassApache-2.0
BisectClickHouse/ClickHouse50k—~1.4kAutomated safety check: PassApache-2.0
Webapp Buildersidequery/sidemantic129—~5.5kAutomated safety check: PassAGPL-3.0

Similar skills

  • Pytorch Clickhouse

    pytorch/test-infra

    Load this FIRST whenever working with PyTorch CI data (any pytorch/ org repo), the torchci/HUD codebase, or the PyTorch HUD ClickHouse database.

    113 GitHub stars~2.8k tokensUpdated today
    DatabasesAuto-check passed
  • Clickhouse Logs Queries

    supabase/supabase

    Official

    Write, review, and migrate Supabase logs queries against the ClickHouse-backed logs table (the logs.all.otel analytics endpoint).

    111k GitHub stars~2.4k tokensUpdated today
    DatabasesAuto-check passed
  • Chdb SQL

    vemetric/vemetric

    A skill your agent uses when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse…

    395 GitHub starsUsed in 1 repo~1.2k tokens
    DatabasesAuto-check passed
  • Bisect

    ClickHouse/ClickHouse

    Bisect a ClickHouse regression using pre-built master binaries from CI.

    50k GitHub stars~1.4k tokensUpdated today
    DatabasesAuto-check passed
  • Webapp Builder

    sidequery/sidemantic

    Build interactive analytics webapps, demos, dashboards, or embedded app surfaces from Sidemantic semantic models using copyable component primitives and deterministic query inspection.

    129 GitHub stars~5.5k tokensUpdated 2 days ago
    DatabasesAuto-check passed
  • Cpu Profile

    ClickHouse/ClickHouse

    Profile a ClickHouse query using the sampling query profiler and system.tracelog.

    50k GitHub stars~1.9k tokensUpdated today
    DatabasesAuto-check: notes

More from FrankChen021/datastoria

  • Visualization

    FrankChen021/datastoria

    Rules for charts and visualization. An agent skill from FrankChen021/datastoria.

    327 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Diagnose Clickhouse Errors

    FrankChen021/datastoria

    Diagnose ClickHouse runtime query failures when the user wants database-level cause and fix guidance from an error or numeric error code, not source-code root cause analysis.

    327 GitHub stars~610 tokensUpdated 2 mo ago
    Auto-check passed
  • SQL Expert

    FrankChen021/datastoria

    Expert system for generating, validating, and optimizing ClickHouse SQL.

    327 GitHub stars~919 tokensUpdated 2 mo ago
    Auto-check passed
  • Diagnose Clickhouse Clusters

    FrankChen021/datastoria

    Diagnose ClickHouse cluster health and provide concrete remediation.

    327 GitHub stars~1.6k tokensUpdated 2 mo ago
    Auto-check passed
  • Optimize Clickhouse SQL

    FrankChen021/datastoria

    Optimize slow queries, analyze SQL performance, and collect evidence for expensive workloads.

    327 GitHub stars~1.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Source Code Inspection

    FrankChen021/datastoria

    Investigate application or repository source code with searchfile and readfile to explain behavior, trace root causes of runtime or query errors, and answer with precise file citations.

    327 GitHub stars~453 tokensUpdated 2 mo ago
    Auto-check passed

Works with

Categories

Questions about Clickhouse System Queries

What does Clickhouse System Queries do?

Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries. Clickhouse System Queries is an agent skill from FrankChen021/datastoria. Query ClickHouse system tables to inspect query logs, monitor cluster health, check replication status, and analyze slow queries.

When should I use Clickhouse System Queries?

Clickhouse System Queries fits situations like: the user mentions system tables; clickHouse monitoring; asks to diagnose ClickHouse operational issues.

How do I install Clickhouse System Queries in Claude Code?

Run `npx skills add FrankChen021/datastoria --skill clickhouse-system-queries -a claude-code`. Or copy the skill folder (resources/skills/clickhouse-system-queries in FrankChen021/datastoria) into .claude/skills/clickhouse-system-queries in your project. Claude Code loads it when a task matches its description.

How do I install Clickhouse System Queries in Codex?

Run `npx skills add FrankChen021/datastoria --skill clickhouse-system-queries -a codex`. Or copy the skill folder (resources/skills/clickhouse-system-queries in FrankChen021/datastoria) into .agents/skills/clickhouse-system-queries in your project. Codex loads it when a task matches its description.

Can I use Clickhouse System Queries in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add FrankChen021/datastoria --skill clickhouse-system-queries -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clickhouse-system-queries, .gemini/skills/clickhouse-system-queries, .github/skills/clickhouse-system-queries and .opencode/skills/clickhouse-system-queries in your project.

What does Clickhouse System Queries need to run?

SKILL.md names no scripts, command-line tools or credentials: Clickhouse System Queries is instructions for the agent only.

Does Clickhouse System Queries access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Clickhouse System Queries safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Clickhouse System Queries use?

Clickhouse System Queries has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Clickhouse System Queries use?

About 731 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 560 tokens, read only when the agent opens those files.

What are the alternatives to Clickhouse System Queries?

Skills that share tags, products or a category with Clickhouse System Queries: Pytorch Clickhouse (pytorch/test-infra, 113 stars), Clickhouse Logs Queries (supabase/supabase, 111k stars), Chdb SQL (vemetric/vemetric, 395 stars) and Bisect (ClickHouse/ClickHouse, 50k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Clickhouse System Queries?

FrankChen021 (a GitHub user) maintains it in FrankChen021/datastoria, which has 327 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on July 21, 2026.

Source: FrankChen021/datastoria on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.