explorer-query

explorer-query is a skill for Cursor from ccfos/nightingale. It costs 87 tokens per session (1,127 once invoked), scanned A, original, Apache-2.0.

A query assistant for Nightingale's Metrics Explorer and Log Explorer, which are screens for inspecting measurements and application logs. It prepares PromQL or SQL statements and checks them against the selected data source.

In plain words
What is it for?
Use it to write or repair metric queries for Prometheus-compatible systems, SQL for MySQL or Doris, and log searches in Doris.
Why use it?
It helps avoid queries for the wrong data source and blocks statements that would change or delete data.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the nightingale plugin — 23 skills shipped together

Good fit Use it to write or repair metric queries for Prometheus-compatible systems, SQL for MySQL or Doris, and log searches in Doris.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ccfos/nightingale/explorer-query
About the project

Nightingale is an open-source monitoring and alerting system that connects to stored metrics and log data, evaluates alert rules, and distributes notifications. Operations teams use it to manage alarms and explore observability data alongside existing data sources and collectors. Catalogue add-ons provide skills for operating Nightingale.

ccfos/nightingale · 13,453 stars · on GitHub · n9e.io

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 ccfos/nightingale --skill explorer-query
Clone the repo
git clone --depth 1 https://github.com/ccfos/nightingale

Made for: Cursor.

Or install nightingale, the plugin that ships this one along with the rest of its 23 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 explorer-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccfos/nightingale/explorer-query/github.svg)](https://agentmods.dev/skills/ccfos/nightingale/explorer-query)
Your own site
<a href="https://agentmods.dev/skills/ccfos/nightingale/explorer-query"><img src="https://agentmods.dev/badge/skills/ccfos/nightingale/explorer-query/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 explorer-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/ccfos/nightingale/explorer-query"><img src="https://agentmods.dev/badge/skills/ccfos/nightingale/explorer-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,127 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.00087 $0.01127
Opus 5.5 $0.00035 $0.00451
Sonnet 5.5 $0.00017 $0.00225
Haiku 4.5 $0.00009 $0.00113

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

Security

Grade A, and why

explorer-query 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 15d 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.

aiagent/skill/embedded/builtin/explorer-query/SKILL.md · 107 lines

How it starts

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

Nightingale Explorer Query Assistant

Generate a single query that the user can put into the current Metrics Explorer or Log Explorer editor. Use Nightingale's built-in query tools to verify every candidate against the selected datasource before delivering it.

Scope

  • Metrics Explorer: PromQL on Prometheus-compatible datasources; SQL on MySQL.
  • Log Explorer: Doris SQL or Doris log-search queries.
  • This skill prepares a statement for an editor. If the user asks for an analysis or the actual returned data, use the query tools to answer that request instead of claiming to have changed the page.

Rules

  1. Preserve the current datasource, editor mode, expression, and time window whenever they are available in conversation context. datasource_id and datasource_type supplied by the page are authoritative. Do not silently switch to a different datasource.
  2. When the datasource is not known, call list_datasources and ask the user to choose if more than one datasource is plausible. Do not guess an ID.
  3. Run read-only checks only. Never generate a write statement such as INSERT, UPDATE, DELETE, ALTER, DROP, CREATE, GRANT, or REVOKE.
  4. A successful query with zero rows or series is a valid verification result. Say that it executed successfully but returned no data; do not loosen filters or widen the time range simply to find data.
  5. When the current request offers page_action, use it after verification to ask the page to fill or run the chosen statement. Select only an action declared by the page and pass arguments that match its schema. Calling it ends this turn. Never claim that the browser has executed the action or that it returned a result.
  6. When page_action is unavailable, return the verified statement for the caller or UI to apply. Never claim that you changed the current page.

Prometheus / PromQL workflow

  1. Confirm the selected datasource is Prometheus-compatible. If needed, use list_datasources with plugin_type=prometheus.
  2. Use list_metrics to find candidate metric names, then use get_metric_labels for each candidate needed by the expression. Do not invent metric names or label values.
  3. Build the PromQL expression. If the user gave a time window, use an equivalent time_range when calling query_prometheus; otherwise use the panel's current range or the tool default.
  4. Call query_prometheus with the exact expression you plan to deliver. Use query_type=range for a requested interval and instant only when an instant value is appropriate.
  5. Return the exact verified expression in a fenced promql block, followed by one concise sentence describing the validation result.

Read the full file on GitHub · 107 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. 15d ago First seen · 107 lines · 87 tokens per session scan A e1986c5be20a

Subscribe to this mod's changes

explorer-query is a skill published in the GitHub repository ccfos/nightingale (13,453 stars, last pushed yesterday), licensed Apache-2.0. It adds 87 tokens to every session and 1,127 once invoked, about $0.0003 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-10-23.

Related

explorer-query compared with skills from other repositories

explorer-query next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
explorer-queryccfos/nightingaleSkill13kyesterdayApache-2.0A87Cursor
cis-aws-database-10.8CyberStrikeus/CyberStrikeSkill3.4k4d agoAGPL-3.0A17Claude Code, Codex
k8s-monitoring-alertingkudig-io/kudig-databaseSkill6yesterdayApache-2.0A26Claude Code, Codex
monitoring-expertpersonamanagmentlayer/pclSkill4411d agoApache-2.0B70Claude Code
prometheus-expertpersonamanagmentlayer/pclSkill4411d agoApache-2.0B65Claude Code
datadogbobmatnyc/claude-mpm-skillsSkill783mo agoMITA43Claude Code
observability-testing-patternssummarybotng/summarybot-ngSkill25mo agoMITA47Claude Code