Official agent skill

Otel Queries

by github in github/gh-aw

Analyze gh-aw OpenTelemetry traces from JSONL mirrors or OTLP backends.

OfficialMITAuto-check passedDevOps & Cloud

Install Otel Queries

skills CLI
$ npx skills add github/gh-aw --skill otel-queries -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install github/gh-aw otel-queries --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/github/gh-aw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/otel-queries .claude/skills/otel-queries && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
otel-queries
GitHub stars
5.3k
Token cost
~2.2k tokens
SKILL.md length
1,084 words
Files
1
Skills in repo
52
Repo updated
First seen
Licence
MIT

At a glance

Analyze gh-aw OpenTelemetry traces from JSONL mirrors or OTLP backends.

  • Works in 5 steps: Do spans exist for the run or workflow… → Is trace continuity intact? → Which phase is actually slow or failing? → …
  • Tasks that involve Observability
  • SKILL.md covers When To Use, Primary Goal, Telemetry Sources In Priority… and Standard Analysis Loop, plus 6 more sections
  • Calls jq

What it does

Otel Queries is an agent skill from github/gh-aw, published by the product's own GitHub organization. Analyze gh-aw OpenTelemetry traces from JSONL mirrors or OTLP backends.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Observability. It works with OpenTelemetry and GitHub. The repository describes itself as: GitHub Agentic Workflows. The licence is MIT.

When your agent uses it

  • Tasks that involve Observability

Example prompts

  • “/otel-queries”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Do spans exist for the run or workflow at all?
  2. Is trace continuity intact?
  3. Which phase is actually slow or failing?
  4. Do the spans contain enough attributes to explain the slowdown or failure?
  5. Is the problem systemic or isolated?

What it can do on your machine

Read from SKILL.md and the folder at commit eb63040. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Otel Queries loads about 2.2k tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 1,084 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from github/gh-aw at commit eb63040, republished under its MIT licence (© github). 1,084 words, ~2,200 tokens.

