megalinter: Skill for Claude Code

.claude/skills/grafana-promql/SKILL.md

grafana-promql is a skill for Claude Code from oxsecurity/megalinter. It costs 202 tokens per session (1,238 once invoked), scanned A, original, AGPL-3.0.

Guidance for writing PromQL, the query language used with Prometheus monitoring data and Grafana dashboards. It covers calculations, filtering, aggregation, ratios, and histogram measurements.

In plain words
What is it for?
Creating, checking, and improving queries for Prometheus, Grafana Mimir, or Grafana Cloud Metrics.
Why use it?
It helps produce queries that represent monitoring data correctly and handle common issues such as divide-by-zero and stale metrics.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is oxsecurity/megalinter's own configuration. It tells Claude Code how to work on megalinter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything megalinter configures →

Part of the megalinter plugin — 25 skills, 14 agents shipped together

About the project

MegaLinter is a repository analysis tool that runs linters and related checks across source code, infrastructure-as-code, configuration, scripts, formats, spelling, copy-pastes, and security issues. It is for teams that want automated quality checks in GitHub Actions, other CI systems, or local development. The catalogue add-ons help coding agents use and configure MegaLinter and respond to its findings.

oxsecurity/megalinter · 2,579 stars · on GitHub · megalinter.io

Reuse

Borrowing it

Nothing to install: this file belongs to oxsecurity/megalinter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/oxsecurity/megalinter/main/.claude/skills/grafana-promql/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/oxsecurity/megalinter

Made for: Claude Code.

Or install megalinter, the plugin that ships this one along with the rest of its 25 skills, 14 agents.

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 grafana-promql

README.md
[![agentmods](https://agentmods.dev/badge/skills/oxsecurity/megalinter/grafana-promql.svg)](https://agentmods.dev/skills/oxsecurity/megalinter/grafana-promql)
Your own site
<a href="https://agentmods.dev/skills/oxsecurity/megalinter/grafana-promql"><img src="https://agentmods.dev/badge/skills/oxsecurity/megalinter/grafana-promql.svg" alt="Measured on agentmods" height="20"></a>
Per session 202 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,238 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin unknown 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.00202 $0.01238
Opus 5 $0.00101 $0.00619
Sonnet 5 $0.00040 $0.00248
Haiku 4.5 $0.00020 $0.00124

Measured 9d ago against content hash 9150bf04266e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

grafana-promql 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 9d 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.

# and add basic auth (-u "<metrics_user>:<token>") to each curl below.
.claude/skills/grafana-promql/SKILL.md · 108 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Files

What ships with it

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

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. 9d ago First seen · 108 lines · 202 tokens per session scan A 9150bf04266e

Subscribe to this mod's changes

grafana-promql is a skill published in the GitHub repository oxsecurity/megalinter (2,579 stars, last pushed yesterday), licensed AGPL-3.0. It adds 202 tokens to every session and 1,238 once invoked, about $0.0010 per session on Opus 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-08-30.