Writes raw ClickHouse SQL for SigNoz dashboard panels (timeseries, value, table) when the builder UI cannot express custom joins, window functions, regex extraction, or advanced aggregations.
Ships in signoz. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when the user asks for SigNoz queries involving:
If the user asks for a dashboard panel but does not mention ClickHouse, still use this skill.
Identify whether the request is about logs, traces, or metrics.
If the request is ambiguous, ask the user to clarify.
Before writing any query, do these reads in order for the detected signal.
signoz://dashboard/clickhouse-schema-for-logssignoz://dashboard/clickhouse-schema-for-tracessignoz://dashboard/clickhouse-schema-for-metricssignoz://dashboard/clickhouse-logs-examplesignoz://dashboard/clickhouse-traces-examplesignoz://dashboard/clickhouse-metrics-examplereferences/clickhouse-logs-reference.md
or
references/clickhouse-traces-reference.md.
It holds the optimization patterns, attribute access syntax, dashboard
templates, and validation checklist that the resources do not state.
Metrics has no local reference; reads 1 and 2 are its full guide.Where an examples resource gives a column a different name or type than the schema resource, use the schema resource. The schema resource is a snapshot of the migrations bundled with the MCP server, so it can lag the tenant: a column or index that a local reference names and the snapshot lacks can still exist on the tenant. When the tenant rejects a table or column, follow the tenant's error.
Metrics: where a Workflow step names the reference, build from the examples resource and check column names and types against the schema resource.
The metrics examples assume a cumulative counter, underscore label names such
as service_name, and one join shape. A query that assumes wrong returns no
rows, or a fraction of the true value, without an error. For a metrics query:
signoz_list_metrics with the metric name and read its temporality.
For a Delta counter, filter temporality = 'Delta' and compute the rate
as sum(value) / <bucket seconds>. The lagInFrame difference in the
examples is for cumulative counters only.signoz_get_field_keys with signal: "metrics" and the metric name.
Use the label names it returns, exactly as spelled, in
JSONExtractString(labels, '<name>'): one tenant stores service.name,
another service_name.distributed_samples_v4 joined directly to
the label subquery on the local time_series_v4* table, in one SELECT.
If the samples are aggregated in a subquery before the join, read the
labels from distributed_time_series_v4*. On a sharded cluster the local
table holds only part of the series, and the join drops the rest.signoz_execute_builder_query as a
clickhouse_sql query over a short window, and run signoz_query_metrics
for the same metric, window, step, filter, and grouping. Compare one
group: the final values when the builder can express the same
calculation, otherwise the per-step aggregation the SQL builds on. If
they differ, or the SQL returns no rows, fix the query before giving it
to the user. If the tools are unavailable, say the query was not checked.If the client cannot read signoz:// resources in this session, use the
local reference for logs and traces. For metrics, tell the user that the
metrics schema could not be read; do not guess table or column names.
(ts, value) for a chart over time.value for a stat or counter widget.UInt64 in nanoseconds.$start_timestamp_nano and $end_timestamp_nano.$start_timestamp and $end_timestamp.fromUnixTimestamp64Nano(timestamp).signoz_logs.distributed_logs_v2.signoz_logs.distributed_logs_v2_resource.DateTime64(9).$start_datetime and $end_datetime.$start_timestamp and $end_timestamp.signoz_traces.distributed_signoz_index_v3.signoz_traces.distributed_traces_v3_resource.ts_bucket_start BETWEEN $start_timestamp - 1800 AND $end_timestamp.IN / JOIN whose subquery reads a distributed table: with
distributed_product_mode='deny' it fails. Prefer the time-bounded fingerprint
GLOBAL IN pattern or a local subquery table. Use GLOBAL JOIN only for a
demonstrably small, bounded RHS; it broadcasts that dataset to every shard.GROUP BY, including computed
projections such as JSONExtractString(body, ...).$start_datetime or $end_datetime.$start_timestamp_nano or $end_timestamp_nano.timestamp compared with an epoch-millisecond number: the column is
DateTime64(9), so timestamp BETWEEN 1791920500000 AND ... fails with
Decimal math overflow. Use $start_datetime and $end_datetime, or
toDateTime64(<epoch seconds>, 9) for a literal.= or != on attributes_number['key'] with an integer literal: the map
values are Float64, so attributes_number['http.status_code'] != 200
fails with Bad get: has UInt64, requested Float64. Write 200.0 or
toFloat64(200).signoz_logs.logs, bare logs, or distributed_logs;
always use signoz_logs.distributed_logs_v2.resources_string['service.name'] instead of
resource_string_service$$name.Every generated query MUST end with a SETTINGS clause for monitoring:
SELECT ...
FROM ...
WHERE ...
SETTINGS log_comment = 'signoz-writing-clickhouse-queries skill | YYYY-MM-DD'
Replace YYYY-MM-DD with today's date (e.g., 2026-04-03). If the query
already has a SETTINGS clause, append log_comment to it with a comma.
SETTINGS log_comment attribution clause.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/signoz:signoz-writing-clickhouse-queriesfrom signoz
signoz@otelyssey is listed by using-system/otelyssey — review the source before installing
npx claudepluginhub using-system/otelyssey --plugin signoz13 skills in this plugin
/signoz-creating-alertsCreate a new SigNoz alert rule from a natural-language intent: threshold, anomaly, log-volume, error-rate, latency, or absent-data alerts across metrics, logs, traces, and exceptions. Make sure to use this skill whenever the user says "alert me when…", "notify me if…", "set up monitoring for…", "page me on…", "create an alert for…", or asks for a new alert/notification rule, even if they don't say the word "alert" explicitly. Also use it when someone asks to be notified about error rates, latency spikes, log volume, CPU/memory pressure, or anomalous behavior on a service or host.
/signoz-creating-dashboardsCreate a new SigNoz dashboard from a natural-language intent: import a curated template (PostgreSQL, Redis, JVM, k8s, hostmetrics, APM, LLM, etc.) when one fits, or build a custom dashboard from scratch with metric / trace / log panels. Make sure to use this skill whenever the user says "create a dashboard for…", "set up monitoring for…", "build me a dashboard…", "I need observability for…", "import a dashboard template", or asks to track / visualize a service, database, cluster, or AI/LLM platform, even if they don't explicitly say "dashboard". Also use it when someone wants to "monitor", "watch", or "see metrics for" a technology and the natural answer is a dashboard.
/signoz-explaining-alertsDescribe what an existing SigNoz alert rule does in plain language: the signal it watches, the threshold and evaluation behavior, the notification routing, and a one-line fire-frequency summary so the user knows whether the alert has been active. Make sure to use this skill whenever the user asks "what does this alert do", "explain alert X", "walk me through this rule", "how does my [Y] alert work", "is this alert configured correctly", or otherwise asks for an interpretation of an existing alert's configuration. Static explanation only; for diagnosing a specific firing incident, use `signoz-investigating-alerts`.
/signoz-explaining-dashboardsExplain what an existing SigNoz dashboard shows in plain operational language: the panels, queries, variables, and what to watch for on each. Make sure to use this skill whenever the user asks "explain this dashboard", "what does my [X] dashboard show", "walk me through the panels", "what should I watch for on this dashboard", or "help me understand this dashboard", or otherwise asks for an interpretation of a dashboard's contents, even if they don't say "explain" explicitly. Also use it when someone is onboarding to a service and wants to understand what its existing observability looks like.
/signoz-generating-queriesGenerate, write, or run an ad-hoc query against SigNoz observability data (metrics, logs, or traces) without wrapping it in a dashboard panel or alert. Make sure to use this skill whenever the user asks "show me error rates", "query logs for timeout errors", "what's the p99 latency for the cart service", "how many requests hit the payment endpoint", "find slow traces", "errors in the last hour", "which agent runs cost the most", "LLM token usage by model", "LLM calls from agent runs with many tool calls", "why does AI Observability show no data", "who deleted the checkout dashboard", or otherwise asks an exploratory question that needs live observability data, even if they don't say "query" or "search" explicitly.
/signoz-investigating-alertsDiagnose why a SigNoz alert fired by correlating the alert's own signal with neighbor signals (error rate, latency, throughput, CPU/memory), traces, and logs around the fire window, and rank likely causes. Make sure to use this skill whenever the user asks "why did this alert fire", "what caused alert X", "investigate this alert", "RCA for the alert that paged me", "what's wrong with [service]" in the context of a recent fire, or otherwise asks for a root-cause analysis of a firing or recently-fired alert. Read-only; does not modify any alert or notification.
Other plugins' skills for the same job