Download SKILL.mdSave it as .claude/skills/otel-queries/SKILL.md (or your agent's skills folder).
name
otel-queries
description
Analyze gh-aw OpenTelemetry traces from JSONL mirrors or OTLP backends.

OTel Queries

Use this skill to inspect gh-aw OpenTelemetry/OTLP data and answer telemetry questions without re-deriving trace fields, backend filters, and diagnostics.

When To Use

Use this skill for requests such as:

  • analyze OTEL or OTLP data
  • inspect traces in Grafana, Tempo, Sentry, Honeycomb, or Datadog
  • explain why a workflow or agent run is slow or failing
  • compare run phases, error clusters, or span attributes
  • identify the best observability or performance improvement
  • close the loop from telemetry into code or workflow changes

Do not use this skill for instrumentation-only tasks that do not require reading telemetry. For pure emit-side work, start with the existing OTLP code and docs.

Primary Goal

Reduce a broad telemetry task to one tight loop:

  1. Find the cheapest trustworthy telemetry source.
  2. Run a small fixed set of common queries.
  3. Confirm one concrete bottleneck, missing attribute, or broken correlation path.
  4. Answer the user's telemetry question directly.
  5. Recommend or implement a follow-on optimization only when the evidence supports it.

Telemetry Sources In Priority Order

Prefer sources in this order unless the user says otherwise:

  1. Local artifacts or mirrors already in the workspace.
  2. /tmp/gh-aw/otel.jsonl for gh-aw spans.
  3. Live OTLP backend data through an MCP server or supported tool — Copilot CLI spans are exported directly to the configured OTLP backend (no local file mirror) and must be queried there, filtered by the github.run_id resource attribute.
  4. Static code inspection only, when no telemetry is available.

Use the cheapest source that can disconfirm the current hypothesis.

Standard Analysis Loop

Always answer these questions in order before expanding scope.

1. Do spans exist for the run or workflow at all?

Look for:

  • traceId
  • span name
  • service.name
  • github.repository
  • github.run_id

If these are missing, the problem is likely export, filtering, or trace propagation rather than optimization.

2. Is trace continuity intact?

Check whether spans that should belong together share the same:

  • trace ID
  • parent span lineage
  • run ID
  • workflow reference

If setup, agent, and conclusion spans are not connected, fix correlation before interpreting latency.

3. Which phase is actually slow or failing?

Bucket spans into phases:

  • setup
  • agent execution
  • tool or safe-output calls
  • conclusion

Prefer wall-clock duration and count by span name prefix before reading code.

4. Do the spans contain enough attributes to explain the slowdown or failure?

Minimum diagnostic attributes to verify:

  • service.version
  • deployment.environment
  • github.repository
  • github.run_id
  • github.event_name
  • github.workflow_ref
  • gh-aw.workflow
  • gh-aw.engine
  • conclusion or failure attributes

If the slow or failing span lacks the attribute needed to group, filter, or explain it, the right next step may be an instrumentation change rather than a runtime change.

5. Is the problem systemic or isolated?

Check whether the pattern repeats across:

  • multiple runs of the same workflow
  • multiple jobs in the same trace
  • one engine only
  • one event type only
  • one environment only

Do not propose broad architectural changes for a single outlier trace.

Common Queries

Use these backend-agnostic query shapes first. Translate them into the native query language or MCP tool calls for the active backend.

Query 1: Recent gh-aw spans

Filter for the last 24 hours and service.name = gh-aw.

Return:

  • timestamp
  • trace ID
  • span name
  • duration
  • status
  • github.run_id
  • github.workflow_ref
Query 2: Slowest spans by name

Group by span name and sort by:

  • p95 duration
  • max duration
  • count

Use this to find whether the bottleneck is setup, agent, tool, or conclusion work.

Query 3: Errors by span name

Filter for error status and group by:

  • span name
  • status message
  • workflow ref
  • engine

Use this to separate exporter failures from workflow logic failures.

Query 4: Missing core attributes

Sample recent spans and explicitly record whether each span includes:

  • service.version
  • github.repository
  • github.run_id
  • github.event_name
  • deployment.environment

If a backend supports has or exists filters, use them. Otherwise inspect a small sample manually.

Query 5: Trace integrity for one failing run

Pick one trace ID and inspect the full trace. Record:

  • root span name
  • child spans present
  • missing expected spans
  • parent-child continuity gaps
Show full SKILL.md (433 more words)Show less
Query 6: Repeated cost or latency hotspot

For agent-heavy traces, group by:

  • engine
  • workflow
  • job
  • tool span name

Then compare count, total duration, and p95 duration.

Local JSONL Recipes

When telemetry is available as JSONL, prefer shell plus jq over broad file reading.

Recent spans
bash
jq -c '.resourceSpans[]?.scopeSpans[]?.spans[]? | {traceId, name, startTimeUnixNano, endTimeUnixNano, status, attributes}' /tmp/gh-aw/otel.jsonl
Filter by span name prefix
bash
jq -c '.resourceSpans[]?.scopeSpans[]?.spans[]? | select(.name | startswith("gh-aw."))' /tmp/gh-aw/otel.jsonl
Extract one attribute by key
bash
jq -r '.resourceSpans[]?.scopeSpans[]?.spans[]? as $span | $span.attributes[]? | select(.key == "github.run_id") | .value.stringValue' /tmp/gh-aw/otel.jsonl
Find spans missing an attribute
bash
jq -c '.resourceSpans[]?.scopeSpans[]?.spans[]? | select(any(.attributes[]?; .key == "github.run_id") | not) | {traceId, name}' /tmp/gh-aw/otel.jsonl
Inspect one trace
bash
jq -c '.resourceSpans[]?.scopeSpans[]?.spans[]? | select(.traceId == $traceId)' --arg traceId "TRACE_ID_HERE" /tmp/gh-aw/otel.jsonl

Backend Translation Notes

Adapt the same six common queries to the active backend instead of inventing new analysis questions.

Grafana or Tempo
  • Start with datasource or trace search discovery.
  • Prefer trace search scoped to service.name="gh-aw" and a short time window.
  • Use trace detail views to validate parent-child continuity.
  • Use derived metrics or span aggregations only after a sample trace confirms the field names.
Sentry
  • Search the spans dataset first.
  • Fall back to transactions only if spans are unavailable.
  • Use one full trace to validate attribute presence; do not infer from issue titles alone.
Honeycomb or Datadog
  • Start with dataset or service filters on service.name.
  • Group by span name and error status.
  • Sample raw spans to confirm exact attribute keys before building aggregate conclusions.

Follow-On Decisions

After answering the telemetry question, choose the next step based on the evidence.

Prioritize in this order:

  1. Broken trace continuity or missing spans.
  2. Missing attributes that block filtering, correlation, or incident response.
  3. High-frequency latency hotspot with a narrow owner.
  4. High-severity error cluster with a narrow owner.
  5. Dashboard or query ergonomics improvements.

Prefer the smallest change that unlocks the most operational clarity.

Output Contract

When using this skill, produce findings in this shape:

  1. Telemetry source used.
  2. The question answered.
  3. One confirmed bottleneck, observability gap, or healthy result.
  4. The exact evidence: span name, trace ID or run ID, attribute presence or absence, and duration or error pattern.
  5. The smallest code, workflow, or instrumentation change to make, if one is needed.
  6. The validation step that would prove the result or follow-on change.

gh-aw Specific Pointers

Start with these files when telemetry indicates an instrumentation or correlation problem:

  • actions/setup/js/send_otlp_span.cjs
  • actions/setup/js/action_setup_otlp.cjs
  • actions/setup/js/action_conclusion_otlp.cjs
  • actions/setup/js/otlp.cjs
  • actions/setup/js/generate_observability_summary.cjs
  • actions/setup/js/aw_context.cjs
  • pkg/workflow/observability_otlp.go
  • docs/src/content/docs/reference/open-telemetry-attributes.mdx

Anti-Patterns

Avoid these common mistakes:

  • starting with full-code inspection before checking whether telemetry already proves the issue
  • treating a single anomalous trace as a systemic problem
  • proposing instrumentation changes without naming the missing attribute or broken correlation edge
  • spending prompt budget on backend-specific browsing before confirming the standard six queries
  • mixing exporter failures with business-logic failures

Expected Result

After using this skill, the agent should be able to move from raw OTel data to a grounded answer without re-deriving the telemetry playbook.

© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/otel-queries of github/gh-aw.

Open the folder on GitHubat commit eb63040

Compare with similar skills

Otel Queries next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Otel Queries compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Otel Queries this skillgithub/gh-aw5.3k—~2.2kAutomated safety check: PassMIT
Dotnet Devopsnovotnyllc/dotnet-artisan233—~1.1kAutomated safety check: PassMIT
Motel Debugkitlangton/motel298—~2.2kAutomated safety check: PassMIT
Tempsgotempsh/temps822—~1.9kAutomated safety check: PassApache-2.0
UModel Root Cause Analysisalibaba/UnifiedModel412—~1.9kAutomated safety check: PassCustom licence
Agent Kill Switchvivekchand/clawmetry424—~1.1kAutomated safety check: PassMIT

Similar skills

  • Dotnet Devops

    novotnyllc/dotnet-artisan

    Configures .NET CI/CD pipelines (GitHub Actions with setup-dotnet, NuGet cache, reusable workflows; Azure DevOps with DotNetCoreCLI, templates, multi-stage), containerization (multi-stage…

    233 GitHub stars~1.1k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Motel Debug

    kitlangton/motel

    Debug applications with motel, a local OpenTelemetry ingest and query server.

    298 GitHub stars~2.2k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Temps

    gotempsh/temps

    Manage, deploy, operate, and instrument applications with Temps.

    822 GitHub stars~1.9k tokensUpdated today
    DevOps & CloudAuto-check passed
  • UModel Root Cause Analysis

    alibaba/UnifiedModel

    Investigates a service incident to its root cause by querying a UModel object graph alongside metrics, logs, topology and recent deployments.

    412 GitHub stars~1.9k tokensUpdated 13 days ago
    DevOps & CloudAuto-check passed
  • Agent Kill Switch

    vivekchand/clawmetry

    Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry.

    424 GitHub stars~1.1k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Agentmeasure

    roy-tong/AgentMeasure

    Check whether agent telemetry preserves measurement semantics.

    218 GitHub stars~753 tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed

More from github/gh-aw

All 52 skills in this repo
  • Official

    Drives a real browser from the command line with playwright-cli to open pages, interact, mock requests, save state and work with Playwright tests.

    5.3k GitHub starsUsed in 23 repos~2.8k tokens
    Auto-check passed
  • Official

    Designs and verifies a deterministic grader that measures whether a GitHub Agentic Workflow run reached its real-world or repository outcome.

    5.3k GitHub stars~6.8k tokensUpdated today
    Auto-check passed
  • Official

    Scaffolds, edits, reloads and debugs a canvas extension that the GitHub Copilot CLI can open in its side panel.

    5.3k GitHub stars~3.7k tokensUpdated today
    Auto-check passed
  • Official

    Drives an open pull request to merge-ready from inside a GitHub Copilot cloud agent, resolving review threads and local checks concurrently, without merging or retriggering CI.

    5.3k GitHub stars~3.8k tokensUpdated today
    Auto-check: warnings
  • Official

    Bumps gh-aw's pinned gh-aw-firewall version, rebuilds generated artifacts, and flags upstream spec or schema changes that need follow-up work.

    5.3k GitHub stars~899 tokensUpdated today
    Auto-check passed
  • Official

    Guide to the console struct tag system in gh-aw: headers, titles, number and cost formats, omitempty, and how structs, slices and maps render in the terminal.

    5.3k GitHub stars~736 tokensUpdated today
    Auto-check passed

Categories

Questions about Otel Queries

What does Otel Queries do?

Analyze gh-aw OpenTelemetry traces from JSONL mirrors or OTLP backends. Otel Queries is an agent skill from github/gh-aw, published by the product's own GitHub organization. Analyze gh-aw OpenTelemetry traces from JSONL mirrors or OTLP backends.

When should I use Otel Queries?

Otel Queries fits situations like: tasks that involve Observability.

How do I install Otel Queries in Claude Code?

Run `npx skills add github/gh-aw --skill otel-queries -a claude-code`. Or copy the skill folder (.github/skills/otel-queries in github/gh-aw) into .claude/skills/otel-queries in your project. Claude Code loads it when a task matches its description.

How do I install Otel Queries in Codex?

Run `npx skills add github/gh-aw --skill otel-queries -a codex`. Or copy the skill folder (.github/skills/otel-queries in github/gh-aw) into .agents/skills/otel-queries in your project. Codex loads it when a task matches its description.

Can I use Otel Queries in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add github/gh-aw --skill otel-queries -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/otel-queries, .gemini/skills/otel-queries, .github/skills/otel-queries and .opencode/skills/otel-queries in your project.

What does Otel Queries need to run?

Going by SKILL.md and its folder, Otel Queries needs the command-line tools its instructions call (jq).

Does Otel Queries access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Otel Queries safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Otel Queries use?

Otel Queries is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Otel Queries use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Otel Queries?

Skills that share tags, products or a category with Otel Queries: Dotnet Devops (novotnyllc/dotnet-artisan, 233 stars), Motel Debug (kitlangton/motel, 298 stars), Temps (gotempsh/temps, 822 stars) and UModel Root Cause Analysis (alibaba/UnifiedModel, 412 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Otel Queries?

github (a GitHub organization, an official publisher) maintains it in github/gh-aw, which has 5,350 GitHub stars. The repository holds 52 skills in this directory. The repository was last updated on October 7, 2026.

Source: github/gh-aw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.