last9-query-languages

last9-query-languages is a skill for Claude Code, Codex from last9/last9-mcp-server. It costs 27 tokens per session (1,658 once invoked), scanned A, original, Apache-2.0.

A reference guide for writing Last9 queries for metrics, logs, traces, and services. Last9 is an observability platform for examining how software behaves in production.

In plain words
What is it for?
Use it when writing PromQL, querying logs or traces, or building and validating dashboards in Last9.
Why use it?
It helps avoid using the wrong query operation, metric type, unit, or data source. It also requires checking available data instead of guessing metric names or results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing PromQL, querying logs or traces, or building and validating dashboards in Last9.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/last9/last9-mcp-server/last9-query-languages
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 last9/last9-mcp-server --skill last9-query-languages
Clone the repo
git clone --depth 1 https://github.com/last9/last9-mcp-server

Made for: Claude Code, Codex.

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 last9-query-languages

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/last9/last9-mcp-server/last9-query-languages"><img src="https://agentmods.dev/badge/skills/last9/last9-mcp-server/last9-query-languages.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,658 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.00027 $0.01658
Opus 5.5 $0.00011 $0.00663
Sonnet 5.5 $0.00005 $0.00332
Haiku 4.5 $0.00003 $0.00166

Measured today against content hash 6f065d4b1da4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

last9-query-languages 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 today.

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.

plugins/amp/last9/references/skills/last9-query-languages/SKILL.md · 46 lines

How it starts

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

Dashboard query guide

This prompt takes no arguments. Use it with create_dashboard_guide and dashboard_examples; it is also available at last9://reference/query_guide. Examples are patterns, not a catalog of metrics available in a tenant. Discover the datasource, metrics, labels, values, units and metric semantics before substituting them. Discovery and test queries need the dashboards and investigate toolsets (--toolsets=dashboards,investigate); if a tool is not available in this session, report the missing validation rather than inventing a result.

PromQL and metric types

  • A counter is cumulative and may reset. Use rate(counter[5m]) for per-second throughput, or increase(counter[$__range]) for a window total; rate each series before summing so resets remain visible. Multiply a per-second rate by 60 only when the panel is labelled per minute. Confirm type from instrumentation documentation; _total and _count are hints, not proof.
  • A gauge is a current value. Plot it directly or use avg_over_time, max_over_time or min_over_time for the question's window. Do not apply rate to CPU utilization, memory bytes or an already computed rate. Preserve units; a seconds value is not milliseconds until multiplied by 1000.
  • For a classic histogram, histogram_quantile(0.95, sum by (le, service) (rate(request_duration_seconds_bucket[5m]))) yields seconds. Keep le and the desired population labels, and use compatible bucket boundaries. Add endpoint to the grouping for endpoint latency. Do not treat a metric with a quantile label as histogram buckets.
  • Precomputed percentiles are not composable: never sum or average percentile series to produce a combined percentile. Keep each source population and recorded window distinct. Use actual histogram buckets or get_traces / get_logs over raw values to calculate a percentile for a wider population or window.

Last9 derived trace_* metrics

Derived trace_* metrics are not interchangeable with ordinary scraped counters. Discover the exact series and labels first. For interval-count series such as trace_endpoint_count and trace_client_count, a window total uses sum by (...) (sum_over_time(metric{...}[$__range])); divide the count by the window's seconds for requests/second, or minutes for requests/minute. Do not assume increase or generic counter-reset logic applies to these interval counts. Only use a rate expression when that specific derived metric's documented semantics support it.

Read the full file on GitHub · 46 lines

Files

What ships with it

4 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. today Changed 6f065d4b1da4
  2. yesterday First seen · 46 lines · 27 tokens per session scan A 74e058e2cf04

Subscribe to this mod's changes

last9-query-languages is a skill published in the GitHub repository last9/last9-mcp-server (62 stars, last pushed today), licensed Apache-2.0. It adds 27 tokens to every session and 1,658 once invoked, about $0.0001 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-12-05.

Related

last9-query-languages compared with skills from other repositories

last9-query-languages next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
last9-query-languageslast9/last9-mcp-serverSkill62todayApache-2.0A27Claude Code, Codex
observability-phoenixdavila7/claude-code-templatesSkill35ktodayMITA47Claude Code, Codex
langsmith-observabilitysynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A45Claude Code, Codex
detecting-process-injection-techniquesadriannoes/awesome-agentic-aiSkill1118d agoMITA78Claude Code, Codex
systematic-debuggingmonoscope-tech/monoscopeSkill2.2ktodayAGPL-3.0A21Claude Code, Codex
investigating-ransomware-attack-artifactsadriannoes/awesome-agentic-aiSkill1118d agoMITB36Claude Code, Codex
signoz-investigating-alertsSigNoz/agent-skillsSkill229d agoMITA138Claude Code