Agent skill · Grafana Labs
PromQL skill for Claude Code, Codex and Cursor
Officialname: promql★ 290 (repo)pushed 2026-10-24Apache-2.0SKILL.md on GitHubchecked 2026-11-07
What it does, in the publisher's words
Write, validate, and optimize PromQL for Prometheus / Grafana Mimir / Grafana Cloud Metrics. Covers `rate` vs `irate` vs `increase`, label matchers and regex, `sum / avg / topk / by / without` aggregation, classic + native `histogram_quantile`, ratios with divide-by-zero guards, `absent` / `changes` for staleness, time offsets and `predict_linear`, recording-rule naming, SLO + burn-rate math, and a...
The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.
Install PromQL
The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs
npx skills add grafana/skills --skill promql
This repo is a plugin marketplace. Inside Claude Code, add it and install the plugin that holds the skill (grafana-core, grafana-cloud, grafana-lgtm, grafana-plugins...), or copy only this skill into ~/.claude/skills. docs
/plugin marketplace add grafana/skills /plugin install <plugin>@grafana-skills # or only this skill: npx skills add grafana/skills --skill promql -a claude-code
Download the skill folder, zip it, then Customize > Skills > + > Create skill > Upload a skill. Code execution must be on (Settings > Capabilities). docs
git clone --depth 1 https://github.com/grafana/skills.git /tmp/promql-src cp -r /tmp/promql-src/skills/grafana-core/promql ./promql zip -r promql.zip promql
Codex reads skills from .agents/skills in the repo or ~/.agents/skills. Type $ in Codex to use one. docs
npx skills add grafana/skills --skill promql -a codex
gh skill (GitHub CLI 2.90+, preview) installs it for Copilot in VS Code, the CLI and the cloud agent. Copilot also reads .github/skills and ~/.copilot/skills. docs
gh skill install grafana/skills promql
Cursor reads .cursor/skills, .agents/skills and ~/.cursor/skills (and .claude/skills). It does not install loose skills from a GitHub URL, so copy it in. docs
npx skills add grafana/skills --skill promql -a cursor
Installs from the GitHub repo; --path picks this skill out of the repo. Default scope is user (all projects). docs
gemini skills install https://github.com/grafana/skills.git --path skills/grafana-core/promql
OpenCode reads .opencode/skills, ~/.config/opencode/skills and the Claude and .agents folders. docs
npx skills add grafana/skills --skill promql -a opencode
Windsurf (now Devin Desktop) reads .devin/skills, .windsurf/skills and ~/.codeium/windsurf/skills. docs
npx skills add grafana/skills --skill promql -a windsurf
Works with
Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.
What's in the SKILL.md
- Prerequisites
- Common Workflows
- 1. Write + validate a query
- 2. Common patterns to copy
- 3. Convert a slow dashboard query into a recording rule
- Common bugs
- Resources
Bundled files
- references/patterns.md
Loaded only when the instructions point to them.
Facts
- Skill name
- promql
- Publisher
- Grafana Labs (official)
- Repo
- grafana/skills
- License
- Apache-2.0
- SKILL.md size
- 199 words, 98 lines
- Bundled files
- 1, 1 docs
- Repo stars
- 290 (as of 2026-10-24)
- SKILL.md checked
- 2026-11-07
Pairs with the Prometheus MCP server, Grafana MCP server: the server gives the agent the tools, the skill teaches it how to use them.
More skills from grafana/skills
- k6 Load Testing: Writes and reviews k6 scripts for load, stress, soak and browser tests.
Related data & analytics skills
- BigQuery Basics · Google
- PostHog Feature Flags (React) · PostHog
- PostHog for Next.js (App Router) · PostHog
FAQ
What does the promql skill do?+
Writes, checks and speeds up PromQL queries for Prometheus and Grafana metrics. In its own SKILL.md, Grafana Labs describes it as: "Write, validate, and optimize PromQL for Prometheus / Grafana Mimir / Grafana Cloud Metrics. Covers `rate` vs `irate` vs `increase`, label matchers and regex, `sum / avg / topk / by / without` aggregation, classic + native `histogram_quantile`, ratios with divide-by-zero guards, `absent` /..."
How do I install the promql skill?+
Run npx skills add grafana/skills --skill promql and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/promql/SKILL.md; in Codex and Cursor in .agents/skills/promql/.
Does PromQL work in Codex, Cursor and Copilot, or only Claude?+
It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.
Who maintains PromQL?+
Grafana Labs, the company or project behind it, in the grafana/skills repo on GitHub, last pushed 2026-10-24. License: Apache-2.0.
Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers