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 talkops-ai/talkops-mcp --skill authoring-promql-and-analyzing-metricsgit clone --depth 1 https://github.com/talkops-ai/talkops-mcpWrote 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/talkops-ai/talkops-mcp/authoring-promql-and-analyzing-metrics)<a href="https://agentmods.dev/skills/talkops-ai/talkops-mcp/authoring-promql-and-analyzing-metrics"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/authoring-promql-and-analyzing-metrics/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/talkops-ai/talkops-mcp/authoring-promql-and-analyzing-metrics"><img src="https://agentmods.dev/badge/skills/talkops-ai/talkops-mcp/authoring-promql-and-analyzing-metrics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00213 | $0.02010 |
| Opus 5.5 | $0.00085 | $0.00804 |
| Sonnet 5.5 | $0.00043 | $0.00402 |
| Haiku 4.5 | $0.00021 | $0.00201 |
Grade A, and why
authoring-promql-and-analyzing-metrics scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
Guides schema-first PromQL 3.0 query construction, offline linting, preflight validation, and condensed statistical analysis. Never guess metric or label names, and never shell out to raw `curl` or `promtool` when Promet How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Authoring PromQL and Analyzing Metrics
Guides schema-first PromQL 3.0 query construction, offline linting, preflight validation, and condensed statistical analysis. Never guess metric or label names, and never shell out to raw curl or promtool when Prometheus MCP resources and tools are available.
MCP Execution Primitives Used
- Resources:
prom://system/backendsandprom://system/backends/{backend_id}— verify active backend ID (defaultunless specified) and Prometheus version/health.prom://metadata/catalog— live catalog of metric names, types (counter,gauge,histogram,summary), andHELPdescriptions.prom://config/runtime— inspectscrape_intervalandevaluation_intervalto sizerate()windows properly ($\ge 4\times$scrape_interval).
- Tools (
querytoolset):prom_explore_metrics— search metrics bymetric_pattern, inspect per-job metrics (job), inspect label value topology (label_name), or paginate series label sets (match_selector,cursor).prom_query_instant— run preflight validation (validate_only=True) or point-in-time queries withdetail="summary"(5-field condensed items) ordetail="full".prom_query_range— execute range queries over[start, end]with server-sidestats(min,max,avg,p95,latest,delta_pct) and optional A2UI chart output (include_chart=True).prom_compare_periods— compare a PromQL expression between[current_start, current_end]and a shifted historical window (baseline_offsetsuch as"1h","1d","7d"), returningpct_change,z_score, andSIGNIFICANT_SPIKE/SIGNIFICANT_DROPobservations.
Step-by-Step Workflow
1. Discover Metric Schema & Scrape Interval [HIGH FREEDOM]
- Unbounded Selector Refusal: Strictly refuse to execute unbounded full-TSDB regex scans such as
{__name__=~".*"},{__name__=~".+"}, or{__name__=~"..*"}inprom_query_instantorprom_query_rangebecause they scan every series in TSDB and risk querier OOM. Instead, readprom://metadata/catalogor callprom_explore_metrics(backend_id="default", metric_pattern=..., limit=50)(usingcursorpagination when browsing). - Read
prom://metadata/catalogor callprom_explore_metrics(backend_id="default", metric_pattern="<keyword>")andprom_explore_metrics(backend_id="default", label_name="<metric_name>")to verify exact metric and label names before writing PromQL. - Read
prom://config/runtimewhen sizingrate()windows; always setrate()range windows to at least $4\times \text{scrape_interval}$ (typically2mor5m).
What ships with it
3 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 First seen · 64 lines · 213 tokens per session scan A 5790e64d708d
authoring-promql-and-analyzing-metrics is a skill published in the GitHub repository talkops-ai/talkops-mcp (4 stars, last pushed 12d ago), licensed Apache-2.0. It adds 213 tokens to every session and 2,010 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-18.
authoring-promql-and-analyzing-metrics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| authoring-promql-and-analyzing-metricstalkops-ai/talkops-mcp | Skill | 4 | 12d ago | Apache-2.0 | A | 213 | Claude Code, Codex |
| argocdalivirgo/Major-AI-Skills | Skill | 6 | yesterday | MIT | A | 42 | Claude Code |
| airdrop-hunting-guidenirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| opik-diagnosecomet-ml/opik-mcp | Skill | 227 | 4d ago | Apache-2.0 | A | 187 | Claude Code |
| ue-mcp-epic-routingdb-lyon/ue-mcp | Skill | 526 | today | MIT | A | 81 | Claude Code, Codex |
| qa-knowledgegriddynamics/rosetta | Skill | 382 | 5d ago | Apache-2.0 | A | 32 | Claude Code, Codex |
| x-use-reviewihuzaifashoukat/x-use | Skill | 187 | 7d ago | MIT | A | 56 | Claude Code |