Agent skill

Diagnose Clickhouse Errors

by FrankChen021 in 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.

Custom licenceAuto-check passedDatabases

Install Diagnose Clickhouse Errors

skills CLI
$ npx skills add FrankChen021/datastoria --skill diagnose-clickhouse-errors -a claude-code

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

GitHub CLI
$ gh skill install FrankChen021/datastoria diagnose-clickhouse-errors --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/diagnose-clickhouse-errors .claude/skills/diagnose-clickhouse-errors && 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
diagnose-clickhouse-errors
GitHub stars
327
Token cost
~610 tokens
SKILL.md length
305 words
Files
6 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
Custom licence

At a glance

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.

  • Works in 6 steps: Determine whether the user is asking for… → Extract the numeric ClickHouse error… → If no numeric error code is detected and… → …
  • Wants database-level cause and fix guidance from an error
  • SKILL.md covers When Not To Use, Workflow and Response format
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Diagnose Clickhouse Errors is an agent skill from 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.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/115.md`, `references/342.md` and `references/42.md`).

It sits in Databases, covering Data warehousing and Root cause analysis. 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

  • Wants database-level cause and fix guidance from an error
  • Numeric error code
  • Not source-code root cause analysis

Example prompts

  • “/diagnose-clickhouse-errors”

Workflow steps

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

  1. Determine whether the user is asking for database-level diagnosis or source-code investigation. If the primary goal is source-code…
  2. Extract the numeric ClickHouse error code from the conversation or error text (e.g. Code: 60).
  3. If no numeric error code is detected and the user is asking for database-level diagnosis, call ask_user_question with exactly one…
  4. Load references/.md with skill_resource (e.g. references/60.md) and follow its workflow.
  5. If the orchestrator provides database context facts, use them when they materially change the cause or fix.
  6. If skill_resource returns nothing, use your ClickHouse knowledge to provide a best-effort response.

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.

    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

Diagnose Clickhouse Errors loads about 610 tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 50 tokens; SKILL.md has 305 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~610
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.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 305 words (~610 tokens).

“Do not use this skill when the user's primary goal is:”

— opening of SKILL.md by FrankChen021, Custom licence
name
diagnose-clickhouse-errors
metadata.author
DataStoria

Read the full SKILL.md on GitHub

Files

SKILL.md and 5 other files (references) in resources/skills/diagnose-clickhouse-errors of FrankChen021/datastoria.

  • SKILL.md
  • references/115.md
  • references/342.md
  • references/42.md
  • references/47.md
  • references/60.md

Open the folder on GitHubat commit d0859a2

Compare with similar skills

Diagnose Clickhouse Errors 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.

Diagnose Clickhouse Errors compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Diagnose Clickhouse Errors this skillFrankChen021/datastoria327—~610Automated safety check: PassCustom licence
Clickhouse Logs Queriessupabase/supabase111k—~2.4kAutomated safety check: PassApache-2.0
Chdb SQLvemetric/vemetric3941 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
Cpu ProfileClickHouse/ClickHouse50k—~1.9kAutomated safety check: NotesApache-2.0

Similar skills

  • 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…

    394 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 yesterday
    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
  • Modeler

    sidequery/sidemantic

    Build, validate, and manage semantic models using Sidemantic.

    129 GitHub stars~4.2k tokensUpdated yesterday
    DatabasesAuto-check passed

More from FrankChen021/datastoria

  • Clickhouse System Queries

    FrankChen021/datastoria

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

    327 GitHub stars~731 tokensUpdated 2 mo ago
    Auto-check passed
  • 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
  • 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 Diagnose Clickhouse Errors

What does Diagnose Clickhouse Errors do?

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. Diagnose Clickhouse Errors is an agent skill from 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.

When should I use Diagnose Clickhouse Errors?

Diagnose Clickhouse Errors fits situations like: wants database-level cause and fix guidance from an error; numeric error code; not source-code root cause analysis.

How do I install Diagnose Clickhouse Errors in Claude Code?

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

How do I install Diagnose Clickhouse Errors in Codex?

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

Can I use Diagnose Clickhouse Errors 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 diagnose-clickhouse-errors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diagnose-clickhouse-errors, .gemini/skills/diagnose-clickhouse-errors, .github/skills/diagnose-clickhouse-errors and .opencode/skills/diagnose-clickhouse-errors in your project.

What does Diagnose Clickhouse Errors need to run?

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

Does Diagnose Clickhouse Errors 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 Diagnose Clickhouse Errors 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 Diagnose Clickhouse Errors use?

Diagnose Clickhouse Errors 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 Diagnose Clickhouse Errors use?

About 610 tokens (SKILL.md is roughly 2.4k 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 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Diagnose Clickhouse Errors?

Skills that share tags, products or a category with Diagnose Clickhouse Errors: Clickhouse Logs Queries (supabase/supabase, 111k stars), Chdb SQL (vemetric/vemetric, 394 stars), Bisect (ClickHouse/ClickHouse, 50k stars) and Webapp Builder (sidequery/sidemantic, 129 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Diagnose Clickhouse Errors?

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.