Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add SigNoz/agent-skills --skill signoz-writing-clickhouse-queriesgit clone --depth 1 https://github.com/SigNoz/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/signoz/agent-skills/signoz-writing-clickhouse-queries)<a href="https://agentmods.dev/skills/signoz/agent-skills/signoz-writing-clickhouse-queries"><img src="https://agentmods.dev/badge/skills/signoz/agent-skills/signoz-writing-clickhouse-queries/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/signoz/agent-skills/signoz-writing-clickhouse-queries"><img src="https://agentmods.dev/badge/skills/signoz/agent-skills/signoz-writing-clickhouse-queries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00131 | $0.02021 |
| Opus 5.5 | $0.00052 | $0.00808 |
| Sonnet 5.5 | $0.00026 | $0.00404 |
| Haiku 4.5 | $0.00013 | $0.00202 |
Grade A, and why
signoz-writing-clickhouse-queries scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Writing ClickHouse Queries for SigNoz Dashboards
When to Use
Use this skill when the user asks for SigNoz queries involving:
- Logs: severity, body text, log volume, structured fields, containers, services, or environments.
- Traces: spans, latency, duration, p95 or p99, HTTP operations, DB operations, or error spans.
- Metrics: counter rates, gauge values, or histogram quantiles that the builder cannot express.
- Dashboard panels: timeseries charts, value widgets, and table breakdowns.
If the user asks for a dashboard panel but does not mention ClickHouse, still use this skill.
Signal Detection
Identify whether the request is about logs, traces, or metrics.
- Logs: log lines, severity, body text, log volume, container logs, or structured log fields.
- Traces: spans, latency, duration, p99, trace analysis, HTTP operations, DB operations, or error spans.
- Metrics: a named metric, a counter rate, a gauge value, or a histogram quantile.
If the request is ambiguous, ask the user to clarify.
Reference Routing
Before writing any query, do these reads in order for the detected signal.
- Read the schema resource. It lists the tables, columns, and column types
from the schema bundled with the MCP server.
- Logs:
signoz://dashboard/clickhouse-schema-for-logs - Traces:
signoz://dashboard/clickhouse-schema-for-traces - Metrics:
signoz://dashboard/clickhouse-schema-for-metrics
- Logs:
- Read the examples resource for worked query shapes.
- Logs:
signoz://dashboard/clickhouse-logs-example - Traces:
signoz://dashboard/clickhouse-traces-example - Metrics:
signoz://dashboard/clickhouse-metrics-example
- Logs:
- Logs and traces: read the local reference,
references/clickhouse-logs-reference.mdorreferences/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.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago Changed · +61 lines f5ff8700afc1
- 3mo ago First seen · 117 lines · 131 tokens per session scan A e4cae046f382
signoz-writing-clickhouse-queries is a skill published in the GitHub repository SigNoz/agent-skills (22 stars, last pushed 9d ago), licensed MIT. It adds 131 tokens to every session and 2,021 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
signoz-writing-clickhouse-queries compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| signoz-writing-clickhouse-queriesSigNoz/agent-skills | Skill | 22 | 9d ago | MIT | A | 131 | Claude Code |
| deprecation-and-migrationaddyosmani/agent-skills | Skill | 123k | 3d ago | MIT | A | 69 | Claude Code |
| mongodbmongodb/agent-skills | Skill | 212 | yesterday | Apache-2.0 | A | 218 | Claude Code, Codex |
| mongodb-qe-size-estimationmongodb/agent-skills | Skill | 212 | yesterday | Apache-2.0 | A | 52 | Claude Code |
| awesome-database-auditkhasky/awesome-agent-skills | Skill | 48 | 8d ago | MIT | A | 49 | Claude Code |
| analyze-slow-querieslast9/last9-mcp-server | Skill | 62 | today | Apache-2.0 | A | 24 | Claude Code, Codex |
| setting-up-wide-events-storeadammiribyan/wide_events | Skill | 11 | 1mo ago | MIT | A | 58 | Claude Code, Codex |