Skip to content

Command-line querying of Prometheus and PromQL-compatible engines with metric discovery and guardrails against costly queries.

CCM score
59 of 100
skills.sh installs
5.2K
GitHub stars
348
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers instant and range queries, metric discovery via metrics, labels, and meta subcommands, and output as table, csv, json, or graph
  • Includes reference guides for installation, usage, graphing, debugging, and PromQL, with query-cost rules for cardinality checks and timeouts
  • Enforces CLI-only querying and keeps credentials out of the LLM by directing users to configure ~/.promql-cli.yaml themselves
  • Designed for investigating latency, error rates, saturation, and data gaps in observability stacks such as Thanos, Mimir, and VictoriaMetrics

Install

$ npx -y skills add samber/cc-skills --skill promql-cli -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

promql-cli — Prometheus Query CLI Skill

promql-cli (github.com/nalbury/promql-cli) is a Go CLI for querying, analyzing, and visualizing Prometheus metrics, plus PromQL fundamentals.

Reference Files

Read the relevant reference file(s) before executing tasks:

FileWhen to read
references/installation.mdUser needs to install promql-cli or set up configuration (hosts, auth, token, password, multi-host)
references/usage.mdUser wants to discover metrics/exporters/labels, run queries, or choose output formats
references/graphing.mdUser wants to visualize Prometheus data as an ASCII chart in the terminal
references/debugging.mdUser is investigating a performance issue, latency, errors, saturation, data gaps, or query cost issues
references/promql-reference.mdUser needs help writing PromQL, understanding metric types, functions, or aggregations

For most tasks, read references/usage.md. For PromQL help, read references/promql-reference.md. When debugging, read both references/debugging.md and references/promql-reference.md.

Setup Check

Before running any query, verify that a host is configured:

Details

Repository
github.com/samber/cc-skills
Categories
DevOps & Cloud, CLI & Terminal
First seen
Jul 14, 2026

Questions

What does the promql-cli skill do?

The promql-cli skill guides an agent to query Prometheus and PromQL-compatible engines such as Thanos, Cortex, VictoriaMetrics, Grafana Mimir and Grafana Tempo. It covers instant and range queries, metric discovery with the metrics, labels and meta subcommands, and output formats in table, csv, json and graph.

How do I install the promql-cli skill?

Run npx -y skills add samber/cc-skills --skill promql-cli -y in your project to install it. Once installed, the agent can run PromQL queries and help troubleshoot latency, error rates and saturation on software with observability.

What does promql-cli need before it can run?

It needs the promql CLI and jq installed, and a reachable Prometheus host configured in a config file. Credentials such as tokens should stay in your own config file, which the skill asks you to create yourself.

Where does promql-cli stand in the DevOps & Cloud category?

promql-cli sits in the DevOps & Cloud category on Claude Marketplaces, alongside skills such as azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. It focuses on PromQL querying and metric analysis rather than Azure resources.

More from samber/cc-skills

All 20

Similar to Promql Cli

More DevOps & Cloud