promql-cody

promql-cody is a skill for Claude Code 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 Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

Part of the promql-cody plugin — 7 skills shipped together

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.

Or install promql-cody, the plugin that ships this one along with the rest of its 7 skills.

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.5 $0.00070 $0.00678
Sonnet 5.5 $0.00035 $0.00339
Haiku 4.5 $0.00018 $0.00170

Measured 3mo ago against content hash 6e429da6464f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 15d ago), licensed BSD-3-Clause. It adds 176 tokens to every session and 1,696 once invoked, about $0.0007 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-31.

Related

promql-cody compared with skills from other repositories

promql-cody next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
promql-codyconallob/o11y-analysis-toolsSkill415d agoBSD-3-ClauseA176Claude Code
contextlint-impactnozomi-koborinai/contextlintSkill475d agoApache-2.0A113Claude Code, Codex
contextlint-initnozomi-koborinai/contextlintSkill475d agoApache-2.0A146Claude Code, Codex
contextlint-fixnozomi-koborinai/contextlintSkill475d agoApache-2.0A118Claude Code, Codex
prometheus-expertpersonamanagmentlayer/pclSkill471mo agoApache-2.0B65Claude Code
audit-quality-gatesyegor256/puristSkill22d agoMITA29Claude Code
brainblastDSB-117/brainblastSkill754mo agoMITA43Codex