/promql:promqlfrom promql
Queries and debugs Prometheus-compatible backends (Prometheus, Thanos, Mimir, VictoriaMetrics) and edits Prometheus and Alertmanager config. Use when writing or tuning PromQL, investigating latency, errors or saturation from metrics, chasing data gaps, or changing scrape configs, recording or alerting rules, or promtool tests.
Ships in promql. 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.
Two jobs share this skill. Query work reads metrics to answer a question. Config work changes what Prometheus scrapes, records, and alerts on. Checked against the Prometheus docs (querying functions, recording and alerting rules, unit testing, Alertmanager configuration).
Not for application instrumentation or SLO design (the observability-instrumentation skill) or Grafana dashboards (grafana-dashboards).
A credential must never pass through the prompt, a command line, or a file you write. Command arguments land in shell history and process listings.
chmod 600). Reference it by name or path.user:pass@ as a secret.See references/access.md for the HTTP API and the optional promql CLI.
rate() or increase() to counters. A raw counter only climbs, so its absolute value says nothing.rate(http_requests_total{job="api"}[5m])). Selectors are evaluated first, so late filtering scans every series._bucket series is classic, a bare metric name is native). For a classic histogram keep le in the grouping: histogram_quantile(0.99, sum by (le, route) (rate(x_bucket[5m]))); without le the result is wrong or NaN. A native histogram has no le: histogram_quantile(0.99, sum by (route) (rate(x[5m]))), and histogram_fraction gives the share under a bound.sum by, topk), never by pulling raw series into a script.rate() for alerts and graphs; irate() only for fast-moving dashboards.count(metric_name). Add label filters if it is large.topk, a narrow window) over thousands of raw rows.up{job="...", instance="..."} before blaming the application. A 0 means the scrape failed.Pick the method from the question, then read references/investigations.md for the queries.
up, then scrape config.Read references/server-config.md before editing scrape configs, rules, or Alertmanager. Validate every change with promtool check config or promtool check rules and test alert logic with promtool test rules before reporting done.
references/access.md. Read when running queries against a live server or setting up credentials.references/investigations.md. Read when diagnosing latency, errors, saturation, or data gaps.references/server-config.md. Read when editing scrape configs, recording or alerting rules, or Alertmanager.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin promql