promql-cody

promql-cody is a skill for Claude Code, Codex from conallob/o11y-analysis-tools. It costs 176 tokens per session (1,696 once invoked), scanned A, original, BSD-3-Clause.

A workflow guide for six command-line tools that work with Prometheus monitoring rules and Alertmanager notifications. Prometheus stores monitoring measurements, while Alertmanager sends notifications about problems.

In plain words
What is it for?
Use it to format PromQL queries, check labels, create test files, preview alert notifications, and analyze alert behavior.
Why use it?
It explains which tool to use, which tools are safe for automated checks, and the order in which they fit together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to format PromQL queries, check labels, create test files, preview alert notifications, and analyze alert behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/conallob/o11y-analysis-tools/promql-cody
Install

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.

Any agent
npx skills add conallob/o11y-analysis-tools --skill promql-cody
Clone the repo
git clone --depth 1 https://github.com/conallob/o11y-analysis-tools

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin promql-cody/plugin install promql-cody after adding the marketplace above.

Wrote 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.

agentmods badge for promql-cody

README.md
[![agentmods](https://agentmods.dev/badge/skills/conallob/o11y-analysis-tools/promql-cody/github.svg)](https://agentmods.dev/skills/conallob/o11y-analysis-tools/promql-cody)
Your own site
<a href="https://agentmods.dev/skills/conallob/o11y-analysis-tools/promql-cody"><img src="https://agentmods.dev/badge/skills/conallob/o11y-analysis-tools/promql-cody/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.

agentmods 80×15 button for promql-cody

Your own site · 80×15
<a href="https://agentmods.dev/skills/conallob/o11y-analysis-tools/promql-cody"><img src="https://agentmods.dev/badge/skills/conallob/o11y-analysis-tools/promql-cody.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 176 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,696 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00176 $0.01696
Opus 5 $0.00088 $0.00848
Sonnet 5 $0.00035 $0.00339
Haiku 4.5 $0.00018 $0.00170

Measured 10d ago against content hash 6e429da6464f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

promql-cody 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 10d 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.

skills/promql-cody/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PromQL-Cody

In memoriam. This skill is named after and dedicated to the late Cody Smith

PromQL-Cody is the unified Agent Skill for o11y-analysis-tools: it teaches an agent how to use all six PromQL/Alertmanager CLIs in this repo together — which are safe to run unattended, which need a human in the loop, and what order they belong in. Load the per-tool skill (skills/<tool>/SKILL.md) for the exact flags and output format of whichever tool this points you at; this skill is the map, not the detail.

The six tools at a glance

Skill Purpose Hermetic? Best run External dependency
promql-fmt Format/validate PromQL multiline style + best-practice lint Yes Interactive and CI none
label-check Enforce required labels on expressions/alerts Yes Interactive and CI none
autogen-promql-tests Generate promtool-style unit test skeletons Yes Interactive, to bootstrap coverage none
e2e-alertmanager-test Render alert notifications (email/Slack/JSON) end-to-end — a "print preview" for alerts Yes*, with a skeleton config (see its skill) CI, producing a diffable artifact; also useful interactively an ephemeral Alertmanager + a Prometheus unit-test file
alert-hysteresis Recommend for: duration tuning from real firing history No Interactive, as needed live Prometheus with historical ALERTS data
stale-alerts-analyzer Flag alerts that rarely/never fire — "dead code analysis" for alerts No Interactive, periodic cleanup live Prometheus with historical ALERTS data

* Only when its ephemeral Alertmanager is loaded with a skeleton config that overrides receiver connection details. Pointed at a real/unmodified Alertmanager config, it can dispatch real notifications and is not hermetic.

Read the full file on GitHub · 106 lines

Changes

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.

  1. 10d ago First seen · 106 lines · 176 tokens per session scan A 6e429da6464f

Subscribe to this mod's changes

promql-cody is a skill published in the GitHub repository conallob/o11y-analysis-tools (4 stars, last pushed 1mo ago), licensed BSD-3-Clause. It adds 176 tokens to every session and 1,696 once invoked, about $0.0009 per session on Opus 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-31.

Related

Other skills, from other repositories

monitoring-observability

Monitoring and observability patterns for Prometheus metrics, Grafana dashboards, Langfuse v4 LLM tracing (astype, scorecurrentspan, shouldexportspan, LangfuseMedia), and drift detection. Use when adding logging, metrics, distributed tracing, LLM cost tracking, or quality drift monitoring.

yonatangross/orchestkit · 69 tokens

host_bash

A read-only shell skill for examining files and running diagnostic commands in a restricted environment. A shell is a text interface for operating-system commands.

ongridio/ongrid · 26 tokens

host_restart_service

A tool for restarting approved systemd services, which are background programs managed by Linux's service manager.

ongridio/ongrid · 23 tokens

golang-observability-opentelemetry

Instrumenting Go applications with OpenTelemetry for distributed tracing, Prometheus for metrics, and structured logging with slog.

bobmatnyc/claude-mpm-skills · 31 tokens

monitoring-expert

Expert-level monitoring and observability with Prometheus, Grafana, logging, and alerting. Use when the user mentions observability, Prometheus, Grafana, logging, metrics, or alerting, or when the task involves The Three Pillars of Observability, Monitoring Fundamentals, Prometheus Configuration, or Alert Rules.

personamanagmentlayer/pcl · 70 tokens

prometheus-expert

Expert-level Prometheus monitoring, metrics collection, PromQL queries, alerting, and production operations. Use when the user mentions monitoring, metrics, observability, alerting, or PromQL, or when the task involves Prometheus Architecture, Installation on Kubernetes, ServiceMonitor, or PromQL Queries.

personamanagmentlayer/pcl · 65 tokens